A suite of related tests that can be run together.
Optional
Readonly
The filepath to this SuiteLike, when available.
The name of this SuiteLike.
Runs this SuiteLike.
The results of running this SuiteLike
A synchronous implementation:
const results = suite.run(); Copy
const results = suite.run();
An asynchronous implementation:
const results = await suite.run(); Copy
const results = await suite.run();
Using an AbortSignal to cancel the suite:
AbortSignal
const ac = new AbortController();const signal = ac.signal;suite .run(signal) .then(console.log) .catch(error => { if (error.name === 'AbortError') { console.log('The suite was aborted'); } });ac.abort(); Copy
const ac = new AbortController();const signal = ac.signal;suite .run(signal) .then(console.log) .catch(error => { if (error.name === 'AbortError') { console.log('The suite was aborted'); } });ac.abort();
A suite of related tests that can be run together.