@@ -29,6 +29,8 @@ test('verify-deps-before-run=install reuses the same flags as specified by the w
2929 {
3030 fs . rmSync ( 'node_modules' , { recursive : true } )
3131 await execPnpm ( [ ...CONFIG , 'install' , '--production' , '--frozen-lockfile' ] )
32+ project . has ( '@pnpm.e2e/foo' )
33+ project . hasNot ( '@pnpm.e2e/bar' )
3234 expect ( loadWorkspaceState ( process . cwd ( ) ) ) . toMatchObject ( {
3335 settings : {
3436 dev : false ,
@@ -46,9 +48,9 @@ test('verify-deps-before-run=install reuses the same flags as specified by the w
4648 } )
4749
4850 const { stdout } = execPnpmSync ( [ ...CONFIG , 'start' ] , { expectSuccess : true } )
49- expect ( stdout . toString ( ) ) . not . toContain ( 'dependencies: skipped' )
50- expect ( stdout . toString ( ) ) . toContain ( 'devDependencies: skipped' )
5151 expect ( stdout . toString ( ) ) . toContain ( 'hello from script' )
52+ project . has ( '@pnpm.e2e/foo' )
53+ project . hasNot ( '@pnpm.e2e/bar' )
5254 expect ( loadWorkspaceState ( process . cwd ( ) ) ) . toMatchObject ( {
5355 settings : {
5456 dev : false ,
@@ -62,6 +64,8 @@ test('verify-deps-before-run=install reuses the same flags as specified by the w
6264 {
6365 fs . rmSync ( 'node_modules' , { recursive : true } )
6466 await execPnpm ( [ ...CONFIG , 'install' , '--dev' , '--frozen-lockfile' ] )
67+ project . hasNot ( '@pnpm.e2e/foo' )
68+ project . has ( '@pnpm.e2e/bar' )
6569 expect ( loadWorkspaceState ( process . cwd ( ) ) ) . toMatchObject ( {
6670 settings : {
6771 dev : true ,
@@ -79,9 +83,9 @@ test('verify-deps-before-run=install reuses the same flags as specified by the w
7983 } )
8084
8185 const { stdout } = execPnpmSync ( [ ...CONFIG , 'start' ] , { expectSuccess : true } )
82- expect ( stdout . toString ( ) ) . toContain ( 'dependencies: skipped' )
83- expect ( stdout . toString ( ) ) . not . toContain ( 'devDependencies: skipped' )
8486 expect ( stdout . toString ( ) ) . toContain ( 'hello from script' )
87+ project . hasNot ( '@pnpm.e2e/foo' )
88+ project . has ( '@pnpm.e2e/bar' )
8589 expect ( loadWorkspaceState ( process . cwd ( ) ) ) . toMatchObject ( {
8690 settings : {
8791 dev : true ,
@@ -95,6 +99,8 @@ test('verify-deps-before-run=install reuses the same flags as specified by the w
9599 {
96100 fs . rmSync ( 'node_modules' , { recursive : true } )
97101 await execPnpm ( [ ...CONFIG , 'install' , '--frozen-lockfile' ] )
102+ project . has ( '@pnpm.e2e/foo' )
103+ project . has ( '@pnpm.e2e/bar' )
98104 expect ( loadWorkspaceState ( process . cwd ( ) ) ) . toMatchObject ( {
99105 settings : {
100106 dev : true ,
@@ -112,9 +118,9 @@ test('verify-deps-before-run=install reuses the same flags as specified by the w
112118 } )
113119
114120 const { stdout } = execPnpmSync ( [ ...CONFIG , 'start' ] , { expectSuccess : true } )
115- expect ( stdout . toString ( ) ) . not . toContain ( 'dependencies: skipped' )
116- expect ( stdout . toString ( ) ) . not . toContain ( 'devDependencies: skipped' )
117121 expect ( stdout . toString ( ) ) . toContain ( 'hello from script' )
122+ project . has ( '@pnpm.e2e/foo' )
123+ project . has ( '@pnpm.e2e/bar' )
118124 expect ( loadWorkspaceState ( process . cwd ( ) ) ) . toMatchObject ( {
119125 settings : {
120126 dev : true ,
0 commit comments