feat: Add TestDefinition::only (#5793)

This commit is contained in:
Nayeem Rahman 2020-06-12 16:58:04 +01:00 committed by GitHub
parent 3eee961473
commit e613bfe47a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 75 additions and 15 deletions

View file

@ -38,6 +38,9 @@ declare namespace Deno {
fn: () => void | Promise<void>;
name: string;
ignore?: boolean;
/** If at lease one test has `only` set to true, only run tests that have
* `only` set to true and fail the test suite. */
only?: boolean;
/** Check that the number of async completed ops after the test is the same
* as number of dispatched ops. Defaults to true.*/
sanitizeOps?: boolean;