summaryrefslogtreecommitdiff
path: root/testing/mod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mod.ts')
-rw-r--r--testing/mod.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/mod.ts b/testing/mod.ts
index 71f27db20..fab8145e8 100644
--- a/testing/mod.ts
+++ b/testing/mod.ts
@@ -212,7 +212,7 @@ export async function runTests({
skip = /^\s*$/
}: RunOptions = {}): Promise<void> {
const tests: TestDefinition[] = candidates.filter(
- ({ name }) => only.test(name) && !skip.test(name)
+ ({ name }): boolean => only.test(name) && !skip.test(name)
);
const stats: TestStats = {
measured: 0,
@@ -232,7 +232,7 @@ export async function runTests({
if (stats.failed) {
// Use setTimeout to avoid the error being ignored due to unhandled
// promise rejections being swallowed.
- setTimeout(() => {
+ setTimeout((): void => {
console.error(`There were ${stats.failed} test failures.`);
Deno.exit(1);
}, 0);