feat(test): Add cypress for testing

This commit is contained in:
Braks
2021-11-27 16:53:24 +01:00
committed by GitHub
parent 43b68c1699
commit 796c60431f
15 changed files with 1120 additions and 124 deletions
+15
View File
@@ -0,0 +1,15 @@
import { resolve } from 'path'
import { startDevServer } from '@cypress/vite-dev-server'
export default ((on, config) => {
on('dev-server:start', async (options) =>
startDevServer({
options,
viteConfig: {
configFile: resolve(__dirname, '..', '..', 'vite.config.ts'),
},
}),
)
return config
}) as Cypress.PluginConfig