To do npx metaltest in another projet to run all test
master
Frédéric Matte 2025-06-02 16:03:58 -04:00
parent 1df35e971a
commit 4fa6686a74
2 changed files with 4 additions and 2 deletions

View File

@ -2,8 +2,9 @@
import { suite } from 'metaltest'
const run = async () => {
await suite(process.cwd())
const run = async (folder) => {
if (!folder) folder = process.cwd()
await suite(folder)
}
const [, , folder] = process.argv

View File

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