Skip to content

Commit 589ff53

Browse files
author
Robert Jackson
authored
Update dependencies to latest versions. (#68)
Update dependencies to latest versions.
2 parents e3af558 + ec9ead1 commit 589ff53

4 files changed

Lines changed: 1527 additions & 1207 deletions

File tree

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,34 +34,34 @@
3434
"test": "qunit tests/**/*-test.js"
3535
},
3636
"dependencies": {
37-
"@babel/parser": "^7.4.5",
37+
"@babel/parser": "^7.6.0",
3838
"chalk": "^2.4.2",
3939
"common-tags": "^1.8.0",
40-
"execa": "^1.0.0",
41-
"fs-extra": "^8.0.1",
42-
"globby": "^9.2.0",
40+
"execa": "^2.0.4",
41+
"fs-extra": "^8.1.0",
42+
"globby": "^10.0.1",
4343
"import-cwd": "^3.0.0",
44-
"import-local": "^2.0.0",
44+
"import-local": "^3.0.2",
4545
"jscodeshift": "^0.6.4",
4646
"latest-version": "^5.1.0",
4747
"pkg-up": "^3.1.0",
48-
"recast": "^0.18.1",
48+
"recast": "^0.18.2",
4949
"yargs": "^13.2.0"
5050
},
5151
"devDependencies": {
5252
"broccoli-test-helper": "^2.0.0",
53-
"coveralls": "^3.0.4",
54-
"eslint": "^5.16.0",
55-
"eslint-config-prettier": "^4.0.0",
56-
"eslint-plugin-node": "^9.1.0",
57-
"eslint-plugin-prettier": "^3.1.0",
58-
"jest": "^24.8.0",
59-
"prettier": "^1.16.4",
53+
"coveralls": "^3.0.6",
54+
"eslint": "^6.4.0",
55+
"eslint-config-prettier": "^6.3.0",
56+
"eslint-plugin-node": "^10.0.0",
57+
"eslint-plugin-prettier": "^3.1.1",
58+
"jest": "^24.9.0",
59+
"prettier": "^1.18.2",
6060
"qunit": "^2.9.2",
61-
"release-it": "^12.3.0",
61+
"release-it": "^12.4.1",
6262
"release-it-lerna-changelog": "^1.0.3",
6363
"require-so-slow": "^1.2.0",
64-
"walk-sync": "^1.1.3"
64+
"walk-sync": "^2.0.2"
6565
},
6666
"engines": {
6767
"node": "8.* || 10.* || >= 12"

src/test-support.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ function jscodeshiftTest(options) {
2828
.sync('**/*.input.*', {
2929
cwd: details.fixtureDir,
3030
absolute: true,
31-
transform: entry =>
32-
entry.slice(entry.indexOf('__testfixtures__') + '__testfixtures__'.length + 1),
3331
})
32+
.map(entry => entry.slice(entry.indexOf('__testfixtures__') + '__testfixtures__'.length + 1))
3433
.forEach(filename => {
3534
let extension = path.extname(filename);
3635
let testName = filename.replace(`.input${extension}`, '');

tests/cli-test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ QUnit.module('codemod-cli', function(hooks) {
5050
QUnit.test('should generate a basic project structure', async function(assert) {
5151
let result = await execa(EXECUTABLE_PATH, ['new', 'ember-qunit-codemod']);
5252

53-
assert.equal(result.code, 0, 'exited with zero');
53+
assert.equal(result.exitCode, 0, 'exited with zero');
5454
assert.deepEqual(walkSync(codemodProject.path()), [
5555
'ember-qunit-codemod/',
5656
'ember-qunit-codemod/.eslintignore',
@@ -77,7 +77,7 @@ QUnit.module('codemod-cli', function(hooks) {
7777

7878
QUnit.test('should pass for a basic project', async function(assert) {
7979
let result = await execa('yarn', ['lint']);
80-
assert.equal(result.code, 0, 'exited with zero');
80+
assert.equal(result.exitCode, 0, 'exited with zero');
8181
});
8282
});
8383

@@ -107,7 +107,7 @@ QUnit.module('codemod-cli', function(hooks) {
107107
QUnit.test('should generate a codemod', async function(assert) {
108108
let result = await execa(EXECUTABLE_PATH, ['generate', 'codemod', 'main']);
109109

110-
assert.equal(result.code, 0, 'exited with zero');
110+
assert.equal(result.exitCode, 0, 'exited with zero');
111111
assert.deepEqual(walkSync(codemodProject.path('transforms')), [
112112
'.gitkeep',
113113
'main/',
@@ -131,7 +131,7 @@ QUnit.module('codemod-cli', function(hooks) {
131131
'this-dot-owner',
132132
]);
133133

134-
assert.equal(result.code, 0, 'exited with zero');
134+
assert.equal(result.exitCode, 0, 'exited with zero');
135135
assert.deepEqual(walkSync(codemodProject.path('transforms')), [
136136
'.gitkeep',
137137
'main/',
@@ -153,7 +153,7 @@ QUnit.module('codemod-cli', function(hooks) {
153153
await execa(EXECUTABLE_PATH, ['generate', 'fixture', 'main', 'this-dot-owner']);
154154

155155
let result = await execa(EXECUTABLE_PATH, ['test']);
156-
assert.equal(result.code, 0, 'exited with zero');
156+
assert.equal(result.exitCode, 0, 'exited with zero');
157157
});
158158

159159
QUnit.test('should fail when input and output do not match', async function(assert) {
@@ -174,7 +174,7 @@ QUnit.module('codemod-cli', function(hooks) {
174174
try {
175175
await execa(EXECUTABLE_PATH, ['test']);
176176
} catch (result) {
177-
assert.notEqual(result.code, 0, 'exited with non-zero');
177+
assert.notEqual(result.exitCode, 0, 'exited with non-zero');
178178
}
179179
});
180180

@@ -214,7 +214,7 @@ QUnit.module('codemod-cli', function(hooks) {
214214
});
215215

216216
let result = await execa(EXECUTABLE_PATH, ['test']);
217-
assert.equal(result.code, 0, 'exited with zero');
217+
assert.equal(result.exitCode, 0, 'exited with zero');
218218
});
219219

220220
QUnit.test('transform should receive a file path in tests', async function(assert) {
@@ -251,7 +251,7 @@ QUnit.module('codemod-cli', function(hooks) {
251251
});
252252

253253
let result = await execa(EXECUTABLE_PATH, ['test']);
254-
assert.equal(result.code, 0, 'exited with zero');
254+
assert.equal(result.exitCode, 0, 'exited with zero');
255255
});
256256

257257
QUnit.test('transform should receive a subfolder file path in tests', async function(assert) {
@@ -290,7 +290,7 @@ QUnit.module('codemod-cli', function(hooks) {
290290
});
291291

292292
let result = await execa(EXECUTABLE_PATH, ['test']);
293-
assert.equal(result.code, 0, 'exited with zero');
293+
assert.equal(result.exitCode, 0, 'exited with zero');
294294
});
295295
});
296296
});

0 commit comments

Comments
 (0)