Compare commits

...

2 commits

Author SHA1 Message Date
prazdevs
bf86e83ea1 chore: disable cypress e2e video 2023-01-05 01:11:47 +01:00
prazdevs
5c81029626 feat(cypress): init cypress e2e testing 2023-01-04 17:54:56 +01:00
7 changed files with 759 additions and 2 deletions

8
cypress.config.ts Normal file
View file

@ -0,0 +1,8 @@
import { defineConfig } from 'cypress'
export default defineConfig({
e2e: {
baseUrl: 'http://localhost:5314',
video: false,
},
})

View file

@ -0,0 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}

View file

@ -0,0 +1 @@
import '@testing-library/cypress/add-commands'

1
cypress/support/e2e.ts Normal file
View file

@ -0,0 +1 @@
import './commands'

6
cypress/tsconfig.json Normal file
View file

@ -0,0 +1,6 @@
{
"compilerOptions": {
"types": ["cypress", "@testing-library/cypress"]
},
"extends": "../tsconfig.json"
}

View file

@ -18,6 +18,7 @@
"typecheck": "nuxi typecheck", "typecheck": "nuxi typecheck",
"prepare": "esno scripts/prepare.ts", "prepare": "esno scripts/prepare.ts",
"generate": "nuxi generate", "generate": "nuxi generate",
"cypress:open": "cypress open",
"test:unit": "vitest", "test:unit": "vitest",
"test:typecheck": "vue-tsc --noEmit && vue-tsc --noEmit --project service-worker/tsconfig.json", "test:typecheck": "vue-tsc --noEmit && vue-tsc --noEmit --project service-worker/tsconfig.json",
"test": "nr test:unit", "test": "nr test:unit",
@ -77,6 +78,7 @@
"@iconify-json/twemoji": "^1.1.7", "@iconify-json/twemoji": "^1.1.7",
"@nuxtjs/i18n": "^8.0.0-beta.7", "@nuxtjs/i18n": "^8.0.0-beta.7",
"@pinia/nuxt": "^0.4.6", "@pinia/nuxt": "^0.4.6",
"@testing-library/cypress": "^9.0.0",
"@types/file-saver": "^2.0.5", "@types/file-saver": "^2.0.5",
"@types/fnando__sparkline": "^0.3.4", "@types/fnando__sparkline": "^0.3.4",
"@types/fs-extra": "^9.0.13", "@types/fs-extra": "^9.0.13",
@ -88,6 +90,7 @@
"@vue-macros/nuxt": "^0.2.2", "@vue-macros/nuxt": "^0.2.2",
"@vueuse/nuxt": "^9.9.0", "@vueuse/nuxt": "^9.9.0",
"bumpp": "^8.2.1", "bumpp": "^8.2.1",
"cypress": "^12.3.0",
"emoji-mart": "^5.4.0", "emoji-mart": "^5.4.0",
"eslint": "^8.30.0", "eslint": "^8.30.0",
"esno": "^0.16.3", "esno": "^0.16.3",

File diff suppressed because it is too large Load diff