Skip to content

Commit

Permalink
chore: upgrade cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Oct 31, 2023
1 parent 791166f commit acbc20e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 69 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
18
6 changes: 1 addition & 5 deletions cypress/e2e/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ const clickMocat = () => getMocatBtn().click()

export const baseTest = (target: { name: string; url: string }) =>
describe(`base on ${target.name}`, () => {
before(() => {
cy.visit(target.url)
})

beforeEach(() => {
cy.reload()
cy.visit(target.url)
})

it('should mocat loaded', () => {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"server-examples": "lerna run dev --parallel --scope *-example",
"test": "jest",
"test:e2e": "cypress run",
"test:e2e-ci": "start-server-and-test server-examples '3001|3002' test:e2e",
"test:e2e-ci": "WAIT_ON_TIMEOUT=5000 start-server-and-test server-examples '3001|3002|3003' test:e2e",
"typecheck": "lerna exec --parallel --ignore @mocat/eslint-config --ignore global-example --ignore esm-example -- tsc --noEmit --project ."
},
"devDependencies": {
Expand All @@ -44,8 +44,8 @@
"typescript": "^5.2.2"
},
"optionalDependencies": {
"cypress": "^10.3.0",
"start-server-and-test": "^1.14.0"
"cypress": "^13.4.0",
"start-server-and-test": "^2.0.1"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
96 changes: 36 additions & 60 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit acbc20e

Please sign in to comment.