Skip to content

Commit b656fb7

Browse files
committed
test(plugin-typescript-e2e): wip
1 parent e61be13 commit b656fb7

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

e2e/plugin-typescript-e2e/tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
"noPropertyAccessFromIndexSignature": true,
99
"noImplicitReturns": true,
1010
"noFallthroughCasesInSwitch": true,
11-
"types": ["vitest"]
11+
"types": ["vitest"],
12+
"paths": {
13+
"@code-pushup/test-setup": ["../../testing/test-setup/src/index.ts"],
14+
"@code-pushup/test-nx-setup": ["../../testing/test-nx-setup/src/index.ts"]
15+
}
1216
},
1317
"files": [],
1418
"include": [],

e2e/plugin-typescript-e2e/tsconfig.test.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
"types": ["vitest/globals", "vitest/importMeta", "vite/client", "node"],
66
"target": "ES2020"
77
},
8+
"references": [
9+
{
10+
"path": "../../testing/test-setup/tsconfig.json"
11+
},
12+
{
13+
"path": "../../testing/test-nx-utils/tsconfig.json"
14+
}
15+
],
816
"include": [
917
"vite.config.e2e.ts",
1018
"tests/**/*.e2e.test.ts",

e2e/plugin-typescript-e2e/vite.config.e2e.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ import { tsconfigPathAliases } from '../../tools/vitest-tsconfig-path-aliases.js
44

55
export default defineConfig({
66
cacheDir: '../../node_modules/.vite/plugin-typescript-e2e',
7+
resolve: {
8+
alias: {
9+
'@code-pushup/test-nx-utils': '../../test-nx-utils/index.js',
10+
'@code-pushup/test-setup': '../../test-setup/index.js',
11+
'@code-pushup/test-utils': '../../test-utils/index.js',
12+
},
13+
},
714
test: {
815
reporters: ['basic'],
916
testTimeout: 120_000,

0 commit comments

Comments
 (0)