Skip to content

Commit

Permalink
chore: Fix flaky tests by pre-building Next before E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Feb 4, 2022
1 parent f69b0a0 commit a9ca855
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,18 @@
"build:cjs": "tsc --project ./tsconfig.cjs.json",
"build:esm": "tsc --project ./tsconfig.esm.json",
"build:dts": "tsc --project ./tsconfig.dts.json",
"test": "run-p test:*",
"test": "run-p test:types test:e2e:ci",
"test:types": "tsd",
"test:e2e": "run-p --race test:e2e:next test:e2e:cypress:run",
"test:e2e:dev": "run-p --race test:e2e:next cypress:open",
"test:e2e:next": "next dev",
"test:e2e:cypress:run": "cypress run --headless",
"cypress:open": "cypress open",
"test:e2e:ci": "run-p --race test:e2e:next:start cypress:run",
"test:e2e:dev": "run-p --race test:e2e:next:dev cypress:open",
"test:e2e:next:dev": "next dev",
"test:e2e:next:build": "next build",
"test:e2e:next:start": "next start",
"cypress:install": "cypress install",
"cypress:open": "cypress open",
"cypress:run": "cypress run --headless",
"ci": "run-s build test:types",
"e2e": "run-s cypress:install test:e2e",
"e2e": "run-s cypress:install test:e2e:next:build test:e2e:ci",
"prepare": "husky install"
},
"peerDependencies": {
Expand Down
8 changes: 3 additions & 5 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"exclude": [
"./src/**/*.test.ts",
"./src/**/*.test.tsx",
"./.next",
"./dist",
"./src/pages",
"./src/tests",
"node_modules",
"./test",
"./pages",
"./.next"
]
}

0 comments on commit a9ca855

Please sign in to comment.