Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix timing issue in getStorybookInfo test
Browse files Browse the repository at this point in the history
codykaup committed Oct 16, 2024
1 parent 72f2e15 commit 126c9ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node-src/lib/getStorybookInfo.test.ts
Original file line number Diff line number Diff line change
@@ -31,7 +31,9 @@ describe('getStorybookInfo', () => {
expect(sbInfo).toEqual(
// We're getting the result of tracing chromatic-cli's node_modules here.
expect.objectContaining({
viewLayer: 'react',
// We're currently using `react` and `@storybook/react-webpack5` so the we can end up with
// either one based on when those promises resolve.
viewLayer: expect.stringMatching(/(react|@storybook\/react-webpack5)/),
version: expect.any(String),
builder: { name: '@storybook/react-webpack5', packageVersion: expect.any(String) },
})

0 comments on commit 126c9ec

Please sign in to comment.