mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
20 lines
465 B
TypeScript
20 lines
465 B
TypeScript
import { testWorkflows, getWorkflowFilenames } from '../../../test/nodes/Helpers';
|
|
const workflows = getWorkflowFilenames(__dirname);
|
|
|
|
describe('Execute Wait Node', () => {
|
|
let timer: NodeJS.Timer;
|
|
const { clearInterval, setInterval } = global;
|
|
|
|
beforeAll(() => {
|
|
timer = setInterval(() => jest.advanceTimersByTime(1000), 10);
|
|
jest.useFakeTimers();
|
|
});
|
|
|
|
afterAll(() => {
|
|
clearInterval(timer);
|
|
jest.useRealTimers();
|
|
});
|
|
|
|
testWorkflows(workflows);
|
|
});
|