Skip to content

Instantly share code, notes, and snippets.

@seanchas116
Last active November 6, 2015 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanchas116/1f2a309f7779f2766804 to your computer and use it in GitHub Desktop.
Save seanchas116/1f2a309f7779f2766804 to your computer and use it in GitHub Desktop.
こういうテストフレームワークほしい
import assert from "power-assert";
import tapSpec from "tap-spec";
const test = new Test();
const {describe, it} = test;
describe("foo", () => {
describe(".bar", () => {
it("fetches bar", async () => {
const result = await foo.bar();
assert(result === "bar");
});
});
});
const result = test.run();
result.stream
.pipe(tapSpec())
.pipe(process.stdout);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment