Function it

A single test declaration. This can be used in both web tests and node tests, so you only have import from a single place and learn a single interface.

This should be nested within a describe call. The it name should form a sentence fragment that is attached to the parent describe's input. The sentence should ultimately read like this: "myFunction, it does a thing" (as shown in the example below).

Compatible with both Node.js's test runner and web-test-runner or other Mocha-style test runners.

import {describe, it} from '@augment-vir/test';

describe(myFunction.name, () => {
it('does a thing', () => {
myFunction();
});
});

@augment-vir/test

Properties

Properties