mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
17 lines
285 B
TypeScript
17 lines
285 B
TypeScript
jest.mock('zen-logger', () => {
|
|
class Logger {
|
|
log() {}
|
|
error() {}
|
|
warn() {}
|
|
debug() {}
|
|
}
|
|
return {
|
|
__esModule: true,
|
|
default: Logger,
|
|
};
|
|
});
|
|
|
|
export const mockConsoleWarn = jest.fn();
|
|
console.warn = mockConsoleWarn;
|
|
|
|
process.env.NODE_ENV = 'production'; |