Skip to content

Commit 69d8349

Browse files
authored
fix: update dated deps (#13)
1 parent 46afebf commit 69d8349

File tree

6 files changed

+1318
-1253
lines changed

6 files changed

+1318
-1253
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ const fs = require('fs');
7272
const { pass, fail } = require('create-jest-runner');
7373

7474
module.exports = ({ testPath }) => {
75-
const start = +new Date();
75+
const start = Date.now();
7676
const contents = fs.readFileSync(testPath, 'utf8');
77-
const end = +new Date();
77+
const end = Date.now();
7878

7979
if (contents.includes('⚔️🏃')) {
8080
return pass({ start, end, test: { path: testPath } });

integrationTests/runJest.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const execa = require('execa');
33
const path = require('path');
44

5-
const rootDir = path.join(__dirname, '..');
5+
const rootDir = path.resolve(__dirname, '..');
66

77
const normalize = output =>
88
output
@@ -28,10 +28,9 @@ const runJest = (project, options = []) => {
2828
].concat(options),
2929
{
3030
env: process.env,
31+
reject: false,
3132
},
32-
)
33-
.catch(t => t)
34-
.then(({ stdout, stderr }) => `${normalize(stderr)}\n${normalize(stdout)}`);
33+
).then(({ stdout, stderr }) => `${normalize(stderr)}\n${normalize(stdout)}`);
3534
};
3635

3736
module.exports = runJest;

integrationTests/runner/run.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ const fs = require('fs');
22
const { pass, fail, skip } = require('../../');
33

44
module.exports = ({ testPath }) => {
5-
const start = +new Date();
5+
const start = Date.now();
66
const contents = fs.readFileSync(testPath, 'utf8');
7-
const end = +new Date();
7+
const end = Date.now();
88

99
if (contents.includes('⚔️🏃')) {
1010
return pass({ start, end, test: { path: testPath } });

lib/toTestResult.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const toTestResult = ({
1212
numPassingTests: stats.passes,
1313
numPendingTests: stats.pending,
1414
perfStats: {
15-
end: +new Date(stats.end),
16-
start: +new Date(stats.start),
15+
end: new Date(stats.end).getTime(),
16+
start: new Date(stats.start).getTime(),
1717
},
1818
skipped,
1919
snapshot: {

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@
1919
"format": "prettier --single-quote --trailing-comma all --write \"!(build)/**/*.js\""
2020
},
2121
"dependencies": {
22-
"jest-worker": "^22.0.0",
22+
"jest-worker": "^23.2.0",
2323
"throat": "^4.1.0"
2424
},
2525
"devDependencies": {
26-
"@babel/cli": "^7.0.0-beta.46",
27-
"@babel/core": "^7.0.0-beta.46",
28-
"@babel/preset-env": "^7.0.0-beta.46",
29-
"babel-core": "^7.0.0-0",
30-
"babel-jest": "^22.4.3",
31-
"eslint": "^4.5.0",
32-
"eslint-config-airbnb-base": "^12.1.0",
33-
"eslint-config-prettier": "^2.3.0",
26+
"@babel/cli": "^7.0.0",
27+
"@babel/core": "^7.0.0",
28+
"@babel/preset-env": "^7.0.0",
29+
"babel-core": "^7.0.0-bridge.0",
30+
"babel-jest": "^23.6.0",
31+
"eslint": "^5.6.0",
32+
"eslint-config-airbnb-base": "^13.1.0",
33+
"eslint-config-prettier": "^3.0.1",
3434
"eslint-plugin-import": "^2.7.0",
3535
"eslint-plugin-jest": "^21.15.1",
3636
"eslint-plugin-prettier": "^2.2.0",
37-
"execa": "^0.10.0",
38-
"jest": "^22.4.3",
37+
"execa": "^1.0.0",
38+
"jest": "^23.6.0",
3939
"prettier": "^1.7.4"
4040
}
4141
}

0 commit comments

Comments
 (0)