We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a4ac29f + ad17d9f commit 16c283aCopy full SHA for 16c283a
23 files changed
config/setupTests.js
@@ -1,11 +1,8 @@
1
/* eslint-disable no-unused-vars */
2
-import { configure } from 'enzyme';
3
-import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
4
import 'whatwg-fetch';
5
import 'babel-polyfill';
6
import '@testing-library/jest-dom';
7
8
-configure({ adapter: new Adapter() });
9
global.SVGPathElement = function () {};
10
11
global.MutationObserver = class {
jest.config.js
@@ -20,6 +20,9 @@ const config = {
20
],
21
setupFilesAfterEnv: [ '<rootDir>/config/setupTests.js', 'jest-canvas-mock' ],
22
testEnvironment: 'jsdom',
23
+ testEnvironmentOptions: {
24
+ url: 'http://localhost:5000/',
25
+ },
26
roots: [ '<rootDir>/packages/' ],
27
// modulePathIgnorePatterns: ['<rootDir>/packages/create-crc-app/templates', '<rootDir>/packages/docs/.cache'],
28
modulePathIgnorePatterns: [
@@ -35,16 +38,10 @@ const config = {
35
38
PFReactCore: '@patternfly/react-core',
36
39
PFReactTable: '@patternfly/react-table',
37
40
},
- testURL: 'http://localhost:5000/',
41
globalSetup: '<rootDir>/config/globalSetup.js',
42
transform: {
43
'^.+\\.jsx?$': 'babel-jest',
- '^.+\\.tsx?$': 'ts-jest',
- },
44
- globals: {
45
- 'ts-jest': {
46
- tsconfig: './packages/module/tsconfig.json',
47
+ '^.+\\.tsx?$': [ 'ts-jest', { tsconfig: './packages/module/tsconfig.json', } ],
48
49
};
50
0 commit comments