Skip to content
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

fix(test): Support dynamic imports in tests #342

Merged
merged 1 commit into from
Apr 1, 2019

Conversation

markdalgleish
Copy link
Member

When running sku test, we need to ensure that dynamic import() calls are compiled correctly for node, which we do with babel-plugin-dynamic-import-node.

@@ -19,25 +19,25 @@ SOURCE HTML:
<link data-chunk="handlers-Home"
rel="preload"
as="script"
href="http://localhost:4004/handlers-Home-9299312b46da1275b24f.js"
href="http://localhost:4004/handlers-Home-d4afda529b3b1a8b8da7.js"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the script contents changed, it's changed the hash in the snapshot tests.

Copy link
Contributor

@kosanna kosanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ace 🎉

@markdalgleish markdalgleish merged commit 84b8541 into master Apr 1, 2019
@markdalgleish markdalgleish deleted the support-dynamic-imports-in-tests branch April 1, 2019 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants