Skip to content

Commit

Permalink
🧰 [Vitest] Install and configure
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Dec 9, 2024
1 parent 31dd695 commit 98f01f1
Show file tree
Hide file tree
Showing 7 changed files with 2,532 additions and 332 deletions.
10 changes: 10 additions & 0 deletions config/definitions/audio.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// I more than likely don't actually need this `definitions` file.
declare module '*.mp3' {
const audio: string;
export default audio;
}

declare module '*.webm' {
const audio: string;
export default audio;
}
14 changes: 14 additions & 0 deletions config/tests-setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {afterEach, beforeEach} from 'vitest';
import {cleanup} from '@testing-library/react';

import '@testing-library/jest-dom/vitest';

beforeEach(() => {
// vi.useFakeTimers();
});

afterEach(() => {
// vi.clearAllTimers();
// vi.useRealTimers();
cleanup();
});
Loading

0 comments on commit 98f01f1

Please sign in to comment.