mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
split e2e tests
This commit is contained in:
parent
4500abc1a8
commit
a4b4688f7c
@ -53,7 +53,7 @@ jobs:
|
||||
- persist_to_workspace:
|
||||
root: ~/project
|
||||
paths:
|
||||
- nuxt
|
||||
- nuxt/test/fixtures
|
||||
|
||||
test:
|
||||
<<: *defaults
|
||||
@ -62,7 +62,18 @@ jobs:
|
||||
at: ~/project
|
||||
- run:
|
||||
name: Test
|
||||
command: yarn jest test/
|
||||
command: yarn test:unit
|
||||
environment:
|
||||
- NODE_ENV: "test"
|
||||
|
||||
test-e2e:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: ~/project
|
||||
- run:
|
||||
name: Test (e2e)
|
||||
command: yarn test:e2e
|
||||
environment:
|
||||
- NODE_ENV: "test"
|
||||
|
||||
@ -98,8 +109,13 @@ workflows:
|
||||
requires:
|
||||
- build
|
||||
|
||||
- test-e2e:
|
||||
requires:
|
||||
- build
|
||||
|
||||
- release:
|
||||
requires:
|
||||
- build
|
||||
- lint
|
||||
- test
|
||||
- test-e2e
|
||||
|
@ -1,8 +1,5 @@
|
||||
module.exports = {
|
||||
'testEnvironment': 'node',
|
||||
'coverageDirectory': './coverage/',
|
||||
'setupTestFrameworkScriptFile': './test/utils/setup',
|
||||
'testMatch': [
|
||||
'<rootDir>/test/*.test.js'
|
||||
]
|
||||
'setupTestFrameworkScriptFile': './test/utils/setup'
|
||||
}
|
||||
|
@ -43,7 +43,8 @@
|
||||
"scripts": {
|
||||
"test": "npm run build-fixtures && npm run test:unit",
|
||||
"build-fixtures": "node ./scripts/build-fixtures",
|
||||
"test:unit": "jest --maxWorkers=2",
|
||||
"test:unit": "jest --maxWorkers=4 test/*.test.js",
|
||||
"test:e2e": "jest --maxWorkers=1 test/e2e/*.test.js",
|
||||
"coverage": "codecov",
|
||||
"lint": "eslint --ext .js,.mjs,.vue bin/* build/ lib/ test/ examples/",
|
||||
"precommit": "npm run lint",
|
||||
|
Loading…
Reference in New Issue
Block a user