Skip to content

Instantly share code, notes, and snippets.

@tugberkugurlu
Created August 8, 2016 15:25
Show Gist options
  • Save tugberkugurlu/049d4d3fc1deca03cf406f126d9f2387 to your computer and use it in GitHub Desktop.
Save tugberkugurlu/049d4d3fc1deca03cf406f126d9f2387 to your computer and use it in GitHub Desktop.
Run Mocha PowerShell
$mochaPath = Resolve-Path (Join-Path $PSScriptRoot "..\node_modules\.bin\_mocha.cmd")
$setupPath = Resolve-Path (Join-Path $PSScriptRoot "..\test\setup.js")
$testFiles = Join-Path $PSScriptRoot "..\src\**\*.test.js"
& $mochaPath "$testFiles" --require "$setupPath" --compilers js:babel-register --debug-brk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment