Testing utilities for Deno
doc | ||
src | ||
.editorconfig | ||
.gitignore | ||
deps.ts | ||
mod.ts | ||
README.md | ||
run | ||
TODO.md | ||
tsconfig.json |
typescript/testing
About
Testing utilities for Deno, trying to stick to jasmine/jest syntax for easy porting.
Import
In deno:
import { describe, expect, it } from "https://js.thunderk.net/testing/mod.ts";
Use
Syntax is similar to Jest, and tries to be mostly compatible.
describe("a module", () => {
it("does something", () => {
expect(5).toBeGreatherThan(4);
});
};
Credits
- Embeds a slighly adapted version of expect library from Allain Lalonde