forked from opossum-tool/OpossumUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
25 lines (23 loc) · 858 Bytes
/
jest.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// SPDX-FileCopyrightText: Meta Platforms, Inc. and its affiliates
// SPDX-FileCopyrightText: TNG Technology Consulting GmbH <https://www.tngtech.com>
//
// SPDX-License-Identifier: Apache-2.0
import type { Config } from 'jest';
const config: Config = {
testEnvironment: 'jsdom',
resetMocks: false,
transformIgnorePatterns: ['/node_modules/(?!d3-*|internmap|axios)'],
setupFilesAfterEnv: ['./src/testing/setup-tests.ts'],
watchAll: false,
clearMocks: true,
globalSetup: './src/testing/global-test-setup.ts',
globalTeardown: './src/testing/global-test-teardown.ts',
setupFiles: ['whatwg-fetch'],
roots: ['<rootDir>/src/Frontend', '<rootDir>/src/ElectronBackend'],
modulePathIgnorePatterns: ['<rootDir>/build/'],
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
};
export default config;