Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drwpow/rtl-create-element
https://github.com/drwpow/rtl-create-element
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/drwpow/rtl-create-element
- Owner: drwpow
- Created: 2019-05-20T22:28:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-20T22:29:08.000Z (over 5 years ago)
- Last Synced: 2024-10-15T00:28:40.417Z (2 months ago)
- Language: TypeScript
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# react-testing-library createElement bug repro
Repo used to test a bug.
```
npm i
npm test
```You’ll see the following error:
```
TypeError: Cannot read property 'createElement' of undefined5 |
6 | test("NotFound page", async () => {
> 7 | const { getByTestId } = render();
| ^
8 | expect(getByTestId("title")).toHaveTextContent("Hello CodeSandbox");
9 | });
10 |
```