Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/drwpow/rtl-create-element


https://github.com/drwpow/rtl-create-element

Last synced: 9 days ago
JSON representation

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 undefined

5 |
6 | test("NotFound page", async () => {
> 7 | const { getByTestId } = render();
| ^
8 | expect(getByTestId("title")).toHaveTextContent("Hello CodeSandbox");
9 | });
10 |
```