forked from Mirrors/elk
feat(cypress): init cypress e2e testing
This commit is contained in:
parent
3468c13e75
commit
5c81029626
7 changed files with 758 additions and 2 deletions
7
cypress.config.ts
Normal file
7
cypress.config.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { defineConfig } from 'cypress'
|
||||
|
||||
export default defineConfig({
|
||||
e2e: {
|
||||
baseUrl: 'http://localhost:5314',
|
||||
},
|
||||
})
|
5
cypress/fixtures/example.json
Normal file
5
cypress/fixtures/example.json
Normal 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"
|
||||
}
|
1
cypress/support/commands.ts
Normal file
1
cypress/support/commands.ts
Normal file
|
@ -0,0 +1 @@
|
|||
import '@testing-library/cypress/add-commands'
|
1
cypress/support/e2e.ts
Normal file
1
cypress/support/e2e.ts
Normal file
|
@ -0,0 +1 @@
|
|||
import './commands'
|
6
cypress/tsconfig.json
Normal file
6
cypress/tsconfig.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"types": ["cypress", "@testing-library/cypress"]
|
||||
},
|
||||
"extends": "../tsconfig.json"
|
||||
}
|
|
@ -18,6 +18,7 @@
|
|||
"typecheck": "nuxi typecheck",
|
||||
"prepare": "esno scripts/prepare.ts",
|
||||
"generate": "nuxi generate",
|
||||
"cypress:open": "cypress open",
|
||||
"test:unit": "vitest",
|
||||
"test:typecheck": "vue-tsc --noEmit && vue-tsc --noEmit --project service-worker/tsconfig.json",
|
||||
"test": "nr test:unit",
|
||||
|
@ -77,6 +78,7 @@
|
|||
"@iconify-json/twemoji": "^1.1.7",
|
||||
"@nuxtjs/i18n": "^8.0.0-beta.7",
|
||||
"@pinia/nuxt": "^0.4.6",
|
||||
"@testing-library/cypress": "^9.0.0",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/fnando__sparkline": "^0.3.4",
|
||||
"@types/fs-extra": "^9.0.13",
|
||||
|
@ -88,6 +90,7 @@
|
|||
"@vue-macros/nuxt": "^0.2.2",
|
||||
"@vueuse/nuxt": "^9.9.0",
|
||||
"bumpp": "^8.2.1",
|
||||
"cypress": "^12.3.0",
|
||||
"emoji-mart": "^5.4.0",
|
||||
"eslint": "^8.30.0",
|
||||
"esno": "^0.16.3",
|
||||
|
|
737
pnpm-lock.yaml
737
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue