Skip to content

Commit

Permalink
Text #7
Browse files Browse the repository at this point in the history
  • Loading branch information
allevo committed Jul 21, 2024
1 parent d6e9641 commit 95620cb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/components/tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ console.log("STARTING STORYBOOK");

const storybookProcess = spawn("pnpm", ["run", "storybook"]);
storybookProcess.stderr.on("data", (data) => {
console.error(data.toString());
console.error('stderr', data.toString());
});
storybookProcess.stdout.on("data", (data) => {
console.log(data.toString());
console.log('stdout', data.toString());
});
storybookProcess.on("exit", (code) => {
console.log(`--- Storybook exited with code ${code}`);
Expand All @@ -17,7 +17,6 @@ storybookProcess.on("exit", (code) => {
console.log('AWAITING for a WHILE');
await new Promise((resolve) => setTimeout(resolve, 10_000));

/*
console.log("WAITING FOR STORYBOOK TO START");
try {
await waitOn({
Expand All @@ -29,7 +28,7 @@ try {
process.exit(1);
}

/*
console.log("STARTING STORYBOOK TESTS");
try {
spawnSync("pnpm", ["test:storybook"], { stdio: "inherit" });
Expand Down

0 comments on commit 95620cb

Please sign in to comment.