()
| 8 | const { spawn } = require('node:child_process'); |
| 9 | |
| 10 | function* generateCases() { |
| 11 | for (const async of [false, true]) { |
| 12 | for (const handleErrorReturn of ['ignore', 'print', 'unhandled', 'badvalue']) { |
| 13 | if (handleErrorReturn === 'badvalue' && async) { |
| 14 | // Handled through a separate test using a child process |
| 15 | continue; |
| 16 | } |
| 17 | yield { async, handleErrorReturn }; |
| 18 | } |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | for (const { async, handleErrorReturn } of generateCases()) { |
| 23 | test(`async: ${async}, handleErrorReturn: ${handleErrorReturn}`, async () => { |
no outgoing calls
no test coverage detected
searching dependent graphs…