File tree Expand file tree Collapse file tree 10 files changed +65
-6
lines changed
Expand file tree Collapse file tree 10 files changed +65
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ module.exports = {
2020
2121 globals : {
2222 'ts-jest' : {
23- tsconfig : ' <rootDir>/tsconfig.json'
23+ tsconfig : " <rootDir>/tsconfig.test. json"
2424 }
2525 } ,
2626
Original file line number Diff line number Diff line change 2121 "verify:dir" : " npx eslint . --max-warnings 0" ,
2222 "regen-types" : " cd ../supabase && make ENV=prod regen-types" ,
2323 "regen-types-dev" : " cd ../supabase && make ENV=dev regen-types-dev" ,
24- "test" : " jest --config jest.config.js"
24+ "test" : " jest --config jest.config.js" ,
25+ "test:coverage" : " jest --config jest.config.js --coverage"
2526 },
2627 "engines" : {
2728 "node" : " >=20.0.0"
Original file line number Diff line number Diff line change 11{
22 "extends" : " ./tsconfig.json" ,
33 "compilerOptions" : {
4- "rootDir" : " ." ,
4+ // Use / as the root for tests so path-mapped imports from
5+ // ../shared and ../../common are within the configured rootDir.
6+ // This avoids TS6059 during ts-jest compilation.
7+ "rootDir" : " ../.." ,
58 "baseUrl" : " ." ,
69 "paths" : {
710 "api/*" : [" src/*" ],
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ module.exports = {
2020
2121 globals : {
2222 'ts-jest' : {
23- tsconfig : ' <rootDir>/tsconfig.json'
23+ tsconfig : " <rootDir>/tsconfig.test. json"
2424 }
2525 } ,
2626
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ./tsconfig.json" ,
3+ "compilerOptions" : {
4+ // Use / as the root for tests so path-mapped imports from
5+ // ../shared and ../../common are within the configured rootDir.
6+ // This avoids TS6059 during ts-jest compilation.
7+ "rootDir" : " ../.." ,
8+ "baseUrl" : " ." ,
9+ "paths" : {
10+ "api/*" : [" src/*" ],
11+ "shared/*" : [" ../shared/src/*" ],
12+ "common/*" : [" ../../common/src/*" ],
13+ "email/*" : [" ../email/emails/*" ]
14+ }
15+ },
16+ "include" : [" tests/**/*.ts" , " src/**/*.ts" ]
17+ }
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ module.exports = {
2020
2121 globals : {
2222 'ts-jest' : {
23- tsconfig : ' <rootDir>/tsconfig.json'
23+ tsconfig : " <rootDir>/tsconfig.test. json"
2424 }
2525 } ,
2626
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ./tsconfig.json" ,
3+ "compilerOptions" : {
4+ // Use / as the root for tests so path-mapped imports from
5+ // ../shared and ../../common are within the configured rootDir.
6+ // This avoids TS6059 during ts-jest compilation.
7+ "rootDir" : " ../.." ,
8+ "baseUrl" : " ." ,
9+ "paths" : {
10+ "api/*" : [" src/*" ],
11+ "shared/*" : [" ../shared/src/*" ],
12+ "common/*" : [" ../../common/src/*" ],
13+ "email/*" : [" ../email/emails/*" ]
14+ }
15+ },
16+ "include" : [" tests/**/*.ts" , " src/**/*.ts" ]
17+ }
Original file line number Diff line number Diff line change @@ -13,4 +13,11 @@ module.exports = {
1313 // 'backend/api/src',
1414 // 'martin',
1515 ] ,
16+ projects : [
17+ "<rootDir>/backend/api" ,
18+ "<rootDir>/backend/shared" ,
19+ "<rootDir>/backend/email" ,
20+ "<rootDir>/common" ,
21+ "<rootDir>/web"
22+ ] ,
1623} ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ module.exports = {
2020
2121 globals : {
2222 'ts-jest' : {
23- tsconfig : ' <rootDir>/tsconfig.json'
23+ tsconfig : " <rootDir>/tsconfig.test. json"
2424 }
2525 } ,
2626
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ./tsconfig.json" ,
3+ "compilerOptions" : {
4+ // Use / as the root for tests so path-mapped imports from
5+ // ../shared and ../../common are within the configured rootDir.
6+ // This avoids TS6059 during ts-jest compilation.
7+ "rootDir" : " .." ,
8+ "baseUrl" : " ." ,
9+ "paths" : {
10+ "common/*" : [" ../../common/src/*" ],
11+ }
12+ },
13+ "include" : [" tests/**/*.ts" , " src/**/*.ts" ]
14+ }
You can’t perform that action at this time.
0 commit comments