Skip to content

Commit

Permalink
Merge pull request #147 from chromaui/norbert/add-testbuild-env-variable
Browse files Browse the repository at this point in the history
TestBuild: Add `SB_TESTBUILD` env-variable to switch on `--test` buildMode in storybook
  • Loading branch information
ndelangen committed Nov 17, 2023
2 parents 86bb01a + 1c26ff5 commit 738c96d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runChromaticBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ export const runChromaticBuild = async (
abortController?.abort();
abortController = new AbortController();

process.env.SB_TESTBUILD = "true";

await run({
// Currently we have to have these flags.
// We should move the checks to after flags have been parsed into options.
Expand Down

0 comments on commit 738c96d

Please sign in to comment.