Skip to content

Commit 1867a97

Browse files
authored
fix(toolbox-core): fix config to build in the right place (#27)
* fix: fix config to build in the right place * fix config for test run * fix e2e test config
1 parent 7e87b0d commit 1867a97

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

packages/toolbox-core/jest.config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
"<rootDir>/test/*.ts"
44
],
55
"preset": "ts-jest",
6+
"transform": {
7+
"^.+\\.ts$": [
8+
"ts-jest",
9+
{
10+
"tsconfig": "tsconfig.test.json"
11+
}
12+
]
13+
},
614
"testEnvironment": "node",
715
"collectCoverage": true,
816
"coverageDirectory": "coverage",

packages/toolbox-core/jest.e2e.config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
"testMatch": [
55
"<rootDir>/test/e2e/*.e2e.ts"
66
],
7+
"transform": {
8+
"^.+\\.ts$": [
9+
"ts-jest",
10+
{
11+
"tsconfig": "tsconfig.test.json"
12+
}
13+
]
14+
},
715
"globalSetup": "<rootDir>/test/e2e/jest.globalSetup.ts",
816
"globalTeardown": "<rootDir>/test/e2e/jest.globalTeardown.ts",
917
"testTimeout": 60000,

packages/toolbox-core/tsconfig.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"extends": "./node_modules/gts/tsconfig-google.json",
33
"compilerOptions": {
4-
"rootDir": ".",
5-
"outDir": "build",
4+
"rootDir": "src/toolbox_core",
5+
"outDir": "build"
66
},
77
"include": [
8-
"src/**/*.ts",
9-
"test/*.ts", "test/e2e/test.e2e.ts", "test/e2e/utils.ts"
8+
"src/**/*.ts"
109
],
1110
"exclude": [
1211
"node_modules",
1312
"build"
1413
]
15-
}
14+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"outDir": "build"
6+
}
7+
}

0 commit comments

Comments
 (0)