Posts

Showing posts from June, 2019

Debugging Jasmine tests on Windows 10 in Visual Studio Code

This is surprisingly harder than it looks.  The solution is to avoid, AT ALL COSTS, referencing node_modules\\.bin\\jasmine.  It simply does not work.  Instead, use the path in the 'program' property as seen below (the 'args' property is optional & present to just run one test): { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "handleEvent.spec.js", "program": "${workspaceFolder}\\node_modules\\jasmine\\bin\\jasmine.js", "args": [ "${workspaceFolder}\\spec\\handleEvent.spec.js" ] } ] }