@@ -13,6 +13,7 @@ const {
13
13
assertCodemodRan
14
14
} = require ( './helpers/assertions' ) ;
15
15
const manifest = require ( '../manifest' ) ;
16
+ const run = require ( 'ember-cli-update/src/run' ) ;
16
17
17
18
const codemods = Object . keys ( manifest ) ;
18
19
@@ -83,6 +84,10 @@ describe('runs codemods', function() {
83
84
runCodemods : true ,
84
85
async beforeMerge ( ) {
85
86
await _merge ( 'local' , tmpPath ) ;
87
+
88
+ if ( manifest [ codemod ] . script ) {
89
+ await run ( 'npm install' , { cwd : tmpPath } ) ;
90
+ }
86
91
}
87
92
} ) ;
88
93
@@ -109,9 +114,14 @@ describe('runs codemods', function() {
109
114
assertNoUnstaged ( status ) ;
110
115
assertCodemodRan ( status ) ;
111
116
117
+ await fs . remove ( path . join ( tmpPath , 'package-lock.json' ) ) ;
118
+
112
119
// file is indeterminent between OS's, so ignore
113
120
await fs . remove ( path . join ( tmpPath , 'MODULE_REPORT.md' ) ) ;
114
121
122
+ // remove dist and node_modules before fixture compare
123
+ await run ( 'git clean -fdX' , { cwd : tmpPath } ) ;
124
+
115
125
let nodeVersion = 'latest-node' ;
116
126
if ( process . env . NODE_LTS ) {
117
127
nodeVersion = 'min-node' ;
0 commit comments