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 assay/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.exports = {
// and then there is no test summary when failures happen, which means that you'll almost never see what tests
// failed unless they were the last tests to run.
reporters: [['default', { summaryThreshold: 10 }]],
setupFiles: ['./test/js/jest.polyfills.ts'],
setupFilesAfterEnv: ['./test/js/setup.ts'],
testEnvironment: 'jsdom',
testRegex: '(\\.(test))\\.(ts|tsx)$',
Expand Down
1,143 changes: 854 additions & 289 deletions assay/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"lint-fix": "eslint --fix"
},
"dependencies": {
"@labkey/components": "7.55.2"
"@labkey/components": "7.58.1"
},
"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 assay/test/js/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;
1 change: 1 addition & 0 deletions core/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.exports = {
// and then there is no test summary when failures happen, which means that you'll almost never see what tests
// failed unless they were the last tests to run.
reporters: [['default', { summaryThreshold: 10 }]],
setupFiles: ['./test/js/jest.polyfills.ts'],
setupFilesAfterEnv: ['./test/js/setup.ts'],
testEnvironment: 'jsdom',
testRegex: '(\\.(test))\\.(ts|tsx)$',
Expand Down
1,143 changes: 854 additions & 289 deletions core/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"lint-branch-fix": "node lint.diff.mjs --currentBranch --fix"
},
"dependencies": {
"@labkey/components": "7.55.2",
"@labkey/components": "7.58.1",
"@labkey/themes": "1.9.5"
},
"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 core/test/js/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