( versionRange: string, testBody: () => void, )
| 61 | } |
| 62 | |
| 63 | export function onNodeVersions( |
| 64 | versionRange: string, |
| 65 | testBody: () => void, |
| 66 | ): void { |
| 67 | const description = `on node ${versionRange}`; |
| 68 | if (semver.satisfies(process.versions.node, versionRange)) { |
| 69 | describe(description, () => { |
| 70 | testBody(); |
| 71 | }); |
| 72 | } else { |
| 73 | describe.skip(description, () => { |
| 74 | testBody(); |
| 75 | }); |
| 76 | } |
| 77 | } |
no test coverage detected