chore: Upgrade nock and delete nock related boilerplate code (no-changelog) (#12869)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-01-27 18:17:51 +01:00
committed by GitHub
parent 0bb65f27ab
commit f64c6bf9ac
154 changed files with 75 additions and 1483 deletions

View File

@@ -1,5 +1,4 @@
import type { INodeTypes } from 'n8n-workflow';
import nock from 'nock';
import { executeWorkflow } from '@test/nodes/ExecuteWorkflow';
import { getResultNodeData, setup, workflowToTests } from '@test/nodes/Helpers';
@@ -25,16 +24,6 @@ jest.mock('../../v1/GenericFunctions', () => {
describe('Test MySqlV1, executeQuery', () => {
const workflows = ['nodes/MySql/test/v1/executeQuery.workflow.json'];
const tests = workflowToTests(workflows);
beforeAll(() => {
nock.disableNetConnect();
});
afterAll(() => {
nock.restore();
jest.unmock('../../v1/GenericFunctions');
});
const nodeTypes = setup(tests);
const testNode = async (testData: WorkflowTestData, types: INodeTypes) => {