From d4ebc2a7a9732d0bb22b51ae8159d6facb2ae1ab Mon Sep 17 00:00:00 2001 From: Dixsie Wolmers Date: Sun, 14 Feb 2021 13:06:50 -0600 Subject: Unit testing docs typo fix Signed-off-by: Dixsie Wolmers Change-Id: Id75c6e923682f199440ca8d3fd986f034a8f332b --- docs/guide/unit-testing/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/guide') diff --git a/docs/guide/unit-testing/readme.md b/docs/guide/unit-testing/readme.md index 95ff2593..7ec635a6 100644 --- a/docs/guide/unit-testing/readme.md +++ b/docs/guide/unit-testing/readme.md @@ -34,7 +34,7 @@ The `test:unit:debugger` script will help to debug failing tests using the Chrom 1. Open the Chrome browser and go to `chrome://inspect` ### Fixing failed snapshot tests -The `test:update` script will update snapshot tests. If the UI has changed and the snapshot tests are failing, after manually verifying the UI changes, run the update script to update the snapshots. Running `test:updat`e can be dangerous, as it will update all snapshot tests. +The `test:update` script will update snapshot tests. If the UI has changed and the snapshot tests are failing, after manually verifying the UI changes, run the update script to update the snapshots. Running `test:update` can be dangerous, as it will update all snapshot tests. It is critical to verify all snapshot tests before running the update script. The easiest way is to run the unit test in watch mode, `npm run test:unit -- --watch` and verify each snapshot. @@ -103,7 +103,7 @@ Mutations are JavaScript functions that mutate the store state. These are basic ### Testing Store Instance - Uses mutations and actions as inputs - State is the output -- Requires the use of `localVue` when creating the store to avoide leaky tests +- Requires the use of `localVue` when creating the store to avoid leaky tests #### Pros - Avoids mocking and brittle tests -- cgit v1.2.3