Testing utilities for Deno
Find a file
2021-09-05 19:55:39 +02:00
doc Extract from devtools project 2021-09-05 19:55:39 +02:00
src Extract from devtools project 2021-09-05 19:55:39 +02:00
.editorconfig Extract from devtools project 2021-09-05 19:55:39 +02:00
.gitignore Extract from devtools project 2021-09-05 19:55:39 +02:00
deps.ts Extract from devtools project 2021-09-05 19:55:39 +02:00
mod.ts Extract from devtools project 2021-09-05 19:55:39 +02:00
README.md Extract from devtools project 2021-09-05 19:55:39 +02:00
run Extract from devtools project 2021-09-05 19:55:39 +02:00
TODO.md Extract from devtools project 2021-09-05 19:55:39 +02:00
tsconfig.json Extract from devtools project 2021-09-05 19:55:39 +02:00

typescript/testing

Build Status

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