(cmd: string)
| 1 | import { filesystem, system } from 'gluegun'; |
| 2 | |
| 3 | export const cli = async (cmd: string) => { |
| 4 | const root = filesystem.path(__dirname, '..', '..'); |
| 5 | const mitosisCliScript = filesystem.path(root, 'bin', 'mitosis'); |
| 6 | const shcmd = `node "${mitosisCliScript}" ${cmd}`; |
| 7 | console.debug(`Running: ${shcmd}`); |
| 8 | return system.run(shcmd); |
| 9 | }; |
| 10 | |
| 11 | export const DEFAULT_TEST_TIMEOUT = 20000; |
no test coverage detected