Skip to content

Commit 9ee627a

Browse files
chore(deps-dev): bump vitest-browser-react from 1.0.1 to 2.0.2 (#199)
Bumps [vitest-browser-react](https://github.com/vitest-community/vitest-browser-react) from 1.0.1 to 2.0.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-community/vitest-browser-react/releases">vitest-browser-react's releases</a>.</em></p> <blockquote> <h2>v2.0.2</h2> <h3>   🐞 Bug Fixes</h3> <ul> <li>Remove unwanted tsconfig options  -  by <a href="https://github.com/mrginglymus"><code>@​mrginglymus</code></a> in <a href="https://redirect.github.com/vitest-community/vitest-browser-react/issues/32">vitest-community/vitest-browser-react#32</a> <a href="https://github.com/vitest-community/vitest-browser-react/commit/5b3507e"><!-- raw HTML omitted -->(5b350)<!-- raw HTML omitted --></a></li> </ul> <h5>    <a href="https://github.com/vitest-community/vitest-browser-react/compare/v2.0.1...v2.0.2">View changes on GitHub</a></h5> <h2>v2.0.1</h2> <h3>   🐞 Bug Fixes</h3> <ul> <li>Update links  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> <a href="https://github.com/vitest-community/vitest-browser-react/commit/22e6758"><!-- raw HTML omitted -->(22e67)<!-- raw HTML omitted --></a></li> </ul> <h5>    <a href="https://github.com/vitest-community/vitest-browser-react/compare/v2.0.0...v2.0.1">View changes on GitHub</a></h5> <h2>v2.0.0</h2> <h3>   🚨 Breaking Changes</h3> <ul> <li>Support async act v2  -  by <a href="https://github.com/cloudkite"><code>@​cloudkite</code></a> and <strong>Matan Borenkraout</strong> in <a href="https://redirect.github.com/vitest-dev/vitest-browser-react/issues/22">vitest-dev/vitest-browser-react#22</a> <a href="https://github.com/vitest-dev/vitest-browser-react/commit/dd89901"><!-- raw HTML omitted -->(dd899)<!-- raw HTML omitted --></a></li> <li>Support new Vitest 4 syntax  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest-browser-react/issues/28">vitest-dev/vitest-browser-react#28</a> <a href="https://github.com/vitest-dev/vitest-browser-react/commit/791cb5b"><!-- raw HTML omitted -->(791cb)<!-- raw HTML omitted --></a></li> </ul> <h3>   🚀 Features</h3> <ul> <li>Add <code>locator</code> property  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> <a href="https://github.com/vitest-dev/vitest-browser-react/commit/12e2019"><!-- raw HTML omitted -->(12e20)<!-- raw HTML omitted --></a></li> <li>Add <code>RenderOptions</code> type for easier migration from RTL  -  by <a href="https://github.com/wojtekmaj"><code>@​wojtekmaj</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest-browser-react/issues/27">vitest-dev/vitest-browser-react#27</a> <a href="https://github.com/vitest-dev/vitest-browser-react/commit/e33772b"><!-- raw HTML omitted -->(e3377)<!-- raw HTML omitted --></a></li> </ul> <h3>   🐞 Bug Fixes</h3> <ul> <li>Add a mention of <code>@​vitejs/plugin-react</code>  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> <a href="https://github.com/vitest-dev/vitest-browser-react/commit/b2d4120"><!-- raw HTML omitted -->(b2d41)<!-- raw HTML omitted --></a></li> </ul> <h5>    <a href="https://github.com/vitest-dev/vitest-browser-react/compare/v1.0.1...v2.0.0">View changes on GitHub</a></h5> <h2>v2.0.0-beta.4</h2> <h3>   🚨 Breaking Changes</h3> <ul> <li>Support new Vitest 4 syntax  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest-browser-react/issues/28">vitest-dev/vitest-browser-react#28</a> <a href="https://github.com/vitest-dev/vitest-browser-react/commit/791cb5b"><!-- raw HTML omitted -->(791cb)<!-- raw HTML omitted --></a></li> </ul> <h5>    <a href="https://github.com/vitest-dev/vitest-browser-react/compare/v2.0.0-beta.3...v2.0.0-beta.4">View changes on GitHub</a></h5> <h2>v2.0.0-beta.3</h2> <h3>   🚀 Features</h3> <ul> <li>Add <code>RenderOptions</code> type for easier migration from RTL  -  by <a href="https://github.com/wojtekmaj"><code>@​wojtekmaj</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest-browser-react/issues/27">vitest-dev/vitest-browser-react#27</a> <a href="https://github.com/vitest-dev/vitest-browser-react/commit/e33772b"><!-- raw HTML omitted -->(e3377)<!-- raw HTML omitted --></a></li> </ul> <h5>    <a href="https://github.com/vitest-dev/vitest-browser-react/compare/v2.0.0-beta.2...v2.0.0-beta.3">View changes on GitHub</a></h5> <h2>v2.0.0-beta.2</h2> <h3>   🚀 Features</h3> <ul> <li>Add <code>locator</code> property  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> <a href="https://github.com/vitest-dev/vitest-browser-react/commit/12e2019"><!-- raw HTML omitted -->(12e20)<!-- raw HTML omitted --></a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-community/vitest-browser-react/commit/3dddd43238ee1b2ad97d206343a07904c76d4cfb"><code>3dddd43</code></a> chore: release v2.0.2</li> <li><a href="https://github.com/vitest-community/vitest-browser-react/commit/5b3507e89958ab89b2bb7895ab91ce85b505ffd4"><code>5b3507e</code></a> fix: remove unwanted tsconfig options (<a href="https://redirect.github.com/vitest-community/vitest-browser-react/issues/32">#32</a>)</li> <li><a href="https://github.com/vitest-community/vitest-browser-react/commit/e3b849546590721a885497c3110bd25d1ecc6ae4"><code>e3b8495</code></a> chore: release v2.0.1</li> <li><a href="https://github.com/vitest-community/vitest-browser-react/commit/22e67588120c560c1485aa2ff565dc5d12f82e04"><code>22e6758</code></a> fix: update links</li> <li><a href="https://github.com/vitest-community/vitest-browser-react/commit/d0dcec0e69c1b8ca808a8fb6f1e9e6e1d9e17566"><code>d0dcec0</code></a> chore: update readme</li> <li><a href="https://github.com/vitest-community/vitest-browser-react/commit/7baa2bc32d637c223128ba43901a9ea653aeac0d"><code>7baa2bc</code></a> chore: migrate to tsdown (<a href="https://redirect.github.com/vitest-community/vitest-browser-react/issues/30">#30</a>)</li> <li><a href="https://github.com/vitest-community/vitest-browser-react/commit/4f8e4eddb4345b030d6420410e6b7ed44b34bba5"><code>4f8e4ed</code></a> chore: release v2.0.0</li> <li><a href="https://github.com/vitest-community/vitest-browser-react/commit/b2d41209a5478b8a08b2f3ac2f65469f6ab0003f"><code>b2d4120</code></a> fix: add a mention of <code>@​vitejs/plugin-react</code></li> <li><a href="https://github.com/vitest-community/vitest-browser-react/commit/26c6400d211da2f484f73946e7c2cc0511608a7a"><code>26c6400</code></a> chore: release v2.0.0-beta.4</li> <li><a href="https://github.com/vitest-community/vitest-browser-react/commit/2d50ef7aa4ff6b17a47c122fa9c2e410972df194"><code>2d50ef7</code></a> chore: enable provenance</li> <li>Additional commits viewable in <a href="https://github.com/vitest-community/vitest-browser-react/compare/v1.0.1...v2.0.2">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by [GitHub Actions](<a href="https://www.npmjs.com/~GitHub">https://www.npmjs.com/~GitHub</a> Actions), a new releaser for vitest-browser-react since your current version.</p> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=vitest-browser-react&package-manager=npm_and_yarn&previous-version=1.0.1&new-version=2.0.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pete Gadomski <pete.gadomski@gmail.com>
1 parent ad29c8c commit 9ee627a

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"vite-plugin-wasm": "^3.5.0",
8585
"vite-tsconfig-paths": "^5.1.4",
8686
"vitest": "^4.0.10",
87-
"vitest-browser-react": "^1.0.1"
87+
"vitest-browser-react": "^2.0.2"
8888
},
8989
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
9090
}

