diff --git a/packages/babel-plugin-jest-hoist/src/__tests__/__snapshots__/hoistPlugin.test.ts.snap b/packages/babel-plugin-jest-hoist/src/__tests__/__snapshots__/hoistPlugin.test.ts.snap index 909f5041ab34..39d232ed51a1 100644 --- a/packages/babel-plugin-jest-hoist/src/__tests__/__snapshots__/hoistPlugin.test.ts.snap +++ b/packages/babel-plugin-jest-hoist/src/__tests__/__snapshots__/hoistPlugin.test.ts.snap @@ -262,7 +262,7 @@ jest.mock('some-module', () => { return class Mocked extends Actual { constructor() { super(); - jest.spyOn(module, 'add'); + jest.spyOn(this, 'add'); } }; }); @@ -275,7 +275,7 @@ _getJestObj().mock('some-module', () => { return class Mocked extends Actual { constructor() { super(); - _getJestObj().spyOn(module, 'add'); + _getJestObj().spyOn(this, 'add'); } }; }); diff --git a/packages/babel-plugin-jest-hoist/src/__tests__/hoistPlugin.test.ts b/packages/babel-plugin-jest-hoist/src/__tests__/hoistPlugin.test.ts index 1e9a4233210b..13dd9cc28b79 100644 --- a/packages/babel-plugin-jest-hoist/src/__tests__/hoistPlugin.test.ts +++ b/packages/babel-plugin-jest-hoist/src/__tests__/hoistPlugin.test.ts @@ -169,7 +169,7 @@ pluginTester({ return class Mocked extends Actual { constructor() { super(); - jest.spyOn(module, 'add'); + jest.spyOn(this, 'add'); } }; });