feat(HAI-088): add @types/node to dashboard and typecheck regression test
- Add @types/node ^22.0.0 to @hai/dashboard devDependencies - Add typecheck regression test that runs tsc --noEmit --skipLibCheck false - Update pnpm-lock.yaml with resolved dependencies
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
"@testing-library/jest-dom": "^6.9.1",
|
||||
"@testing-library/react": "^16.3.2",
|
||||
"@types/express": "^5.0.0",
|
||||
"@types/node": "^22.0.0",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-dom": "^19.0.0",
|
||||
"@vitejs/plugin-react": "^4.3.0",
|
||||
|
||||
16
packages/dashboard/src/__tests__/typecheck.test.ts
Normal file
16
packages/dashboard/src/__tests__/typecheck.test.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { execFileSync } from "node:child_process";
|
||||
import { resolve } from "node:path";
|
||||
import { describe, it, expect } from "vitest";
|
||||
|
||||
describe("typecheck", () => {
|
||||
it("passes tsc --noEmit --skipLibCheck false", () => {
|
||||
const cwd = resolve(__dirname, "../..");
|
||||
expect(() =>
|
||||
execFileSync("npx", ["tsc", "--noEmit", "--skipLibCheck", "false"], {
|
||||
cwd,
|
||||
stdio: "pipe",
|
||||
timeout: 60_000,
|
||||
}),
|
||||
).not.toThrow();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user