Skip to content

Instantly share code, notes, and snippets.

View index.ts
import { createServer, IncomingMessage, ServerResponse } from 'http'
// The core http server
const httpServer = createServer(requestHandler)
// Our request handler and route dispatcher
async function requestHandler(req: IncomingMessage, res: ServerResponse) {}
View test-runner.js
'use strict';
const assert = require('assert');
const kleur = require('kleur');
const testCases = new Set();
module.exports = function test(title, testCase) {
testCases.add([title, testCase]);
};