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`] = `
Currently, no overwrite is set. Url from well-known or config is used. @@ -261,13 +261,13 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = ` MatrixRTC mode
renders and matches snapshot 1`] = `
Compatible with old versions of EC that do not support multi SFU @@ -305,10 +305,10 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
renders and matches snapshot 1`] = `
Compatible with homeservers that do not support sticky events (but all other EC clients are v0.17.0 or later) @@ -345,10 +345,10 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
renders and matches snapshot 1`] = `
Compatible only with homservers supporting sticky events and all EC clients v0.17.0 or later