Skip to content

Commit 1f1fd7e

Browse files
committed
Fix timing issue in getStorybookInfo test
1 parent 1af3c0c commit 1f1fd7e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

node-src/lib/getStorybookInfo.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ describe('getStorybookInfo', () => {
3131
expect(sbInfo).toEqual(
3232
// We're getting the result of tracing chromatic-cli's node_modules here.
3333
expect.objectContaining({
34-
viewLayer: 'react',
34+
// We're currently using `react` and `@storybook/react-webpack5` so the we can end up with
35+
// either one based on when those promises resolve.
36+
viewLayer: expect.stringMatching(/(react|@storybook\/react-webpack5)/),
3537
version: expect.any(String),
3638
builder: { name: '@storybook/react-webpack5', packageVersion: expect.any(String) },
3739
})

0 commit comments

Comments
 (0)