This commit is contained in:
Norbert de Langen 2023-12-14 12:26:52 +01:00
parent 6ea2365560
commit 99a1b78ade

View File

@ -193,7 +193,11 @@ test.describe('addon-docs', () => {
const root = sbPage.previewRoot();
let expectedReactVersion = /^18/;
if (templateName.includes('preact')) {
if (
templateName.includes('preact') ||
templateName.includes('react-webpack/17') ||
templateName.includes('react-vite/17')
) {
expectedReactVersion = /^17/;
} else if (templateName.includes('react16')) {
expectedReactVersion = /^16/;