aboutsummaryrefslogtreecommitdiff
path: root/src/lib/test-setup.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/test-setup.js')
-rw-r--r--src/lib/test-setup.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/test-setup.js b/src/lib/test-setup.js
new file mode 100644
index 0000000..45b115a
--- /dev/null
+++ b/src/lib/test-setup.js
@@ -0,0 +1,7 @@
+import "@testing-library/jest-dom/vitest";
+import { afterEach } from "vitest";
+import { cleanup } from "@testing-library/svelte";
+
+afterEach(() => {
+ cleanup();
+});