Skip to content

Commit

Permalink
Chore: add jest update snapshot command
Browse files Browse the repository at this point in the history
  • Loading branch information
wellyshen committed Feb 16, 2020
1 parent 755e1af commit b2422ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ After cloning usePlacesAutocomplete, run `yarn` to fetch its dependencies. Then,
- `yarn test` runs the complete test suite.
- `yarn test:watch` runs an interactive test watcher (helpful in development).
- `yarn test:cov` runs the complete test suite with coverage report.
- `yarn test:update` updates the Jest snapshots.
- `yarn build:demo` creates a `public` folder with all the static files.
- `yarn build:dist` creates a `dist` folder with package builds (`CJS` & `ESM`) and type definition file. You can test the package locally via [yarn link](https://yarnpkg.com/lang/en/docs/cli/link).
- `yarn build` creates both `public` and `dist`.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@
"type-check": "tsc --noEmit",
"type-check:watch": "yarn type-check --watch",
"test": "jest",
"test:cov": "yarn clean:cov && yarn test --coverage",
"test:watch": "yarn test --watch",
"test:cov": "yarn clean:cov && yarn test --coverage",
"test:update": "yarn test -u",
"build:demo": "yarn clean:dev && yarn clean:demo && rollup -c rollup/config.js --environment BUILD:demo",
"build:dist": "yarn clean:dist && BABEL_ENV=dist rollup -c rollup/config.js --environment BUILD:dist",
"build": "run-s build:*",
Expand Down

0 comments on commit b2422ec

Please sign in to comment.