Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Apr 24, 2024
1 parent 3c51a83 commit 319acdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,6 @@ describe("theme-switcher with props", () => {
test("forced colorScheme prop", async ({ expect }) => {
// global state is continuing from previous testss
await act(() => render(<ThemeSwitcher forcedColorScheme="light" />));
expect(getResolvedTheme()).toBe("");
expect(getResolvedColorScheme()).toBe("light");
});
});
1 change: 1 addition & 0 deletions lib/nextjs-themes/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default defineConfig({
environment: "jsdom",
globals: true,
setupFiles: ["vitest.setup.ts"],
isolate: false,
coverage: {
reporter: ["text", "json", "clover", "html"],
exclude: ["__mocks__", "**/index.ts"],
Expand Down

0 comments on commit 319acdb

Please sign in to comment.