-
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
380f815
commit 3bcda8e
Showing
2 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
28 changes: 19 additions & 9 deletions
28
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 |
---|---|---|
@@ -1,18 +1,28 @@ | ||
diff --git a/bin/test-storybook.js b/bin/test-storybook.js | ||
index 94f443455ca897b28302867cf69786d763652848..c03ba866e4893cf8075437c769edd36a5790763c 100644 | ||
index 94f443455ca897b28302867cf69786d763652848..dbf79acd7dd9c0a813b0fa1679d4b57b4e495ee4 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(); | ||
@@ -65,6 +65,7 @@ async function executeJestPlaywright(args) { | ||
: path.resolve(__dirname, '../playwright/test-runner-jest.config.js'); | ||
|
||
argv.push('--config', jestConfigPath); | ||
+ argv.push('--debug'); | ||
|
||
await jest.run(argv); | ||
} | ||
@@ -99,6 +100,7 @@ async function fetchStoriesJson(url) { | ||
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')); | ||
+ console.log(tmpFile, fs.readFileSync(tmpFile, 'utf-8')); | ||
}); | ||
} catch (err) { | ||
console.error(`Failed to fetch stories.json from ${storiesJsonUrl}`); | ||
@@ -162,6 +164,7 @@ const main = async () => { | ||
storiesJsonTmpDir = await fetchStoriesJson(targetURL); | ||
process.env.TEST_ROOT = storiesJsonTmpDir; | ||
process.env.TEST_MATCH = '**/*.test.js'; | ||
+ console.log(storiesJsonTmpDir); | ||
} | ||
|
||
process.env.STORYBOOK_CONFIG_DIR = runnerOptions.configDir; |
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