replace jest with ava
This commit is contained in:
parent
27cc8b23fe
commit
0347b72305
11775 changed files with 84546 additions and 1440575 deletions
20
node_modules/ava/lib/chalk.js
generated
vendored
Normal file
20
node_modules/ava/lib/chalk.js
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
'use strict';
|
||||
const chalk = require('chalk');
|
||||
|
||||
let ctx = null;
|
||||
exports.get = () => {
|
||||
if (!ctx) {
|
||||
throw new Error('Chalk has not yet been configured');
|
||||
}
|
||||
|
||||
return ctx;
|
||||
};
|
||||
|
||||
exports.set = options => {
|
||||
if (ctx) {
|
||||
throw new Error('Chalk has already been configured');
|
||||
}
|
||||
|
||||
ctx = new chalk.Instance(options);
|
||||
return ctx;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue