Skip to content

Commit 6146599

Browse files
committed
Merge branch 'master' into fix/reduce-error-suppression
2 parents 36e5a27 + b87c30c commit 6146599

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/installation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ The standard import looks like:
5757
import { renderHook } from '@testing-library/react-hooks'
5858
```
5959

60-
> Note: The auto detection function may not work if tests are bundles before execution (e.g. to be
61-
> run in a browser)
60+
> Note: The auto detection function may not work if tests are being bundled (e.g. to be run in a
61+
> browser)
6262
6363
### Act
6464

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"docz": "2.3.1",
5959
"docz-theme-default": "1.2.0",
6060
"docz-utils": "2.3.0",
61-
"eslint": "7.17.0",
61+
"eslint": "7.18.0",
6262
"kcd-scripts": "7.5.4",
6363
"prettier": "^2.2.1",
6464
"react": "17.0.1",

src/__tests__/defaultRenderer.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('default renderer', () => {
3434
})
3535

3636
const expectedMessage =
37-
"Could not auto-detect a React renderer. Are you sure you've installed one of the following\n - react-dom\n - react-test-renderer"
37+
"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"
3838

3939
expect(() => require('..')).toThrowError(new Error(expectedMessage))
4040
})

src/pure.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function getRenderer() {
2727
.join('\n')
2828

2929
throw new Error(
30-
`Could not auto-detect a React renderer. Are you sure you've installed one of the following\n${options}`
30+
`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`
3131
)
3232
}
3333
}

0 commit comments

Comments
 (0)