From bee1cbe722fed333f069a1ca758a24a8a5131c51 Mon Sep 17 00:00:00 2001 From: Derek Maggio Date: Tue, 5 Mar 2024 10:35:48 -0800 Subject: [PATCH] Forgot to add update --- app-testing/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app-testing/README.md b/app-testing/README.md index 2b9971fab2c0..199f9d342f3e 100644 --- a/app-testing/README.md +++ b/app-testing/README.md @@ -104,6 +104,16 @@ To run analysis snapshot tests locally, you run ``` This will run the analyses snapshot test using the `TARGET` branch or tag, and compare the results against your local analysis snapshots located inside `app-testing/tests/__snapshots__/analyses_snapshot_test`. +#### Updating Analysis Snapshots + +If you want to update the analysis snapshots, you can run the following command: + + ```bash + TARGET="" make snapshot-test-update + ``` + +This will take the results of the analysis snapshot test using the `TARGET` branch or tag, and update the local analysis snapshots located inside `app-testing/tests/__snapshots__/analyses_snapshot_test`. + #### Running Analysis Snapshot Tests on CI To run analysis snapshot tests on CI, you need to run the `Analyses Snapshot Test` workflow dispatch job. This job requires two inputs, `TARGET` and `TEST_SOURCE`.