UNPKG

ava

Version:

Node.js test runner that lets you develop with confidence.

16 lines (11 loc) 351 B
import {Chalk} from 'chalk'; // eslint-disable-line unicorn/import-style let chalk = new Chalk(); // eslint-disable-line import/no-mutable-exports export {chalk}; let configured = false; export function set(options) { if (configured) { throw new Error('Chalk has already been configured'); } configured = true; chalk = new Chalk(options); }