Skip to content

Commit

Permalink
remove fake errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Feb 13, 2024
1 parent fce6818 commit 6b1be49
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions scripts/sandbox/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,6 @@ const runGenerators = async (
// where as others are very picky about what directories can be called. So we need to
// handle different modes of operation.
try {
if (Math.random() < 0.2) {
throw new Error('Blip Bloop random error when executing before-script');
}
if (script.includes('{{beforeDir}}')) {
const scriptWithBeforeDir = script.replaceAll('{{beforeDir}}', BEFORE_DIR_NAME);
await runCommand(
Expand Down Expand Up @@ -227,9 +224,6 @@ const runGenerators = async (
await remove(join(beforeDir, '.git'));

try {
if (Math.random() < 0.2) {
throw new Error('Blip Bloop random error when init storybook');
}
await addStorybook({ baseDir, localRegistry, flags, debug, env });
} catch (error) {
const message = `❌ Failed to initialize Storybook in template: ${name} (${dirName})`;
Expand All @@ -244,9 +238,6 @@ const runGenerators = async (
cause: error,
});
}
if (Math.random() < 0.2) {
throw new Error('Blip Bloop random error anywhere');
}
await addDocumentation(baseDir, { name, dirName });

// Remove node_modules to save space and avoid GH actions failing
Expand Down

0 comments on commit 6b1be49

Please sign in to comment.