(msg: string, options?: { omitPrefix?: boolean; prefix?: string; info?: boolean; error?: boolean })
| 26 | type TestResult = { testName: string; result: boolean }; |
| 27 | |
| 28 | function log(msg: string, options?: { omitPrefix?: boolean; prefix?: string; info?: boolean; error?: boolean }) { |
| 29 | |
| 30 | const prefix = options?.prefix || '> '; |
| 31 | const output = `${options?.omitPrefix ? '' : `${prefix} `}${msg}\n`; |
| 32 | |
| 33 | if (options?.error) { |
| 34 | process.stdout.write(chalk.red(output)); |
| 35 | } else if (options?.info) { |
| 36 | process.stdout.write(chalk.bold.blue(output)); |
| 37 | } else { |
| 38 | process.stdout.write(chalk.blue(output)); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | export async function doFeaturesTestCommand(args: FeaturesTestCommandInput): Promise<number> { |
| 43 | const { pkg, globalScenariosOnly, features, collectionFolder, cliHost } = args; |
no test coverage detected