mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
fix: run unit test on docker
This commit is contained in:
parent
0b135a863e
commit
658360864a
2 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,7 @@ RUN npm config set registry http://registry.npmjs.org/ && \
|
|||
yarn global add -s flow-bin@0.60.0 && \
|
||||
yarn install --production=false && \
|
||||
yarn run lint && \
|
||||
yarn run test -- --silent true --coverage false --bail && \
|
||||
yarn run test:unit -- --silent true --coverage false --bail && \
|
||||
yarn run code:build && \
|
||||
yarn run build:webui && \
|
||||
yarn cache clean && \
|
||||
|
|
|
@ -137,6 +137,7 @@
|
|||
"flow": "flow",
|
||||
"pretest": "npm run code:build",
|
||||
"test": "cross-env NODE_ENV=test BABEL_ENV=test jest",
|
||||
"test:unit": "cross-env NODE_ENV=test BABEL_ENV=test jest '(/test/unit.*\\.spec|/test/webui/.*\\.spec)\\.js'",
|
||||
"pre:ci": "npm run lint && npm run build:webui",
|
||||
"coverage:publish": "codecov",
|
||||
"lint": "npm run flow && eslint .",
|
||||
|
|
Loading…
Reference in a new issue