mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
refactor: relocate jest conf file e2e
This commit is contained in:
parent
e9435022f6
commit
4e5deb4461
4 changed files with 13 additions and 13 deletions
|
@ -24,7 +24,7 @@ test/
|
||||||
types/
|
types/
|
||||||
wiki/
|
wiki/
|
||||||
jestEnvironment.js
|
jestEnvironment.js
|
||||||
jest.e2e.config.js
|
test/e2e/jest.e2e.config.js
|
||||||
jest.config.js
|
jest.config.js
|
||||||
debug/
|
debug/
|
||||||
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
/* eslint comma-dangle: 0 */
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
name: 'verdaccio-e2e-jest',
|
|
||||||
verbose: true,
|
|
||||||
collectCoverage: false,
|
|
||||||
globalSetup: './test/e2e/pre-setup.js',
|
|
||||||
globalTeardown: './test/e2e/teardown.js',
|
|
||||||
testEnvironment: './test/e2e/puppeteer_environment.js',
|
|
||||||
testRegex: '(/test/e2e/e2e.*\\.spec)\\.js'
|
|
||||||
};
|
|
|
@ -157,7 +157,7 @@
|
||||||
"test": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC jest --maxWorkers 2",
|
"test": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC jest --maxWorkers 2",
|
||||||
"test:unit": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC jest '(/test/unit.*\\.spec|/test/webui/.*\\.spec)\\.js' --maxWorkers 2",
|
"test:unit": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC jest '(/test/unit.*\\.spec|/test/webui/.*\\.spec)\\.js' --maxWorkers 2",
|
||||||
"test:func": "cross-env NODE_ENV=test BABEL_ENV=test jest '(/test/functional.*\\.func)\\.js' --maxWorkers 2",
|
"test:func": "cross-env NODE_ENV=test BABEL_ENV=test jest '(/test/functional.*\\.func)\\.js' --maxWorkers 2",
|
||||||
"test:e2e": "cross-env BABEL_ENV=testE2E jest --config ./jest.e2e.config.js --maxWorkers 2",
|
"test:e2e": "cross-env BABEL_ENV=testE2E jest --config ./test/e2e/jest.e2e.config.js --maxWorkers 2",
|
||||||
"test:all": "npm run test && npm run test:e2e",
|
"test:all": "npm run test && npm run test:e2e",
|
||||||
"pre:ci": "npm run lint && npm run build:webui",
|
"pre:ci": "npm run lint && npm run build:webui",
|
||||||
"commitmsg": "commitlint -e $GIT_PARAMS",
|
"commitmsg": "commitlint -e $GIT_PARAMS",
|
||||||
|
|
11
test/e2e/jest.e2e.config.js
Normal file
11
test/e2e/jest.e2e.config.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/* eslint comma-dangle: 0 */
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
name: 'verdaccio-e2e-jest',
|
||||||
|
verbose: true,
|
||||||
|
collectCoverage: false,
|
||||||
|
globalSetup: './pre-setup.js',
|
||||||
|
globalTeardown: './teardown.js',
|
||||||
|
testEnvironment: './puppeteer_environment.js',
|
||||||
|
testRegex: '(/e2e.*\\.spec)\\.js'
|
||||||
|
};
|
Loading…
Reference in a new issue