fix: bun test targets src/ not dist/, exclude tests from tsc build
- Add bunfig.toml with [test] root = "src" for both packages
- Add exclude patterns in tsconfig.json to prevent test files in dist/
- Update upulse test:e2e script to run all e2e tests
- Clean up stale dist test files
82 unit tests pass (pulse), E2E ready for validation.
小橘 🍊(NEKO Team)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
[test]
|
||||
root = "src"
|
||||
@@ -12,5 +12,6 @@
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"types": ["bun-types"]
|
||||
},
|
||||
"include": ["src"]
|
||||
"include": ["src"],
|
||||
"exclude": ["src/**/*.test.ts"]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
[test]
|
||||
root = "src"
|
||||
@@ -13,7 +13,7 @@
|
||||
"scripts": {
|
||||
"build": "bun run tsc",
|
||||
"dev": "bun run src/cli.ts",
|
||||
"test:e2e": "bun test src/e2e/t1-init-daemon-tick.test.ts"
|
||||
"test:e2e": "bun test src/e2e/"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uncaged/pulse": "file:../pulse",
|
||||
|
||||
@@ -12,5 +12,6 @@
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"types": ["bun-types"]
|
||||
},
|
||||
"include": ["src"]
|
||||
"include": ["src"],
|
||||
"exclude": ["src/**/*.test.ts", "src/e2e/**"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user