diff --git a/packages/babel-plugin-jest-hoist/src/index.js b/packages/babel-plugin-jest-hoist/src/index.js index 2c10dc422b1c..3ac3b9f55a33 100644 --- a/packages/babel-plugin-jest-hoist/src/index.js +++ b/packages/babel-plugin-jest-hoist/src/index.js @@ -83,7 +83,7 @@ FUNCTIONS.mock = args => { const moduleFactory = args[1]; invariant( moduleFactory.isFunction(), - 'The second argument of `jest.mock` must be a function.', + 'The second argument of `jest.mock` must be an inline function.', ); const ids = new Set();