We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47402ec commit 336392bCopy full SHA for 336392b
tests/unit/vitest.setup.ts
@@ -1,6 +1,18 @@
1
import { vi } from "vitest";
2
import { allAppRoles, AppRoles } from "../../src/common/roles.js";
3
-import { group } from "console";
+
4
+vi.mock(
5
+ import("../../src/api/plugins/rateLimiter.js"),
6
+ async (importOriginal) => {
7
+ const mod = await importOriginal();
8
+ return {
9
+ ...mod,
10
+ isAtLimit: vi.fn(async (_) => {
11
+ return false;
12
+ }),
13
+ };
14
+ },
15
+);
16
17
vi.mock(
18
import("../../src/api/functions/authorization.js"),
0 commit comments