VSCode Jest Setup

Install firsttris.vscode-jest-runner

Tweak debug settings

// .vscode/settings.json
"jestrunner.debugOptions": {
"skipFiles": ["<node_internals>/**"],
"smartStep": true
},

If using pnpm

basedir=$(dirname “$(echo “$0” | sed -e ‘s,\\,/,g’)”)SyntaxError: missing ) after argument list
// .vscode/settings.json
"jestrunner.jestPath": "node_modules/jest/bin/jest.js",

Got any more tips?

--

--

--

Co-Founder featureboard.app | Principal Consultant arkahna.io | Previously Tech Lead Seven West Media WA | International Speaker | OSS | Mentor

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Mastering Promises

5 Front End Development Skills To Land Your First Job

Upload and View Files in Amazon S3 using Angular + Spring Boot

The Beginner’s Guide to Lodash

React native : Drag and drop between two lists

Technical Contributions to Telescope — Weeks 2–3

How Cloudant and PouchDB work together

Saving the React novice: update a component properly

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jake Ginnivan

Jake Ginnivan

Co-Founder featureboard.app | Principal Consultant arkahna.io | Previously Tech Lead Seven West Media WA | International Speaker | OSS | Mentor

More from Medium

25 VS Code Extensions to Create a Top-Notch IDE for JavaScript

WebStorm to VS Code checklist (for nodeJS / TS projects)

Building Your First VsCode extension

npm start… NPM START!?