mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 18:25:24 +00:00
Added jest import and removed globals
This commit is contained in:
@@ -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,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user