Import a file that exports a Test or an array of Test.
Test
testImport(new URL("file:///example/test.js"));// Promise<[// { given: "example", must: "example", received: "value", wanted: "value" },// { given: "example", must: "example", received: "value", wanted: "value" },// ]>
A promise with an array of Test and the path.
Path to the test file.
Import a file that exports a
Test
or an array ofTest
.Example
Returns
A promise with an array of
Test
and the path.