diff --git a/examples/with-vitest/src/components/Counter.test.tsx b/examples/with-vitest/src/components/Counter.test.tsx index 852476aa0..4c02d2342 100644 --- a/examples/with-vitest/src/components/Counter.test.tsx +++ b/examples/with-vitest/src/components/Counter.test.tsx @@ -6,7 +6,7 @@ import Counter from "./Counter"; describe("", () => { it("increments value", async () => { const { queryByRole } = render(() => ); - const button = (await queryByRole("button")) as HTMLButtonElement; + const button = queryByRole("button") as HTMLButtonElement; expect(button).toBeInTheDocument(); expect(button).toHaveTextContent(/Clicks: 0/); await userEvent.click(button); diff --git a/examples/with-vitest/tsconfig.json b/examples/with-vitest/tsconfig.json index ce6205284..47d0ff21d 100644 --- a/examples/with-vitest/tsconfig.json +++ b/examples/with-vitest/tsconfig.json @@ -10,7 +10,7 @@ "allowJs": true, "strict": true, "noEmit": true, - "types": ["vinxi/client", "vite/client", "vitest/globals"], + "types": ["vinxi/client", "vite/client", "vitest/globals", "@testing-library/jest-dom"], "isolatedModules": true, "paths": { "~/*": ["./src/*"]