Create directory structure for frontend with requisite justfile changes. (#6)
Reviewed-on: #6 Co-authored-by: Drew Galbraith <drew@tiramisu.one> Co-committed-by: Drew Galbraith <drew@tiramisu.one>
This commit is contained in:
parent
6bf4a037f3
commit
7d2b7fc90c
27 changed files with 8806 additions and 46 deletions
39
frontend/vitest.config.ts
Normal file
39
frontend/vitest.config.ts
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
import { defineConfig } from 'vitest/config'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react(), tsconfigPaths()],
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['./test-setup.ts'],
|
||||
globals: true,
|
||||
css: true,
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
reporter: ['text', 'json', 'html'],
|
||||
exclude: [
|
||||
'node_modules/',
|
||||
'test-setup.ts',
|
||||
'**/*.d.ts',
|
||||
'build/',
|
||||
'.react-router/',
|
||||
],
|
||||
thresholds: {
|
||||
global: {
|
||||
branches: 80,
|
||||
functions: 80,
|
||||
lines: 80,
|
||||
statements: 80,
|
||||
},
|
||||
},
|
||||
},
|
||||
include: ['app/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
||||
exclude: [
|
||||
'node_modules/',
|
||||
'build/',
|
||||
'.react-router/',
|
||||
'public/',
|
||||
],
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue