mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
refactor: jest config files relocation
still pending unit config file
This commit is contained in:
parent
b28e6f737b
commit
b113aa3a55
6 changed files with 9 additions and 10 deletions
|
@ -38,7 +38,7 @@ test-storage*
|
|||
test/
|
||||
__mocks__/
|
||||
jestEnvironment.js
|
||||
test/e2e/jest.e2e.config.js
|
||||
test/jest.e2e.config.js
|
||||
test/jest.config.func.js
|
||||
jest.config.unit.js
|
||||
|
||||
|
|
|
@ -11,10 +11,10 @@ module.exports = {
|
|||
testEnvironment: 'jest-environment-jsdom-global',
|
||||
testRegex: '(test/unit.*\\.spec|test/unit/webui/.*\\.spec)\\.js',
|
||||
setupFiles: [
|
||||
'./test/unit/setup-webui.js'
|
||||
'./test/unit/setup.js'
|
||||
],
|
||||
modulePathIgnorePatterns: [
|
||||
'setup-webui.js'
|
||||
'setup.js'
|
||||
],
|
||||
testPathIgnorePatterns: [
|
||||
'__snapshots__'
|
||||
|
|
|
@ -155,9 +155,9 @@
|
|||
"flow": "flow",
|
||||
"pretest": "npm run code:build",
|
||||
"test": "cross-env npm run test:unit && npm run test:func",
|
||||
"test:unit": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC jest --config ./jest.config.unit.js --maxWorkers 2",
|
||||
"test:unit": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC jest --config ./jest.config.unit.js",
|
||||
"test:func": "cross-env NODE_ENV=test BABEL_ENV=test jest --config ./test/jest.config.func.js --testPathPattern ./test/functional/index*",
|
||||
"test:e2e": "cross-env BABEL_ENV=testE2E jest --config ./test/e2e/jest.e2e.config.js --maxWorkers 2",
|
||||
"test:e2e": "cross-env BABEL_ENV=testE2E jest --config ./test/jest.config.e2e.js",
|
||||
"test:all": "npm run test && npm run test:e2e",
|
||||
"pre:ci": "npm run lint && npm run build:webui",
|
||||
"commitmsg": "commitlint -e $GIT_PARAMS",
|
||||
|
|
|
@ -4,8 +4,8 @@ module.exports = {
|
|||
name: 'verdaccio-e2e-jest',
|
||||
verbose: true,
|
||||
collectCoverage: false,
|
||||
globalSetup: './pre-setup.js',
|
||||
globalTeardown: './teardown.js',
|
||||
testEnvironment: './puppeteer_environment.js',
|
||||
globalSetup: './e2e/pre-setup.js',
|
||||
globalTeardown: './e2e/teardown.js',
|
||||
testEnvironment: './e2e/puppeteer_environment.js',
|
||||
testRegex: '(/e2e.*\\.spec)\\.js'
|
||||
};
|
|
@ -3,6 +3,5 @@
|
|||
module.exports = {
|
||||
name: 'verdaccio-func-jest',
|
||||
verbose: true,
|
||||
collectCoverage: false,
|
||||
testPathPattern: 'test/functional/functional.spec.js'
|
||||
collectCoverage: false
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue