Skip to content

Instantly share code, notes, and snippets.

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) {}
'use strict';
const assert = require('assert');
const kleur = require('kleur');
const testCases = new Set();
module.exports = function test(title, testCase) {
testCases.add([title, testCase]);
};