Fix addon-docs E2E tests

This commit is contained in:
Valentin Palkovic 2025-02-06 13:15:10 +01:00
parent 346d3879e0
commit cdadf6cec6

View File

@ -205,6 +205,14 @@ test.describe('addon-docs', () => {
expectedReactVersionRange = /^17/;
} else if (templateName.includes('react16')) {
expectedReactVersionRange = /^16/;
} else if (
templateName.includes('internal/react18-webpack-babel') ||
templateName.includes('preact-vite/default-js') ||
templateName.includes('preact-vite/default-ts') ||
templateName.includes('react-native-web-vite/expo-ts') ||
templateName.includes('react-webpack/18-ts')
) {
expectedReactVersionRange = /^18/;
}
// Arrange - Get the actual versions