Skip to content
Permalink
Browse files

Run tests from precommit scripts

  • Loading branch information...
bhubr committed Aug 31, 2019
1 parent 771fc9a commit 9dd7a2ba79bed26c37d6cd2ba575779634ce40cd
Showing with 13 additions and 4 deletions.
  1. +1 −1 packages/back/package.json
  2. +3 −2 packages/front/package.json
  3. +9 −1 packages/front/yarn.lock
@@ -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"
},
@@ -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": {
@@ -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",
@@ -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"
@@ -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==

0 comments on commit 9dd7a2b

Please sign in to comment.
You can’t perform that action at this time.