mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-15 20:17:13 -04:00
Fix
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = {
|
||||
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
tsconfig: '<rootDir>/tsconfig.json'
|
||||
tsconfig: "<rootDir>/tsconfig.test.json"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
"verify:dir": "npx eslint . --max-warnings 0",
|
||||
"regen-types": "cd ../supabase && make ENV=prod regen-types",
|
||||
"regen-types-dev": "cd ../supabase && make ENV=dev regen-types-dev",
|
||||
"test": "jest --config jest.config.js"
|
||||
"test": "jest --config jest.config.js",
|
||||
"test:coverage": "jest --config jest.config.js --coverage"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.0.0"
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": ".",
|
||||
// Use / as the root for tests so path-mapped imports from
|
||||
// ../shared and ../../common are within the configured rootDir.
|
||||
// This avoids TS6059 during ts-jest compilation.
|
||||
"rootDir": "../..",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"api/*": ["src/*"],
|
||||
|
||||
@@ -20,7 +20,7 @@ module.exports = {
|
||||
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
tsconfig: '<rootDir>/tsconfig.json'
|
||||
tsconfig: "<rootDir>/tsconfig.test.json"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
17
backend/email/tsconfig.test.json
Normal file
17
backend/email/tsconfig.test.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
// Use / as the root for tests so path-mapped imports from
|
||||
// ../shared and ../../common are within the configured rootDir.
|
||||
// This avoids TS6059 during ts-jest compilation.
|
||||
"rootDir": "../..",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"api/*": ["src/*"],
|
||||
"shared/*": ["../shared/src/*"],
|
||||
"common/*": ["../../common/src/*"],
|
||||
"email/*": ["../email/emails/*"]
|
||||
}
|
||||
},
|
||||
"include": ["tests/**/*.ts", "src/**/*.ts"]
|
||||
}
|
||||
@@ -20,7 +20,7 @@ module.exports = {
|
||||
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
tsconfig: '<rootDir>/tsconfig.json'
|
||||
tsconfig: "<rootDir>/tsconfig.test.json"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
17
backend/shared/tsconfig.test.json
Normal file
17
backend/shared/tsconfig.test.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
// Use / as the root for tests so path-mapped imports from
|
||||
// ../shared and ../../common are within the configured rootDir.
|
||||
// This avoids TS6059 during ts-jest compilation.
|
||||
"rootDir": "../..",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"api/*": ["src/*"],
|
||||
"shared/*": ["../shared/src/*"],
|
||||
"common/*": ["../../common/src/*"],
|
||||
"email/*": ["../email/emails/*"]
|
||||
}
|
||||
},
|
||||
"include": ["tests/**/*.ts", "src/**/*.ts"]
|
||||
}
|
||||
@@ -13,4 +13,11 @@ module.exports = {
|
||||
// 'backend/api/src',
|
||||
// 'martin',
|
||||
],
|
||||
projects: [
|
||||
"<rootDir>/backend/api",
|
||||
"<rootDir>/backend/shared",
|
||||
"<rootDir>/backend/email",
|
||||
"<rootDir>/common",
|
||||
"<rootDir>/web"
|
||||
],
|
||||
};
|
||||
|
||||
@@ -20,7 +20,7 @@ module.exports = {
|
||||
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
tsconfig: '<rootDir>/tsconfig.json'
|
||||
tsconfig: "<rootDir>/tsconfig.test.json"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
14
web/tsconfig.test.json
Normal file
14
web/tsconfig.test.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
// Use / as the root for tests so path-mapped imports from
|
||||
// ../shared and ../../common are within the configured rootDir.
|
||||
// This avoids TS6059 during ts-jest compilation.
|
||||
"rootDir": "..",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"common/*": ["../../common/src/*"],
|
||||
}
|
||||
},
|
||||
"include": ["tests/**/*.ts", "src/**/*.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user