-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11d6bcb
commit 380f815
Showing
3 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
examples/lit-ts/patches/@storybook-test-runner-npm-0.0.4-37f6d4c435
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/bin/test-storybook.js b/bin/test-storybook.js | ||
index 94f443455ca897b28302867cf69786d763652848..c03ba866e4893cf8075437c769edd36a5790763c 100644 | ||
--- a/bin/test-storybook.js | ||
+++ b/bin/test-storybook.js | ||
@@ -94,11 +94,12 @@ async function fetchStoriesJson(url) { | ||
const res = await fetch(storiesJsonUrl); | ||
const json = await res.text(); | ||
const titleIdToTest = transformPlaywrightJson(json); | ||
- | ||
+ console.log(json); | ||
tmpDir = tempy.directory(); | ||
Object.entries(titleIdToTest).forEach(([titleId, test]) => { | ||
const tmpFile = path.join(tmpDir, `${titleId}.test.js`); | ||
fs.writeFileSync(tmpFile, test); | ||
+ console.log(fs.readFileSync(tmpFile, 'utf-8')); | ||
}); | ||
} catch (err) { | ||
console.error(`Failed to fetch stories.json from ${storiesJsonUrl}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters