Skip to content

Commit

Permalink
chore(jest): migrate to latest jest-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed Feb 28, 2020
1 parent 7a8cb0b commit 8eed20a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions skeleton/jest/aurelia_project/tasks/test.ext
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { runCLI } from '@jest/core';
// @if feat.babel
import jest from 'jest-cli';
import path from 'path';
import packageJson from '../../package.json';
// @endif
// @if feat.typescript
import * as jest from 'jest-cli';
import * as path from 'path';
import * as packageJson from '../../package.json';
// @endif
Expand All @@ -22,7 +21,7 @@ export default (cb) => {
process.env.BABEL_TARGET = 'node';
// @endif

jest.runCLI(options, [path.resolve(__dirname, '../../')]).then(({ results }) => {
runCLI(options, [path.resolve(__dirname, '../../')]).then(({ results }) => {
if (results.numFailedTests || results.numFailedTestSuites) {
cb('Tests Failed');
} else {
Expand Down

0 comments on commit 8eed20a

Please sign in to comment.