UNPKG

464 BJavaScriptView Raw
1#! /usr/bin/env node
2
3const shell = require('shelljs')
4const path = require('path')
5const { getConfig } = require('../lib/config')
6
7const config = getConfig()
8const nodeExec = `npx babel-node --extensions '.ts,.tsx,.js,.jsx'`
9const pathToFile = path.resolve(config.projectRoot, config.pathToTestIndex, config.testIndexName)
10const command = `${nodeExec} ${pathToFile}`
11shell.echo(`Command: ${command}`)
12shell.cd(config.projectRoot)
13shell.exec(command)
14shell.exit()