mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-11 23:24:06 -08:00
25 lines
621 B
TypeScript
25 lines
621 B
TypeScript
import fs from 'fs';
|
|
import fsPromises from 'fs/promises';
|
|
import { Readable } from 'stream';
|
|
import {
|
|
testWorkflows,
|
|
getWorkflowFilenames,
|
|
initBinaryDataManager,
|
|
} from '../../../test/nodes/Helpers';
|
|
|
|
const workflows = getWorkflowFilenames(__dirname);
|
|
|
|
describe('Test Crypto Node', () => {
|
|
jest.mock('fast-glob', () => async () => ['/test/binary.data']);
|
|
jest.mock('fs/promises');
|
|
fsPromises.access = async () => {};
|
|
jest.mock('fs');
|
|
fs.createReadStream = () => Readable.from(Buffer.from('test')) as fs.ReadStream;
|
|
|
|
beforeEach(async () => {
|
|
await initBinaryDataManager();
|
|
});
|
|
|
|
testWorkflows(workflows);
|
|
});
|