@@ -5,7 +5,8 @@ import {Before, Given, Then} from '@cucumber/cucumber';
55
66Before ( function ( ) {
77 this . existingScripts = {
8- ...any . simpleObject ( ) ,
8+ aaa : any . string ( ) ,
9+ zzz : any . string ( ) ,
910 test : any . string ( ) ,
1011 'lint:md' : any . string ( ) ,
1112 prepare : any . string ( ) ,
@@ -14,8 +15,10 @@ Before(function () {
1415 'test:integration:base' : any . string ( ) ,
1516 'test:integration:debug' : any . string ( ) ,
1617 'test:integration:focus' : any . string ( ) ,
18+ build : any . string ( ) ,
1719 'test:integration:focus:debug' : any . string ( ) ,
1820 'test:integration:wip' : any . string ( ) ,
21+ prebuild : any . string ( ) ,
1922 'test:integration:wip:debug' : any . string ( ) ,
2023 'test:unit' : any . string ( ) ,
2124 pretest : any . string ( ) ,
@@ -83,23 +86,6 @@ Then('the updated test script includes build', async function () {
8386
8487Then ( 'the scripts are ordered correctly' , async function ( ) {
8588 const { scripts} = JSON . parse ( await fs . readFile ( `${ process . cwd ( ) } /package.json` , 'utf8' ) ) ;
86- const {
87- pretest,
88- test,
89- 'test:unit' : testUnit ,
90- 'test:integration' : testIntegration ,
91- 'pretest:integration:base' : pretestIntegrationBase ,
92- 'test:integration:base' : testIntegrationBase ,
93- 'test:integration:debug' : testIntegrationDebug ,
94- 'test:integration:focus' : testIntegrationFocus ,
95- 'test:unit:base' : testUnitBase ,
96- 'test:integration:focus:debug' : testIntegrationFocusDebug ,
97- 'test:integration:wip' : testIntegrationWip ,
98- 'test:integration:wip:debug' : testIntegrationWipDebug ,
99- 'prelint:publish' : prelintPublish ,
100- 'lint:md' : lintMd ,
101- ...otherExistingScripts
102- } = this . existingScripts ;
10389
10490 assert . deepEqual (
10591 Object . keys ( scripts ) ,
@@ -120,7 +106,11 @@ Then('the scripts are ordered correctly', async function () {
120106 'test:integration:focus:debug' ,
121107 'test:integration:wip' ,
122108 'test:integration:wip:debug' ,
123- ...Object . keys ( otherExistingScripts ) . sort ( ( a , b ) => a . localeCompare ( b ) )
109+ 'aaa' ,
110+ 'prebuild' ,
111+ 'build' ,
112+ 'prepare' ,
113+ 'zzz'
124114 ]
125115 ) ;
126116} ) ;
0 commit comments