(name)
| 47 | // the test scripts run. |
| 48 | if (workerData.skippedTests?.length) { |
| 49 | function isSkipped(name) { |
| 50 | for (const matcher of workerData.skippedTests) { |
| 51 | if (typeof matcher === 'string') { |
| 52 | if (name === matcher) return true; |
| 53 | } else if (matcher.test(name)) { |
| 54 | return true; |
| 55 | } |
| 56 | } |
| 57 | return false; |
| 58 | } |
| 59 | for (const fn of ['test', 'async_test', 'promise_test']) { |
| 60 | const original = globalThis[fn]; |
| 61 | globalThis[fn] = function(func, name, ...rest) { |