Skip to content

Instantly share code, notes, and snippets.

View joelharkes's full-sized avatar

Joël Harkes joelharkes

  • Frontify
  • Biel/Bienne Switzerland
View GitHub Profile
@joelharkes
joelharkes / test-with-ts-mocha.js
Created November 21, 2017 13:44
Run ts-mocha programmatically (in a script)
require('ts-mocha');
const Mocha = require('mocha');
const fs = require('fs');
let testSubject = null;
if (process.argv.length === 3) {
testSubject = process.argv[2];
}
const mocha = new Mocha({ timeout: 50000 });
@joelharkes
joelharkes / launch.json
Created November 21, 2017 13:39
Debug IronPython in visual studio code (vscode)
{
"version": "0.2.0",
"configurations": [
{
"name": "IronPython",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "C:\\Program Files (x86)\\IronPython 2.7\\ipy.exe",
"program": "${file}",