Skip to content

Commit ff1ebd5

Browse files
committed
Update test setup
1 parent ab4a4d6 commit ff1ebd5

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

jest.config.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@ module.exports = {
2121
testMatch: null,
2222
testRegex: '/test/.*?\\.(test|spec)\\.tsx?$',
2323
transform: {
24-
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
25-
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
2624
'^.+\\.tsx?$': [
2725
'ts-jest',
2826
{
29-
tsconfig: 'test/tsconfig.json',
3027
diagnostics: {
3128
ignoreCodes: ['TS151001'],
3229
},
30+
tsconfig: 'test/tsconfig.json',
3331
},
3432
],
3533
},

test/index.spec.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
render,
99
RenderResult,
1010
screen,
11-
} from '@testing-library/react/pure';
11+
} from '@testing-library/react';
1212

1313
import { Button, Floaters, Styled } from './__fixtures__/components';
1414

test/tsconfig.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"extends": "../tsconfig",
33
"compilerOptions": {
4-
"allowJs": true,
5-
"module": "esnext",
4+
"esModuleInterop": true,
5+
"module": "ES2022",
6+
"moduleResolution": "node",
67
"noUnusedLocals": false
78
},
89
"include": ["**/*"]

0 commit comments

Comments
 (0)