Function describe

A test suite 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 passed a noun (preferably a single word, when possible) of what is going to be tested inside the test suite. Its callback should call it from this same package.

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();
});
});

Properties

Properties