1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-12 17:26:17 +00:00

optimize: npm 'test' script should contain jest tests

This commit is contained in:
hikerpig
2019-10-12 12:19:52 +08:00
committed by Junyoung Choi
parent 1798353eac
commit f2dc8b8020
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,6 @@ node_js:
- 8 - 8
script: script:
- npm run lint && npm run test - npm run lint && npm run test
- yarn jest
- 'if [[ ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} = "master" ]]; then npm install -g grunt npm@6.4 && grunt pre-build; fi' - 'if [[ ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} = "master" ]]; then npm install -g grunt npm@6.4 && grunt pre-build; fi'
after_success: after_success:
- openssl aes-256-cbc -K $encrypted_440d7f9a3c38_key -iv $encrypted_440d7f9a3c38_iv - openssl aes-256-cbc -K $encrypted_440d7f9a3c38_key -iv $encrypted_440d7f9a3c38_iv

View File

@@ -8,7 +8,8 @@
"scripts": { "scripts": {
"start": "electron ./index.js", "start": "electron ./index.js",
"compile": "grunt compile", "compile": "grunt compile",
"test": "cross-env NODE_ENV=test ava --serial", "test": "npm run ava && npm run jest",
"ava": "cross-env NODE_ENV=test ava --serial",
"jest": "jest", "jest": "jest",
"fix": "eslint . --fix", "fix": "eslint . --fix",
"lint": "eslint .", "lint": "eslint .",