Skip to content

Commit

Permalink
fix test env setup
Browse files Browse the repository at this point in the history
Signed-off-by: Hasan Ayan <hasanayan@me.com>
  • Loading branch information
hasanayan committed Mar 24, 2024
1 parent c3c7375 commit de4b51d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions private/test/src/react/cerbos-provider.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @vitest-environment jsdom

import type { AuxData, Client, Principal } from "@cerbos/core";
import { CerbosProvider, useCerbos } from "@cerbos/react";
import { getByText, renderHook } from "@testing-library/react";
Expand Down
2 changes: 2 additions & 0 deletions private/test/src/react/use-check-resource.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @vitest-environment jsdom

import type { Client, ClientWithPrincipal } from "@cerbos/core";
import type { AsyncResult } from "@cerbos/react";
import {
Expand Down
2 changes: 0 additions & 2 deletions private/test/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
testTimeout: 20000,
environment: "jsdom",
css: false,
},
});

0 comments on commit de4b51d

Please sign in to comment.