Skip to content

Commit ddbc984

Browse files
Copilothotlong
andcommitted
Fix Jest moduleNameMapper to correctly resolve @objectql/runtime
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 0c60988 commit ddbc984

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/foundation/core/jest.config.js

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

0 commit comments

Comments
 (0)