| 96 | // This is useful because if we test every single individual version of |
| 97 | // every plan the test just takes way too long. |
| 98 | const getReleaseNotesVersionCombinations = (langs) => { |
| 99 | const combinations = [] |
| 100 | const prefixes = [] |
| 101 | for (const version of page.applicableVersions) { |
| 102 | const prefix = version.split('@')[0] |
| 103 | if (prefixes.includes(prefix)) { |
| 104 | continue |
| 105 | } |
| 106 | prefixes.push(prefix) |
| 107 | combinations.push(...langs.map((lang) => [lang, version])) |
| 108 | } |
| 109 | return combinations |
| 110 | } |
| 111 | |
| 112 | test.each(getReleaseNotesVersionCombinations(langs))( |
| 113 | 'latest release notes', |