Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions EHR_App/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = {
},
moduleFileExtensions: ['ts', 'tsx', 'js'],
roots: ['<rootDir>'],
setupFiles: ['./src/client/test/jest.polyfills.ts'],
setupFilesAfterEnv: [
'./src/client/test/jest.setup.ts'
],
Expand Down
113 changes: 51 additions & 62 deletions EHR_App/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions EHR_App/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"lint-branch-fix": "node lint.diff.mjs --currentBranch --fix"
},
"dependencies": {
"@labkey/components": "7.55.2",
"@labkey/ehr": "0.0.9"
"@labkey/components": "7.58.1",
"@labkey/ehr": "0.0.10"
},
"devDependencies": {
"@labkey/build": "10.1.0",
"@labkey/build": "10.1.2",
"@labkey/eslint-config": "1.2.3",
"@types/jest": "30.0.0",
"@types/react": "18.3.31",
Expand Down
10 changes: 10 additions & 0 deletions EHR_App/src/client/test/jest.polyfills.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Copyright (c) 2026 LabKey Corporation. All rights reserved. No portion of this work may be reproduced
* in any form or by any electronic or mechanical means without written permission from LabKey Corporation.
*/
import { TextDecoder, TextEncoder } from 'util';

// JSDom treats TextEncoder/TextDecoder as Node globals and omits them, but react-router constructs an encoder at module
// scope, so anything importing it throws before a test can run. Browsers provide these natively.
globalThis.TextEncoder = TextEncoder;
globalThis.TextDecoder = TextDecoder as typeof globalThis.TextDecoder;
Loading