diff --git a/cli/cli.js b/cli/cli.js new file mode 100755 index 0000000..a644b6f --- /dev/null +++ b/cli/cli.js @@ -0,0 +1,10 @@ +#!/usr/bin/env node + +import { suite } from 'metaltest' + +const run = async () => { + await suite(process.cwd()) +} + +const [, , folder] = process.argv +await run(folder) diff --git a/package.json b/package.json index 75d925a..153915f 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Clone of baretest with reporting", "type": "module", "exports": "./index.js", + "bin": "./cli/cli.js", "scripts": { "test": "node suite.js" },