0
Fork 0
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:
Juan Picado @jotadeveloper 2017-12-18 07:18:29 +01:00 committed by juanpicado
parent 0b135a863e
commit 658360864a
2 changed files with 2 additions and 1 deletions

View file

@ -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 && \

View file

@ -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 .",