Skip to content

Commit

Permalink
fix: correct jest.mock path post merge
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed May 13, 2023
1 parent fb66d33 commit 778d254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rule-tester/tests/RuleTester.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import type { RuleTesterTestFrameworkFunctionBase } from '../src/TestFramework';
import * as dependencyConstraintsModule from '../src/utils/dependencyConstraints';

// we can't spy on the exports of an ES module - so we instead have to mock the entire module
jest.mock('../src/dependencyConstraints', () => {
jest.mock('../src/utils/dependencyConstraints', () => {
const dependencyConstraints = jest.requireActual<
typeof dependencyConstraintsModule
>('../src/dependencyConstraints');
>('../src/utils/dependencyConstraints');

return {
...dependencyConstraints,
Expand Down

0 comments on commit 778d254

Please sign in to comment.