From 3a3ca3a226efad5b163415210eeca8a506856ff3 Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Thu, 6 Apr 2023 22:37:58 +0200 Subject: [PATCH] Added jest import and removed globals --- jest.config.cjs | 1 + specs/PKPass.spec.cjs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jest.config.cjs b/jest.config.cjs index 957d790..435e03b 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -8,4 +8,5 @@ module.exports = { moduleFileExtensions: ["js", "mjs", "cjs"], testEnvironment: "node", testMatch: ["**/specs/**/*.spec.cjs"], + injectGlobals: false, }; diff --git a/specs/PKPass.spec.cjs b/specs/PKPass.spec.cjs index 1446d9a..84a4ca7 100644 --- a/specs/PKPass.spec.cjs +++ b/specs/PKPass.spec.cjs @@ -1,5 +1,4 @@ // @ts-check -/// const { describe, @@ -7,6 +6,7 @@ const { beforeEach, it, afterEach, + jest, } = require("@jest/globals"); const fs = require("node:fs/promises");