Posts

Showing posts from 2019

Never quit

Image
I live 20 minutes from a trail in my city, and I've been intending to hike it for more years than I care to admit. Two weeks ago I made the time to do it. Never again will I wait that long.  Still, part of me feels successful for making it happen.  The moral is this: you only lose if you quit. #getItDone

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" ] } ] }