Skip to content

Commit 40a7328

Browse files
committed
chore(test): use node env when knex is imported
1 parent fa2c186 commit 40a7328

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/services/BreachDataService.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5+
// @vitest-environment node
56

67
import { vi, describe, it, expect, beforeAll, afterEach } from "vitest";
78
import MockRedis from "ioredis-mock";

src/services/BreachSyncService.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5+
// @vitest-environment node
56

67
import {
78
vi,

src/utils/hibp.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5+
// @vitest-environment node
56

67
import { describe, it, expect } from "vitest";
78
import { isValidBearer } from "./hibp";

0 commit comments

Comments
 (0)