tests/app.spec.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { EXAMPLES } from "../src/constants";
77

88
const queryClient = new QueryClient();
99

10-
function renderApp() {
11-
return render(
10+
async function renderApp() {
11+
return await render(
1212
<Provider>
1313
<QueryClientProvider client={queryClient}>
1414
<App></App>
@@ -19,14 +19,14 @@ function renderApp() {
1919

2020
describe("app", () => {
2121
test("has a map", async () => {
22-
const app = renderApp();
22+
const app = await renderApp();
2323
await expect
2424
.element(app.getByRole("region", { name: "Map" }))
2525
.toBeVisible();
2626
});
2727

2828
test("has a input text box", async () => {
29-
const app = renderApp();
29+
const app = await renderApp();
3030
await expect
3131
.element(
3232
app.getByRole("textbox", {
@@ -37,22 +37,22 @@ describe("app", () => {
3737
});
3838

3939
test("has an upload button", async () => {
40-
const app = renderApp();
40+
const app = await renderApp();
4141
await expect
4242
.element(app.getByRole("button", { name: "upload" }))
4343
.toBeVisible();
4444
});
4545

4646
test("has a color mode button", async () => {
47-
const app = renderApp();
47+
const app = await renderApp();
4848
await expect
4949
.element(app.getByRole("button", { name: "Toggle color mode" }))
5050
.toBeVisible();
5151
});
5252

5353
describe.for(EXAMPLES)("example $title", ({ title }) => {
5454
test("updates title", async ({ expect }) => {
55-
const app = renderApp();
55+
const app = await renderApp();
5656
await app.getByRole("button", { name: "Examples" }).click();
5757
await app.getByRole("menuitem", { name: title }).click();
5858
expect(document.title !== "stac-map");
@@ -66,7 +66,7 @@ describe("app", () => {
6666
"",
6767
"?href=https://csdap.earthdata.nasa.gov/stac/collections/planet"
6868
);
69-
const app = renderApp();
69+
const app = await renderApp();
7070
await expect
7171
.element(app.getByRole("heading", { name: "Planet" }))
7272
.toBeVisible();
@@ -78,7 +78,7 @@ describe("app", () => {
7878
"",
7979
"?href=https://stac.eoapi.dev/collections/MAXAR_yellowstone_flooding22"
8080
);
81-
const app = renderApp();
81+
const app = await renderApp();
8282
await app.getByRole("button", { name: "Item search" }).click();
8383
await app.getByRole("button", { name: "Search", exact: true }).click();
8484
await expect
@@ -91,7 +91,7 @@ describe("app", () => {
9191

9292
test("paginates collections", async () => {
9393
window.history.pushState({}, "", "?href=https://stac.eoapi.dev");
94-
const app = renderApp();
94+
const app = await renderApp();
9595
await expect
9696
.element(app.getByRole("button", { name: "Fetch more collections" }))
9797
.toBeVisible();

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8379,10 +8379,10 @@ vite-tsconfig-paths@^5.1.4:
83798379
optionalDependencies:
83808380
fsevents "~2.3.3"
83818381

8382-
vitest-browser-react@^1.0.1:
8383-
version "1.0.1"
8384-
resolved "https://registry.yarnpkg.com/vitest-browser-react/-/vitest-browser-react-1.0.1.tgz#e36f0a9ca46bf622841f0285defe0bebbb37e16d"
8385-
integrity sha512-LqiGFCdknrbMoSDWXTCTrPsED3SvdIXIgYOOZyYUNj2dkJusW2eF6NENOlBlxwq+FBQqzNK1X59b+b03pXFpAQ==
8382+
vitest-browser-react@^2.0.2:
8383+
version "2.0.2"
8384+
resolved "https://registry.yarnpkg.com/vitest-browser-react/-/vitest-browser-react-2.0.2.tgz#553d9ad8084c09366235cb6200788de47e3847f4"
8385+
integrity sha512-zuSgTe/CKODU3ip+w4ls6Qm4xZ9+A4OHmDf0obt/mwAqavpOtqtq2YcioZt8nfDQE50EWmhdnRfDmpS1jCsbTQ==
83868386

83878387
vitest@^4.0.10:
83888388
version "4.0.10"

0 commit comments

Comments
 (0)