Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > [email protected] test C:\Users\66851\development-snarl\development-react\project-specials\reactinterface\server
- > jest
- FAIL ./myApp.test.js
- ● Test suite failed to run
- The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
- Consider using the "jsdom" test environment.
- ReferenceError: document is not defined
- 52 | // renderWithProps({loadError: true});
- 53 | // });
- > 54 | const div = document.createElement("div");
- | ^
- 55 | // div.innerHTML = regForm();
- 56 | // it("Displays the forms.", () => {
- 57 | // // const myForm = regForm();
- at Object.<anonymous> (myApp.test.js:54:13)
- at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13)
- console.log
- 111
- at Object.<anonymous> (myApp.test.js:17:9)
- console.log
- [Function (anonymous)]
- at Object.<anonymous> (myApp.test.js:18:9)
- Test Suites: 1 failed, 1 total
- Tests: 0 total
- Snapshots: 0 total
- Time: 0.83 s
- Ran all test suites.
- npm ERR! Test failed. See above for more details.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement