Skip to content
Snippets Groups Projects
Unverified Commit 48bfb1c1 authored by Michael Kriese's avatar Michael Kriese Committed by GitHub
Browse files

test: fix memory leak (#10162)

parent 0b287c76
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ const config: InitialOptionsTsJest = {
},
modulePathIgnorePatterns: ['<rootDir>/dist/', '/__fixtures__/'],
reporters: ['default', './tmp/tools/jest-gh-reporter.js'],
setupFilesAfterEnv: ['<rootDir>/test/globals.ts'],
setupFilesAfterEnv: ['jest-extended', '<rootDir>/test/setup.ts'],
snapshotSerializers: ['<rootDir>/test/newline-snapshot-serializer.ts'],
testEnvironment: 'node',
testRunner: 'jest-circus/runner',
......
import nock from 'nock';
import 'jest-extended';
jest.mock('../lib/platform', () => ({
platform: jest.createMockFromModule('../lib/platform/github'),
initPlatform: jest.fn(),
getPlatformList: jest.fn(),
}));
jest.mock('../lib/logger');
beforeAll(() => {
nock.disableNetConnect();
});
......@@ -12,7 +12,7 @@
"resolveJsonModule": false,
"noUnusedLocals": true,
"lib": ["es2018"],
"types": ["node", "jest"],
"types": ["node", "jest", "jest-extended"],
"allowJs": true,
"checkJs": true
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment