Advertisement
Guest User

Untitled

a guest
Sep 26th, 2021
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. > server@1.0.0 test C:\Users\66851\development-snarl\development-react\project-specials\reactinterface\server
  2. > jest
  3.  
  4. FAIL ./myApp.test.js
  5. ● Test suite failed to run
  6.  
  7. The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
  8. Consider using the "jsdom" test environment.
  9.  
  10. ReferenceError: document is not defined
  11.  
  12. 52 | // renderWithProps({loadError: true});
  13. 53 | // });
  14. > 54 | const div = document.createElement("div");
  15. | ^
  16. 55 | // div.innerHTML = regForm();
  17. 56 | // it("Displays the forms.", () => {
  18. 57 | // // const myForm = regForm();
  19.  
  20. at Object.<anonymous> (myApp.test.js:54:13)
  21. at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13)
  22.  
  23. console.log
  24. 111
  25.  
  26. at Object.<anonymous> (myApp.test.js:17:9)
  27.  
  28. console.log
  29. [Function (anonymous)]
  30.  
  31. at Object.<anonymous> (myApp.test.js:18:9)
  32.  
  33. Test Suites: 1 failed, 1 total
  34. Tests: 0 total
  35. Snapshots: 0 total
  36. Time: 0.83 s
  37. Ran all test suites.
  38. npm ERR! Test failed. See above for more details.
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement