Go to Latest
function runTestModules
import { runTestModules } from "https://dotland.deno.dev/std@0.36.0/testing/runner.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>