-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure preview annotations are resolved relative to the cwd #19594
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get some kind of test for this?
@@ -125,21 +125,24 @@ export default async ( | |||
path.join(__dirname, '..', '..', 'templates', 'virtualModuleEntry.template.js') | |||
); | |||
|
|||
previewAnnotations.forEach((previewAnnotationFilename: any) => { | |||
previewAnnotations.forEach((previewAnnotationFilename: string | undefined) => { | |||
if (!previewAnnotationFilename) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When does this exit early?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea. Previously it was just being cast to any
and then used as a string
I don't think we have any meaningful tests for generated webpack configs, outside of running the Storybook. So the test would be getting a v6 store sandbox. |
Issue: (when sandbox running in v6 mode, although this was a more general issue):
What I did
Make entry point filenames not have
/
in them.How to test
Run v6 sandbox. Note it won't run (2nd PR coming) but it should start.