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
parent
ac5c61b9f5
commit
bd3fc65f59
|
@ -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)
|
|
@ -4,6 +4,7 @@
|
||||||
"description": "Clone of baretest with reporting",
|
"description": "Clone of baretest with reporting",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": "./index.js",
|
"exports": "./index.js",
|
||||||
|
"bin": "./cli/cli.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node suite.js"
|
"test": "node suite.js"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue