File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ const ci = async () => {
33
33
} ) ,
34
34
rimraf ( `${ where } /node_modules/` )
35
35
] )
36
- await arb . reify ( )
36
+ // npm ci should never modify the lockfile or package.json
37
+ await arb . reify ( { save : false } )
37
38
reifyOutput ( arb )
38
39
}
39
40
Original file line number Diff line number Diff line change @@ -100,7 +100,8 @@ test('should remove existing node_modules before installing', (t) => {
100
100
} ,
101
101
'@npmcli/arborist' : function ( ) {
102
102
this . loadVirtual = ( ) => Promise . resolve ( true )
103
- this . reify = async ( ) => {
103
+ this . reify = async ( options ) => {
104
+ t . equal ( options . save , false , 'npm ci should never save' )
104
105
// check if node_modules was removed before reifying
105
106
const contents = await readdir ( testDir )
106
107
t . equals ( contents . indexOf ( 'node_modules' ) , - 1 , 'node_modules does not exist' )
You can’t perform that action at this time.
0 commit comments