Skip to content

Commit 899ba9b

Browse files
Copilothotlong
andcommitted
Fix platform-node jest config for @objectql/runtime mapping
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent fcbb24c commit 899ba9b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/foundation/platform-node/jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ module.exports = {
1111
testEnvironment: 'node',
1212
testMatch: ['**/test/**/*.test.ts'],
1313
moduleNameMapper: {
14+
'^@objectql/runtime$': '<rootDir>/../../objectstack/runtime/src',
15+
'^@objectstack/runtime$': '<rootDir>/test/__mocks__/@objectstack/runtime.ts',
1416
'^@objectql/(.*)$': '<rootDir>/../$1/src',
15-
'^@objectql/runtime$': '<rootDir>/test/__mocks__/@objectql/runtime.ts',
1617
},
1718
transform: {
1819
'^.+\\.ts$': ['ts-jest', {

0 commit comments

Comments
 (0)