chore: add tonal + vitest

This commit is contained in:
2026-04-09 00:28:19 +02:00
parent bb99f5964a
commit aeb9dfff67
3 changed files with 9353 additions and 2 deletions

9335
app/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -6,6 +6,7 @@
"build": "react-router build",
"dev": "react-router dev",
"start": "react-router-serve ./build/server/index.js",
"test": "vitest run",
"typecheck": "react-router typegen && tsc"
},
"dependencies": {
@@ -32,6 +33,7 @@
"shadcn": "^4.2.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.5.0",
"tonal": "^6.4.3",
"tw-animate-css": "^1.4.0",
"vaul": "^1.1.2"
},
@@ -43,6 +45,7 @@
"@types/react-dom": "^19.2.3",
"tailwindcss": "^4.2.2",
"typescript": "^5.9.3",
"vite": "^8.0.3"
"vite": "^8.0.3",
"vitest": "^4.1.3"
}
}
}

13
app/vitest.config.ts Normal file
View File

@@ -0,0 +1,13 @@
import { defineConfig } from 'vitest/config';
import { resolve } from 'path';
export default defineConfig({
test: {
environment: 'node',
},
resolve: {
alias: {
'~': resolve(__dirname, './app'),
},
},
});