mirror of
https://github.com/fatedier/frp.git
synced 2026-07-29 01:29:18 +08:00
test(web): add frontend unit test baseline (#5451)
This commit is contained in:
40
web/vitest.config.mts
Normal file
40
web/vitest.config.mts
Normal file
@@ -0,0 +1,40 @@
|
||||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
projects: [
|
||||
{
|
||||
extends: './frpc/vite.config.mts',
|
||||
root: './frpc',
|
||||
test: {
|
||||
name: 'frpc',
|
||||
environment: 'jsdom',
|
||||
css: true,
|
||||
server: {
|
||||
deps: { inline: ['element-plus', '@element-plus/icons-vue'] },
|
||||
},
|
||||
setupFiles: ['../test/setup.ts'],
|
||||
include: [
|
||||
'../test/**/*.test.ts',
|
||||
'test/**/*.test.ts',
|
||||
'../shared/**/*.test.ts',
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
extends: './frps/vite.config.mts',
|
||||
root: './frps',
|
||||
test: {
|
||||
name: 'frps',
|
||||
environment: 'jsdom',
|
||||
css: true,
|
||||
server: {
|
||||
deps: { inline: ['element-plus', '@element-plus/icons-vue'] },
|
||||
},
|
||||
setupFiles: ['../test/setup.ts'],
|
||||
include: ['test/**/*.test.ts'],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user