test(core): Mock filesystem in tests (#10823)

This commit is contained in:
Iván Ovejero
2024-09-17 09:15:09 +02:00
committed by GitHub
parent a6e1064985
commit d14bb36300
4 changed files with 6 additions and 2 deletions

View File

@@ -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', () => {

View File

@@ -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');