Skip to content

Commit 514a711

Browse files
committed
Update Jest path aliases to reflect new monorepo structure for shared and editor packages
1 parent 0d0969e commit 514a711

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

apps/editor/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
// Module name mapper for path aliases from tsconfig.json
1010
moduleNameMapper: {
1111
'^@/(.*)$': '<rootDir>/src/$1',
12-
'^@shared/(.*)$': '<rootDir>/../shared/src/$1',
12+
'^@shared/(.*)$': '<rootDir>/../../packages/shared/src/$1',
1313
'^vscode$': '<rootDir>/__mocks__/vscode.js'
1414
},
1515
// Transform files with ts-jest

jest.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
module.exports = {
22
preset: 'ts-jest',
33
testEnvironment: 'node',
4-
testMatch: ['<rootDir>/packages/**/*.spec.ts'],
4+
testMatch: [
5+
,
6+
'<rootDir>/apps/**/*.spec.ts',
7+
'<rootDir>/packages/**/*.spec.ts'
8+
],
59
testPathIgnorePatterns: ['/node_modules/', '/out/', '/dist/'],
610
moduleNameMapper: {
711
'^@shared/(.*)$': '<rootDir>/packages/shared/src/$1',
8-
'^@/(.*)$': '<rootDir>/packages/vscode/src/$1'
12+
'^@/(.*)$': '<rootDir>/apps/editor/src/$1'
913
}
1014
}

0 commit comments

Comments
 (0)