Closed luisaverza closed 1 year ago
hey @luisaverza
is it enough to add jest-environment-jsdom to your project, or do we need to add it to vscode-jest-runner extension?
at the end jest-runner is just creating the cli command to execute jest.
but jest and everything is used from your acutal project.
please provide feedback :+1:
Hey @firsttris thanks for you quick reply! Yes, you are right. Since I work in a monorepo I was having a hard time configuring jest-runner. After setting the ProjectPath and the right jest command, everything is running great! Thanks ✅
Problem My project is configure to use
testEnvironment: 'jsdom',
so when I run the tests with vscode-just-runner I find this error:It is a known problem after updating jest from v27 to v28 The solution will be pretty much to add the
jest-environment-jsdom
library. I could send a PR adding the lib but I'm not sure if this could impact others that don't use jsdom environment.