refactor: Overhaul nodes-testing setup - Part 1 (no-changelog) (#14303)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-04-01 10:15:13 +02:00
committed by GitHub
parent f85b851851
commit 73e8d76e13
165 changed files with 3397 additions and 6453 deletions

View File

@@ -1,18 +1,9 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import nock from 'nock';
import {
equalityTest,
getWorkflowFilenames,
initBinaryDataService,
setup,
workflowToTests,
} from '@test/nodes/Helpers';
import { getWorkflowFilenames, initBinaryDataService, testWorkflows } from '@test/nodes/Helpers';
describe('GraphQL Node', () => {
const workflows = getWorkflowFilenames(__dirname);
const workflowTests = workflowToTests(workflows);
const baseUrl = 'https://api.n8n.io/';
beforeAll(async () => {
@@ -69,9 +60,6 @@ describe('GraphQL Node', () => {
});
});
const nodeTypes = setup(workflowTests);
for (const workflow of workflowTests) {
test(workflow.description, async () => await equalityTest(workflow, nodeTypes));
}
const workflows = getWorkflowFilenames(__dirname);
testWorkflows(workflows);
});