-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathvitest.config.ts
More file actions
37 lines (36 loc) · 1013 Bytes
/
vitest.config.ts
File metadata and controls
37 lines (36 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import {configDefaults, defineConfig} from 'vitest/config'
import glsl from 'rollup-plugin-glsl'
import path from 'node:path'
export default defineConfig({
plugins: [
glsl({include: 'src/**/*.glsl'}),
],
resolve: {
alias: {
'threepipe': path.resolve(__dirname, './src/index.ts'),
'three': path.resolve(__dirname, './node_modules/three/'),
},
},
test: {
environment: 'node',
setupFiles: ['./tests/setup.ts'],
include: [
'src/**/*.test.ts',
'tests/unit/**/*.test.ts',
],
exclude: [
...configDefaults.exclude,
'experiments/**',
'.claude/**',
'.repos/**',
'website/**',
'examples/**',
'plugins/**',
],
reporters: process.env.CI ? ['verbose', 'junit'] : ['default'],
outputFile: {
junit: './test-results/junit.xml',
},
testTimeout: 10000,
},
})