mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
chore: Upgrade nock and delete nock related boilerplate code (no-changelog) (#12869)
This commit is contained in:
committed by
GitHub
parent
0bb65f27ab
commit
f64c6bf9ac
@@ -1,5 +1,4 @@
|
||||
import type { IHttpRequestMethods, INodeTypes, WorkflowTestData } from 'n8n-workflow';
|
||||
import nock from 'nock';
|
||||
|
||||
import { getResultNodeData, setup, workflowToTests } from '@test/nodes/Helpers';
|
||||
|
||||
@@ -26,16 +25,6 @@ jest.mock('../../../../V2/GenericFunctions', () => {
|
||||
describe('Test SlackV2, file => upload', () => {
|
||||
const workflows = ['nodes/Slack/test/v2/node/file/upload.workflow.json'];
|
||||
const tests = workflowToTests(workflows);
|
||||
|
||||
beforeAll(() => {
|
||||
nock.disableNetConnect();
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
nock.restore();
|
||||
jest.unmock('../../../../V2/GenericFunctions');
|
||||
});
|
||||
|
||||
const nodeTypes = setup(tests);
|
||||
|
||||
const testNode = async (testData: WorkflowTestData, types: INodeTypes) => {
|
||||
|
||||
Reference in New Issue
Block a user