Function testsImport

  • Imports all the tests of the given array of paths and returns a TestsRecord.

    Example

    suiteImport([
    "file:///example/test-1.js",
    "file:///example/test-2.js",
    ]);
    // Promise<{
    // "file:///example/test-1.js": [
    // { given: "example", must: "example", received: "value", wanted: "value" },
    // },
    // "file:///example/test-2.js": [
    // { given: "example", must: "example", received: "value", wanted: "value" },
    // ],
    // }>

    Returns

    A TestsRecord object with the tests.

    Parameters

    Returns Promise<Readonly<Record<string, Tests<unknown>>>>