From 7683a9d8eacbabd86e4d5599a35cc7152a46d40c Mon Sep 17 00:00:00 2001 From: mizdra Date: Wed, 29 Dec 2021 00:22:59 +0900 Subject: [PATCH] fix: fix `ReferenceError: jest is not defined` --- test/formatter/index.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/formatter/index.test.ts b/test/formatter/index.test.ts index 33078e01..5b2bedf4 100644 --- a/test/formatter/index.test.ts +++ b/test/formatter/index.test.ts @@ -1,6 +1,7 @@ const mockFormatByFiles = jest.fn(() => 'formatByFiles'); const mockFormatByRules = jest.fn(() => 'formatByRules'); +import { jest } from '@jest/globals'; import { ESLint } from 'eslint'; import { format } from '../../src/formatter/index.js'; import { fakeLintResult, fakeLintMessage } from '../test-util/eslint.js';