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:
|
- persist_to_workspace:
|
||||||
root: ~/project
|
root: ~/project
|
||||||
paths:
|
paths:
|
||||||
- nuxt
|
- nuxt/test/fixtures
|
||||||
|
|
||||||
test:
|
test:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
@ -62,7 +62,18 @@ jobs:
|
|||||||
at: ~/project
|
at: ~/project
|
||||||
- run:
|
- run:
|
||||||
name: Test
|
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:
|
environment:
|
||||||
- NODE_ENV: "test"
|
- NODE_ENV: "test"
|
||||||
|
|
||||||
@ -98,8 +109,13 @@ workflows:
|
|||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
|
- test-e2e:
|
||||||
|
requires:
|
||||||
|
- build
|
||||||
|
|
||||||
- release:
|
- release:
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
- lint
|
- lint
|
||||||
- test
|
- test
|
||||||
|
- test-e2e
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
'testEnvironment': 'node',
|
'testEnvironment': 'node',
|
||||||
'coverageDirectory': './coverage/',
|
'coverageDirectory': './coverage/',
|
||||||
'setupTestFrameworkScriptFile': './test/utils/setup',
|
'setupTestFrameworkScriptFile': './test/utils/setup'
|
||||||
'testMatch': [
|
|
||||||
'<rootDir>/test/*.test.js'
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run build-fixtures && npm run test:unit",
|
"test": "npm run build-fixtures && npm run test:unit",
|
||||||
"build-fixtures": "node ./scripts/build-fixtures",
|
"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",
|
"coverage": "codecov",
|
||||||
"lint": "eslint --ext .js,.mjs,.vue bin/* build/ lib/ test/ examples/",
|
"lint": "eslint --ext .js,.mjs,.vue bin/* build/ lib/ test/ examples/",
|
||||||
"precommit": "npm run lint",
|
"precommit": "npm run lint",
|
||||||
|
Loading…
Reference in New Issue
Block a user