Added vitest (#5)
* Moved eslint and @nuxt/eslint to devDependencies * Added vitest to project and 1 test * Tweaked Sonar workflow in order to run tests and coverage * Removed offending config line
This commit is contained in:
parent
c98879430b
commit
3b58a25ccf
9 changed files with 942 additions and 15 deletions
10
tests/setup.ts
Normal file
10
tests/setup.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { vi } from "vitest";
|
||||
|
||||
Object.defineProperty(global, "import", {
|
||||
value: {
|
||||
meta: {
|
||||
glob: vi.fn(() => ({})),
|
||||
},
|
||||
},
|
||||
writable: true,
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue