Skip to content

Commit

Permalink
Fix flaky missing dependency test
Browse files Browse the repository at this point in the history
  • Loading branch information
codykaup committed Sep 12, 2024
1 parent b5e1dd3 commit 11e24ee
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
Expand Up @@ -81,7 +81,9 @@ describe('getStorybookInfo', () => {
await expect(getStorybookInfo(context)).resolves.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),
addons: [
{
Expand Down

0 comments on commit 11e24ee

Please sign in to comment.