()
| 14 | if (isCLI) cliTest(); |
| 15 | |
| 16 | export async function cliTest() { |
| 17 | console.time('\n⚡ Tested in'); |
| 18 | |
| 19 | const { values: args, positionals } = parseArgs({ |
| 20 | options: {}, |
| 21 | strict: false, |
| 22 | allowPositionals: true, |
| 23 | }); |
| 24 | |
| 25 | await test(positionals, args); |
| 26 | |
| 27 | console.timeEnd('\n⚡ Tested in'); |
| 28 | } |
| 29 | |
| 30 | export async function test(positionals, args) { |
| 31 | // Set flag for running tests in development mode, required for `act()`. |