mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
fix
This commit is contained in:
parent
6ea2365560
commit
99a1b78ade
@ -193,7 +193,11 @@ test.describe('addon-docs', () => {
|
|||||||
const root = sbPage.previewRoot();
|
const root = sbPage.previewRoot();
|
||||||
|
|
||||||
let expectedReactVersion = /^18/;
|
let expectedReactVersion = /^18/;
|
||||||
if (templateName.includes('preact')) {
|
if (
|
||||||
|
templateName.includes('preact') ||
|
||||||
|
templateName.includes('react-webpack/17') ||
|
||||||
|
templateName.includes('react-vite/17')
|
||||||
|
) {
|
||||||
expectedReactVersion = /^17/;
|
expectedReactVersion = /^17/;
|
||||||
} else if (templateName.includes('react16')) {
|
} else if (templateName.includes('react16')) {
|
||||||
expectedReactVersion = /^16/;
|
expectedReactVersion = /^16/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user