Try to fix tests
This commit is contained in:
@@ -172,6 +172,7 @@
|
||||
"mongodb": "^4.1.0",
|
||||
"multistream": "^4.1.0",
|
||||
"njwt": "^2.0.0",
|
||||
"node-abort-controller": "^3.1.1",
|
||||
"node-cache": "^5.1.2",
|
||||
"node-cron": "^3.0.0",
|
||||
"node-fetch": "^2.6.7",
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
import { TestPlatform } from "./setup";
|
||||
import { InjectPayload, Response } from "light-my-request";
|
||||
import { logger as log } from "../../src/core/platform/framework";
|
||||
import { AbortSignal } from "node-abort-controller";
|
||||
|
||||
// fix for Reference error AbortSignal in `lru-cache`
|
||||
global.AbortSignal = AbortSignal as any;
|
||||
|
||||
declare global {
|
||||
interface ApiResponse extends Response {
|
||||
|
||||
@@ -7522,6 +7522,11 @@ node-abi@^3.3.0:
|
||||
dependencies:
|
||||
semver "^7.3.5"
|
||||
|
||||
node-abort-controller@^3.1.1:
|
||||
version "3.1.1"
|
||||
resolved "https://registry.yarnpkg.com/node-abort-controller/-/node-abort-controller-3.1.1.tgz#a94377e964a9a37ac3976d848cb5c765833b8548"
|
||||
integrity sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==
|
||||
|
||||
node-addon-api@^3.1.0:
|
||||
version "3.2.1"
|
||||
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.2.1.tgz#81325e0a2117789c0128dab65e7e38f07ceba161"
|
||||
|
||||
Reference in New Issue
Block a user