Skip to content

Commit 33a1e54

Browse files
committed
Test updates
1 parent 84b6a4d commit 33a1e54

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

app/components/02.molecules/display-chip/tests/DisplayChip.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
import { describe, it, expect, vi } from "vitest";
1+
import { describe, it, expect, vi, afterEach } from "vitest";
22
import { mountSuspended } from "@nuxt/test-utils/runtime";
33
import DisplayChip from "../DisplayChip.vue";
44

55
describe("DisplayChip", () => {
6+
afterEach(() => {
7+
vi.restoreAllMocks();
8+
});
9+
610
// ─── Mount ───────────────────────────────────────────────────────────────
711

812
it("mounts without error", async () => {

app/components/03.organisms/image-galleries/slider-gallery/tests/SliderGallery.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, it, expect, vi, beforeEach } from "vitest";
1+
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
22
import { mountSuspended } from "@nuxt/test-utils/runtime";
33
import { nextTick } from "vue";
44
import SliderGallery from "../SliderGallery.vue";
@@ -67,6 +67,10 @@ describe("SliderGallery", () => {
6767
);
6868
});
6969

70+
afterEach(() => {
71+
vi.restoreAllMocks();
72+
});
73+
7074
// ─── Mount ───────────────────────────────────────────────────────────────
7175

7276
it("mounts without error", async () => {

app/components/carousels/tests/CarouselFlip.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ describe("CarouselFlip", () => {
119119

120120
afterEach(() => {
121121
wrapper?.unmount();
122+
vi.restoreAllMocks();
122123
});
123124

124125
describe("Component Rendering", () => {

0 commit comments

Comments
 (0)