mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
test(core): Mock filesystem in tests (#10823)
This commit is contained in:
@@ -21,6 +21,8 @@ import type { SuperAgentTest } from './shared/types';
|
||||
import { initActiveWorkflowManager } from './shared/utils';
|
||||
import { mockInstance } from '../shared/mocking';
|
||||
|
||||
jest.unmock('node:fs');
|
||||
|
||||
mockInstance(Telemetry);
|
||||
|
||||
describe('Webhook API', () => {
|
||||
|
||||
@@ -5,3 +5,5 @@ jest.mock('@n8n_io/license-sdk');
|
||||
jest.mock('@/telemetry');
|
||||
jest.mock('@/eventbus/message-event-bus/message-event-bus');
|
||||
jest.mock('@/push');
|
||||
jest.mock('node:fs');
|
||||
jest.mock('node:fs/promises');
|
||||
|
||||
Reference in New Issue
Block a user