Added jest import and removed globals

This commit is contained in:
Alexander Cerutti
2023-04-06 22:37:58 +02:00
parent c645a3fb14
commit 3a3ca3a226
2 changed files with 2 additions and 1 deletions

View File

@@ -8,4 +8,5 @@ module.exports = {
moduleFileExtensions: ["js", "mjs", "cjs"], moduleFileExtensions: ["js", "mjs", "cjs"],
testEnvironment: "node", testEnvironment: "node",
testMatch: ["**/specs/**/*.spec.cjs"], testMatch: ["**/specs/**/*.spec.cjs"],
injectGlobals: false,
}; };

View File

@@ -1,5 +1,4 @@
// @ts-check // @ts-check
/// <reference types="@jest/globals" />
const { const {
describe, describe,
@@ -7,6 +6,7 @@ const {
beforeEach, beforeEach,
it, it,
afterEach, afterEach,
jest,
} = require("@jest/globals"); } = require("@jest/globals");
const fs = require("node:fs/promises"); const fs = require("node:fs/promises");