Skip to content

Commit

Permalink
Suppress expected console debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Nov 21, 2024
1 parent 9f91db1 commit 5815738
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { getLocalVue } from "tests/jest/helpers";
import { getLocalVue, suppressDebugConsole } from "tests/jest/helpers";

import { type DatasetStorageDetails } from "@/api";
import { useServerMock } from "@/api/client/__mocks__";
Expand Down Expand Up @@ -58,6 +58,7 @@ describe("DatasetStorage.vue", () => {
});

it("test error rendering...", async () => {
suppressDebugConsole();
mount({ simulateError: true });
await flushPromises();
expect(wrapper.findAll(".error").length).toBe(1);
Expand Down

0 comments on commit 5815738

Please sign in to comment.