blob: 1883f9385fd142551f60d3118e335e6f6fd7ae83 [file] [log] [blame]
#!/usr/bin/env node
'use strict'
const tap = require('../lib/tap.js')
const args = process.argv.slice(2)
if (args.length === 1) {
const path = require('path')
const file = path.resolve(args[0])
tap.mochaGlobals()
require(file)
} else {
for (let i = 0; i < args.length; i++) {
tap.spawn(process.execPath, [__filename, args[i]])
}
}