This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {resolve, Service, ResolvedService} from './resolve'; | |
describe('resolve', () => { | |
it('resolves a single service graph', () => { | |
const input: Service[] = [ | |
{ | |
name: 'a', | |
requires: [] | |
} | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference types="node" /> | |
import { mod } from "riceburn"; | |
import { TypescriptMod } from "riceburn/lib/interfaces"; | |
import ts = require("typescript"); | |
import cp = require("child_process"); | |
import fs = require("fs"); | |
const glob = require("glob"); | |
import { getServiceDescription } from "../phoenix/tools/webpack/hatch/typescript-dependency-annotations/tsc-dep-annotations"; | |
const { log } = console; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const OriginalPromise = Promise; | |
const enum State { | |
PENDING, | |
RESOLVED, | |
REJECTED | |
} | |
const emptyFn = () => {}; | |
const FUDGE_FACTOR_MS = 100; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.clear(); | |
function isFunction(o){ | |
return typeof o === (typeof isFunction); | |
} | |
/** | |
* Wraps up an object replacing methods with an interceptor | |
* @param obj - the obj to wrap | |
* @param interceptor {(obj, methodName, args) => any} |
NewerOlder