Skip to content

Commit

Permalink
stubbed globals
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitquette committed Mar 17, 2024
1 parent 13f5f6f commit 51d4841
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vitest-setup.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import '@testing-library/jest-dom/vitest';
import { beforeAll } from 'vitest';
import { beforeAll, vi } from 'vitest';

beforeAll(() => {
window.apiProjectsUrl = '';
window.apiUsersUrl = '';
window.apiReportsUrl = '';

globalThis.apiProjectsUrl = '';
vi.stubGlobal('apiProjectsUrl', 100);
});

0 comments on commit 51d4841

Please sign in to comment.