diff --git a/README.md b/README.md index 5df2c42ee..e3efde99f 100644 --- a/README.md +++ b/README.md @@ -252,6 +252,14 @@ pnpm backend > browser's trusted certificates or by simply copying and pasting each URL into > your browser’s address bar and follow the prompts to add the exception. +### Updating snapshots + +To update snapshots used in tests, use Vitest's `-u` flag, e.g.: + +```sh +pnpm test DeveloperSettingsTab -u +``` + ### Playwright tests Our Playwright tests run automatically as part of our CI along with our other diff --git a/src/settings/__snapshots__/DeveloperSettingsTab.test.tsx.snap b/src/settings/__snapshots__/DeveloperSettingsTab.test.tsx.snap index 36e29d806..6159985cd 100644 --- a/src/settings/__snapshots__/DeveloperSettingsTab.test.tsx.snap +++ b/src/settings/__snapshots__/DeveloperSettingsTab.test.tsx.snap @@ -224,13 +224,13 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `