element-plus/ssr-testing/vitest.config.ts
JeremyWuuuuu 3ea96be394
feat(ci): replace cypress with puppeteer (#6592)
* feat(ci): replace cypress to puppeteer

- Replace cypress with puppeteer

* Implement puppeteer with screenshots

* Remove unused variables
2022-03-13 20:10:25 +08:00

18 lines
431 B
TypeScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import DefineOptions from 'unplugin-vue-define-options/rollup'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), vueJsx(), DefineOptions()],
server: {
port: 5000,
},
test: {
include: ['**/*.puppeteer.{ts,tsx}'],
testTimeout: 30_000,
hookTimeout: 30_000,
},
})