Initial commit

This commit is contained in:
2026-06-24 23:47:55 -07:00
commit d134b480a0
297 changed files with 30726 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
/**
* See https://vitest.dev/config/#setupfiles
*
* Run some code before each test file.
*
* WARNING: Be very careful of imports in this file!!!
* Vitest will not mock modules that were imported inside a setup file because they are
* cached by the time a test file is running.
* You can do
* ```ts
* vi.hoisted(() => {
* vi.resetModules()
* })
* ```
* to clear all module caches before running a test file.
* See: https://vitest.dev/api/vi#vi-mock
*/
// Global Mocks
import cleanDatabase from "@/support/clean-database"
import mockedAxios from "@/support/mock-axios"
beforeEach(async () => {
await cleanDatabase()
})
afterEach(() => {
mockedAxios.reset()
})