Skip to content

Commit

Permalink
Upgrade @ava/babel
Browse files Browse the repository at this point in the history
Recognize new @ava/require-precompiled dependency when beautifying stack traces.
  • Loading branch information
novemberborn committed Feb 9, 2020
1 parent 04ba44b commit 362b6f9
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 25 deletions.
2 changes: 1 addition & 1 deletion lib/beautify-stack.js
Expand Up @@ -7,7 +7,7 @@ const debug = require('debug')('ava');
let ignoreStackLines = [];

const avaInternals = /\/ava\/(?:lib\/|lib\/worker\/)?[\w-]+\.js:\d+:\d+\)?$/;
const avaDependencies = /\/node_modules\/(?:@ava\/babel|append-transform|empower-core|nyc|require-precompiled|(?:ava\/node_modules\/)?(?:babel-runtime|core-js))\//;
const avaDependencies = /\/node_modules\/(?:@ava\/babel|@ava\/require-precompiled|append-transform|empower-core|nyc|require-precompiled|(?:ava\/node_modules\/)?(?:babel-runtime|core-js))\//;
const stackFrameLine = /^.+( \(.+:\d+:\d+\)|:\d+:\d+)$/; // eslint-disable-line prefer-named-capture-group

if (!debug.enabled) {
Expand Down
142 changes: 119 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -111,7 +111,7 @@
"yargs": "^15.1.0"
},
"devDependencies": {
"@ava/babel": "^1.0.0",
"@ava/babel": "^1.0.1",
"@types/node": "^10.17.13",
"ansi-escapes": "^4.3.0",
"delay": "^4.3.0",
Expand Down

0 comments on commit 362b6f9

Please sign in to comment.