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

1
cypress/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
videos

5
cypress/e2e/index.cy.ts Normal file
View File

@ -0,0 +1,5 @@
it('titles are correct', () => {
const page = cy.visit('http://localhost:3000');
page.get('h1').should('have.text', 'Welcome to Astro');
});

8
cypress/tsconfig.json Normal file
View File

@ -0,0 +1,8 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["es5", "dom"],
"types": ["cypress", "node"]
},
"include": ["**/*.ts"]
}