From b7230b05d7a8d9272e8ffde42788294a186afa55 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Tue, 7 Apr 2020 15:09:01 +0200 Subject: [PATCH] add task to update snapshots & update readme (#1302) * add task to update snapshots & update readme * remove test:app from readme & tweak --- README.md | 17 ++++++++--------- package.json | 1 + 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 071cbe2c..e5832ea1 100644 --- a/README.md +++ b/README.md @@ -39,15 +39,14 @@ git clone https://github.com/excalidraw/excalidraw.git #### Commands -| Command | Description | -| ------------------- | --------------------------------- | -| `npm install` | Install the dependencies | -| `npm start` | Run the project | -| `npm run fix` | Reformat all files with Prettier | -| `npm run test:code` | Test for formatting with Prettier | -| `npm run test:app` | Test the app | -| `npm run test` | Run all tests | -| `npm run test -u` | Update all snapshots | +| Command | Description | +| --------------------- | --------------------------------- | +| `npm install` | Install the dependencies | +| `npm start` | Run the project | +| `npm run fix` | Reformat all files with Prettier | +| `npm test` | Run tests | +| `npm run test:update` | Update test snapshots | +| `npm run test:code` | Test for formatting with Prettier | ## Contributing diff --git a/package.json b/package.json index 2e5a62fd..a2095711 100644 --- a/package.json +++ b/package.json @@ -109,6 +109,7 @@ "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore", "start": "react-scripts start", "test": "npm run test:app", + "test:update": "npm run test:app -- --updateSnapshot --watchAll=false", "test:app": "react-scripts test --env=jsdom --passWithNoTests", "test:code": "eslint --max-warnings=0 --ignore-path .gitignore --ext .js,.ts,.tsx .", "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",