mirror of
https://github.com/VisActor/VChart
synced 2024-11-22 17:26:19 +00:00
15 lines
423 B
JavaScript
15 lines
423 B
JavaScript
require('dotenv').config({ path: './.env.local' });
|
|
const { error, log,warn,info,debug } = require('console');
|
|
|
|
global.console = {
|
|
// eslint-disable-next-line no-undef
|
|
//log: jest.fn(), // console.log are ignored in tests
|
|
log: log,
|
|
|
|
// Keep native behaviour for other methods, use those to print out things in your own tests, not `console.log`
|
|
error: error,
|
|
warn: warn,
|
|
info: jest.fn(),
|
|
debug: jest.fn()
|
|
};
|