Skip to content

Commit

Permalink
Run tests from precommit scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bhubr committed Aug 31, 2019
1 parent 771fc9a commit 9dd7a2b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/back/package.json
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "npx babel src -d build",
"lint": "npx eslint --fix *.js src test",
"precommit": "lint-staged",
"precommit": "lint-staged && yarn test",
"start": "nodemon --exec ./node_modules/@babel/node/bin/babel-node.js src/index",
"test": "jest"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/front/package.json
Expand Up @@ -9,10 +9,10 @@
},
"scripts": {
"lint": "npx eslint --fix src/**/*.js*",
"precommit": "lint-staged",
"precommit": "lint-staged && yarn test",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test": "cross-env CI=true react-scripts test --env=jsdom",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand Down Expand Up @@ -53,6 +53,7 @@
]
},
"devDependencies": {
"cross-env": "^5.2.0",
"eslint": "^6.2.2",
"eslint-config-airbnb": "^18.0.1",
"eslint-plugin-import": "^2.18.2",
Expand Down
10 changes: 9 additions & 1 deletion packages/front/yarn.lock
Expand Up @@ -2781,6 +2781,14 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4:
safe-buffer "^5.0.1"
sha.js "^2.4.8"

cross-env@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.2.0.tgz#6ecd4c015d5773e614039ee529076669b9d126f2"
integrity sha512-jtdNFfFW1hB7sMhr/H6rW1Z45LFqyI431m3qU6bFXcQ3Eh7LtBuG3h74o7ohHZ3crrRkkqHlo4jYHFPcjroANg==
dependencies:
cross-spawn "^6.0.5"
is-windows "^1.0.0"

cross-spawn@6.0.5, cross-spawn@^6.0.0, cross-spawn@^6.0.5:
version "6.0.5"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
Expand Down Expand Up @@ -5343,7 +5351,7 @@ is-typedarray@~1.0.0:
resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=

is-windows@^1.0.2:
is-windows@^1.0.0, is-windows@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"
integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==
Expand Down

0 comments on commit 9dd7a2b

Please sign in to comment.