File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const {
12
12
assertNoUnstaged,
13
13
assertCodemodRan
14
14
} = require ( './helpers/assertions' ) ;
15
+ const run = require ( 'ember-cli-update/src/run' ) ;
15
16
16
17
let manifest ;
17
18
let fixturesPath ;
@@ -121,6 +122,10 @@ describe('runs codemods', function() {
121
122
} = await merge ( {
122
123
async beforeMerge ( ) {
123
124
await _merge ( 'local' , tmpPath ) ;
125
+
126
+ if ( manifest [ codemod ] . script ) {
127
+ await run ( 'npm install' , { cwd : tmpPath } ) ;
128
+ }
124
129
}
125
130
} ) ;
126
131
@@ -148,9 +153,14 @@ describe('runs codemods', function() {
148
153
assertNoUnstaged ( status ) ;
149
154
assertCodemodRan ( status ) ;
150
155
156
+ await fs . remove ( path . join ( tmpPath , 'package-lock.json' ) ) ;
157
+
151
158
// file is indeterminent between OS's, so ignore
152
159
await fs . remove ( path . join ( tmpPath , 'MODULE_REPORT.md' ) ) ;
153
160
161
+ // remove dist and node_modules before fixture compare
162
+ await run ( 'git clean -fdX' , { cwd : tmpPath } ) ;
163
+
154
164
let nodeVersion = 'latest-node' ;
155
165
if ( process . env . NODE_LTS ) {
156
166
nodeVersion = 'min-node' ;
You can’t perform that action at this time.
0 commit comments