Skip to content

Commit

Permalink
Merge pull request #24799 from storybookjs/norbert/testbuild-skip-com…
Browse files Browse the repository at this point in the history
…position

TestBuild: Disable composition when `--test` is `true`
  • Loading branch information
ndelangen authored Nov 10, 2023
2 parents 327b0c5 + 31f4c95 commit 0c2953f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/lib/core-common/src/utils/get-storybook-refs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ const toTitle = (input: string) => {
};

export async function getRefs(options: Options) {
if (options.test) {
return {};
}

const refs = await options.presets.apply<Record<string, Ref>>('refs', await getAutoRefs(options));

Object.entries(refs).forEach(([key, value]: [string, Ref]) => {
Expand Down

0 comments on commit 0c2953f

Please sign in to comment.