diff --git a/src/__tests__/defaultRenderer.test.ts b/src/__tests__/defaultRenderer.test.ts index 0352813d..45d2e7ce 100644 --- a/src/__tests__/defaultRenderer.test.ts +++ b/src/__tests__/defaultRenderer.test.ts @@ -34,7 +34,7 @@ describe('default renderer', () => { }) const expectedMessage = - "Could not auto-detect a React renderer. Are you sure you've installed one of the following\n - react-dom\n - react-test-renderer" + "Could not auto-detect a React renderer. Are you sure you've installed one of the following\n - react-dom\n - react-test-renderer\nIf you are using a bundler, please update your imports to use a specific renderer.\nFor instructions see: https://react-hooks-testing-library.com/installation#being-specific" expect(() => require('..')).toThrowError(new Error(expectedMessage)) }) diff --git a/src/pure.ts b/src/pure.ts index 699c7c10..2113e9ed 100644 --- a/src/pure.ts +++ b/src/pure.ts @@ -27,7 +27,7 @@ function getRenderer() { .join('\n') throw new Error( - `Could not auto-detect a React renderer. Are you sure you've installed one of the following\n${options}` + `Could not auto-detect a React renderer. Are you sure you've installed one of the following\n${options}\nIf you are using a bundler, please update your imports to use a specific renderer.\nFor instructions see: https://react-hooks-testing-library.com/installation#being-specific` ) } }