docs: added tests for components in api-reference project (#14428)
* add tests (WIP) * added test for h2 * finished adding tests * fixes * fixes * fixes
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||
import { resolve } from 'path'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
tsconfigPaths({
|
||||
configNames: ["tsconfig.tests.json"]
|
||||
}),
|
||||
react()
|
||||
],
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
setupFiles: [resolve(__dirname, '../../vitest.setup.ts')],
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user