2 ms·
Jest uses jsdom. You just need to add it to a project ("npm install --save-dev jest"), write a spec, and then run npm test (maybe update package.json to have 'j
by onion2k 10y ago
Jest uses jsdom. You just need to add it to a project ("npm install --save-dev jest"), write a spec, and then run npm test (maybe update package.json to have 'jest' as the test command). It's really, really easy.
There's even a repl so you can try it in a browser first - https://facebook.github.io/jest/#use https://facebook.github.io/jest/#use