Run suite with npx

In a project terminal run "npx metaltest" to run the suite of test

If you want to wath you can use nodemon like "nodemon --exec npx metaltest"
master
Frédéric Matte 2024-10-11 12:40:22 -04:00
parent ac5c61b9f5
commit bd3fc65f59
2 changed files with 11 additions and 0 deletions

10
cli/cli.js Executable file
View File

@ -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)

View File

@ -4,6 +4,7 @@
"description": "Clone of baretest with reporting",
"type": "module",
"exports": "./index.js",
"bin": "./cli/cli.js",
"scripts": {
"test": "node suite.js"
},