When I want to run my project with the command npm run test, I get the error below. What is causing this?
npm run test
FAIL ● Test suite failed to run SecurityE
If you are using jsdom you have to change your setup for tests like this:
const { JSDOM } = require('jsdom'); const jsdom = new JSDOM('', { url: 'http://localhost/', });```