Skip to content

Commit

Permalink
Reduce output from frontend tests (#5023)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanape authored Nov 16, 2024
1 parent f7652bd commit 9d47ddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export default defineConfig(({ mode }) => {
test: {
environment: "jsdom",
setupFiles: ["vitest.setup.ts"],
reporters: "basic",
exclude: [...configDefaults.exclude, "tests"],
coverage: {
reporter: ["text", "json", "html", "lcov", "text-summary"],
Expand Down
2 changes: 1 addition & 1 deletion frontend/vitest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ vi.mock("react-i18next", async (importOriginal) => ({
}));

// Mock requests during tests
beforeAll(() => server.listen());
beforeAll(() => server.listen({ onUnhandledRequest: "bypass" }));
afterEach(() => {
server.resetHandlers();
// Cleanup the document body after each test
Expand Down

0 comments on commit 9d47ddb

Please sign in to comment.