Skip to content

Commit 11a9e32

Browse files
committed
chore: fix test infra
1 parent 9bbd063 commit 11a9e32

File tree

4 files changed

+107
-6
lines changed

4 files changed

+107
-6
lines changed

packages/angular-form/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"@testing-library/angular": "^17.4.0",
5959
"ng-packagr": "^20.0.0",
6060
"typescript": "5.8.2",
61+
"vite-tsconfig-paths": "^5.1.4",
6162
"zone.js": "0.15.1"
6263
},
6364
"peerDependencies": {

packages/angular-form/tsconfig.spec.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
2-
"extends": "./tsconfig.json",
2+
"extends": "./tsconfig.build.json",
33
"compilerOptions": {
44
"outDir": "./out-tsc/spec",
55
"target": "es2016",
6-
"types": ["vitest/globals", "node"]
6+
"types": ["vitest/globals", "node"],
7+
"paths": {
8+
"@tanstack/form-core": ["../form-core/src"]
9+
}
710
},
811
"files": ["tests/test-setup.ts"],
912
"include": ["tests/**/*.spec.ts", "tests/**/*.d.ts"]

packages/angular-form/vite.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import { defineConfig } from 'vitest/config'
22
import angular from '@analogjs/vite-plugin-angular'
3+
import tsconfigPaths from 'vite-tsconfig-paths'
34
import packageJson from './package.json'
45

6+
const tsconfigPath = 'tsconfig.spec.json'
7+
58
export default defineConfig(({ mode }) => ({
6-
plugins: [angular()],
9+
plugins: [tsconfigPaths({projects: [tsconfigPath]}), angular({ tsconfig: tsconfigPath })],
710
test: {
811
name: packageJson.name,
912
dir: './tests',

pnpm-lock.yaml

Lines changed: 97 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)