Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/testing/mod.ts>runTestModules

A modern runtime for JavaScript and TypeScript.
Go to Latest
function runTestModules
import { runTestModules } from "https://deno.land/x/deno@v0.28.0/std/testing/mod.ts";

Import the specified test modules and run their tests as a suite.

Test modules are specified as an array of strings and can include local files or URLs.

File matching and excluding support glob syntax - arguments recognized as globs will be expanded using glob() from the fs module.

Example:

  runTestModules({ include: ["**\/*_test.ts", "**\/test.ts"] });

Any matched directory <dir> will expand to:

So the above example is captured naturally by:

  runTestModules({ include: ["."] });

Which is the default used for:

  runTestModules();

Parameters

optional
unnamed 0: RunTestModulesOptions = [UNSUPPORTED]

Returns

Promise<void>