Skip to content

Commit bc958c9

Browse files
author
christopherholland-workday
committed
Fix test coverage failures
1 parent 1a6f914 commit bc958c9

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

packages/agentflow/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const baseConfig = {
66
'^.+\\.tsx?$': [
77
'ts-jest',
88
{
9-
tsconfig: 'tsconfig.json'
9+
tsconfig: 'tsconfig.test.json'
1010
}
1111
]
1212
},

packages/agentflow/src/__test_utils__/jest-environment-jsdom.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
* do not support ESM.
1111
*/
1212

13-
const JSDOMEnvironment = require('jest-environment-jsdom').default
13+
const jestJsdom = require('jest-environment-jsdom')
14+
15+
const JSDOMEnvironment = jestJsdom.default ?? jestJsdom
1416

1517
// Mock canvas before jsdom tries to load it.
1618
// NOTE: This overrides Module.prototype.require globally for the entire test process.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"module": "CommonJS",
5+
"moduleResolution": "node"
6+
}
7+
}

0 commit comments

Comments
 (0)