chore: scaffold TypeScript + Vitest

This commit is contained in:
Victor Bodinaud committed 2026-10-08 12:27:12 +02:00
1 parent 204b88fb2e
commit cb1c4177d1
5 files changed
+1566

No files matched your search

+1524
View File
File diff suppressed because it is too large. Load diff
+13
View File
@@ -0,0 +1,13 @@
{
"name": "consolgames",
"private": true,
"type": "module",
"scripts": {
"test": "vitest run",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"typescript": "^7.0.2",
"vitest": "^5.0.3"
}
}
+7
View File
@@ -0,0 +1,7 @@
import { describe, it, expect } from 'vitest';
describe('smoke', () => {
it('runs', () => {
expect(1 + 1).toBe(2);
});
});
+15
View File
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"lib": ["ES2022", "DOM"],
"strict": true,
"noUncheckedIndexedAccess": false,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"noEmit": true
},
"include": ["src", "tests"]
}
+7
View File
@@ -0,0 +1,7 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
include: ['tests/**/*.test.ts'],
},
});