feat: Add support for cypress and vitest

Signed-off-by: Avior <github@avior.me>
This commit is contained in:
2023-06-21 20:01:17 +02:00
parent dc80dec6a8
commit 8442c7b4e3
10 changed files with 2478 additions and 9 deletions

13
vitest.config.ts Normal file
View File

@ -0,0 +1,13 @@
/// <reference types="vitest" />
import { getViteConfig } from 'astro/config'
import { configDefaults } from 'vitest/config'
export default getViteConfig({
test: {
include: [
'./tests/**'
]
/* for example, use global to avoid globals imports (describe, test, expect): */
// globals: true,
},
});