Upgrade Ava to v4
This commit is contained in:
parent
9a40cc5274
commit
ce89f1b611
1153 changed files with 27264 additions and 95308 deletions
18
node_modules/ava/lib/reporters/beautify-stack.js
generated
vendored
18
node_modules/ava/lib/reporters/beautify-stack.js
generated
vendored
|
|
@ -1,16 +1,10 @@
|
|||
'use strict';
|
||||
const StackUtils = require('stack-utils');
|
||||
import StackUtils from 'stack-utils';
|
||||
|
||||
const stackUtils = new StackUtils({
|
||||
ignoredPackages: [
|
||||
'@ava/babel',
|
||||
'@ava/require-precompiled',
|
||||
'@ava/typescript',
|
||||
'append-transform',
|
||||
'ava',
|
||||
'empower-core',
|
||||
'esm',
|
||||
'nyc'
|
||||
'nyc',
|
||||
],
|
||||
internals: [
|
||||
// AVA internals, which ignoredPackages don't ignore when we run our own unit tests.
|
||||
|
|
@ -20,8 +14,8 @@ const stackUtils = new StackUtils({
|
|||
/\(internal\/process\/task_queues\.js:\d+:\d+\)$/,
|
||||
/\(internal\/modules\/cjs\/.+?\.js:\d+:\d+\)$/,
|
||||
/async Promise\.all \(index/,
|
||||
/new Promise \(<anonymous>\)/
|
||||
]
|
||||
/new Promise \(<anonymous>\)/,
|
||||
],
|
||||
});
|
||||
|
||||
/*
|
||||
|
|
@ -60,7 +54,7 @@ const stackUtils = new StackUtils({
|
|||
* Module.runMain (module.js:604:10)
|
||||
* ```
|
||||
*/
|
||||
module.exports = stack => {
|
||||
export default function beautifyStack(stack) {
|
||||
if (!stack) {
|
||||
return [];
|
||||
}
|
||||
|
|
@ -70,4 +64,4 @@ module.exports = stack => {
|
|||
.split('\n')
|
||||
.map(line => line.trim())
|
||||
.filter(line => line !== '');
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue