Skip to content

Commit

Permalink
refactor: update default renderer's error message. (#547)
Browse files Browse the repository at this point in the history
based on the feedback from #544
  • Loading branch information
joshuaellis committed Jan 18, 2021
1 parent d980fc0 commit 83b85c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/defaultRenderer.test.ts
Expand Up @@ -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))
})
Expand Down
2 changes: 1 addition & 1 deletion src/pure.ts
Expand Up @@ -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`
)
}
}
Expand Down

0 comments on commit 83b85c2

Please sign in to comment.