Skip to content

Commit a84161a

Browse files
committed
jest.config.js
1 parent ccda1ca commit a84161a

2 files changed

Lines changed: 22 additions & 27 deletions

File tree

reactExamples/jest.config.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright (c) 2026 LabKey Corporation. All rights reserved. No portion of this work may be reproduced
3+
* in any form or by any electronic or mechanical means without written permission from LabKey Corporation.
4+
*/
5+
module.exports = {
6+
globals: {
7+
LABKEY: {},
8+
},
9+
moduleFileExtensions: ['ts', 'tsx', 'js'],
10+
setupFilesAfterEnv: ['./test/jest.setup.ts'],
11+
testEnvironment: 'jsdom',
12+
testRegex: '(\\.(test))\\.(ts|tsx)$',
13+
testResultsProcessor: 'jest-teamcity-reporter',
14+
transform: {
15+
'^.+\\.tsx?$': [
16+
'ts-jest',
17+
{
18+
tsconfig: 'node_modules/@labkey/build/webpack/tsconfig.test.json',
19+
},
20+
],
21+
},
22+
};

reactExamples/package.json

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,5 @@
2727
},
2828
"overrides": {
2929
"uuid": "14.0.0"
30-
},
31-
"jest": {
32-
"globals": {
33-
"LABKEY": {}
34-
},
35-
"moduleFileExtensions": [
36-
"tsx",
37-
"ts",
38-
"js"
39-
],
40-
"preset": "ts-jest",
41-
"setupFilesAfterEnv": [
42-
"<rootDir>/test/jest.setup.ts"
43-
],
44-
"testEnvironment": "jsdom",
45-
"testMatch": null,
46-
"testRegex": "(\\.(test))\\.(ts|tsx)$",
47-
"testResultsProcessor": "jest-teamcity-reporter",
48-
"transform": {
49-
"^.+\\.tsx?$": [
50-
"ts-jest",
51-
{
52-
"isolatedModules": true,
53-
"tsconfig": "node_modules/@labkey/build/webpack/tsconfig.json"
54-
}
55-
]
56-
}
5730
}
5831
}

0 commit comments

Comments
 (0)