Skip to content

Commit

Permalink
fix: fix ReferenceError: jest is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdra committed Dec 28, 2021
1 parent deea149 commit 7683a9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/formatter/index.test.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 7683a9d

Please sign in to comment.