Skip to content

Commit

Permalink
test(bin): bin以下のスクリプトにもテストを実行できるようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
berlysia committed Aug 26, 2019
1 parent 508f2af commit 098bc4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions jest.bin-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
testMatch: ['**/bin/**/*.test.js'],
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"patch-note": "node bin/release/generatePatchNote.js",
"webfont": "yarn install --cwd bin && node bin/generate-webfont.js",
"test": "node bin/i18n-early-check.js && tsc -p test && ava -v",
"test:unit": "jest --silent",
"test:unit": "yarn test:unit:app && yarn test:unit:bin",
"test:unit:app": "jest --silent --config ./jest.config.js",
"test:unit:bin": "jest --silent --config ./jest.bin-config.js",
"lint": "tslint -p . -c tslint.json",
"clear": "rimraf bundles/media",
"typedoc": "typedoc --out docs/dist ./app/services --mode modules --theme ./docs/theme --readme ./docs/README.md --ignoreCompilerErrors --excludePrivate --excludeExternals --hideGenerator",
Expand Down

0 comments on commit 098bc4e

Please sign in to comment.