MCPcopy Create free account
hub / github.com/csskit/csskit / run

Function run

packages/csskit_vscode/tests/run-tests.mjs:18–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18export async function run() {
19 const mocha = new Mocha({ ui: "bdd" });
20 const testsRoot = path.resolve(__dirname, "../out/tests/");
21 const files = await glob("*.test.js", { cwd: testsRoot });
22 for (const file of files) {
23 mocha.addFile(path.resolve(testsRoot, file));
24 }
25 await new Promise((resolve, reject) => {
26 mocha.run((failures) => {
27 if (failures > 0) {
28 reject(new Error(`${failures} tests failed.`));
29 } else {
30 resolve();
31 }
32 });
33 });
34}
35
36main();

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected