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

handle bare specifiers #44

Merged

Conversation

thescientist13
Copy link
Member

@thescientist13 thescientist13 commented Jun 2, 2022

Related Issue

resolves #43

Summary of Changes

  1. Don't (blindly) read import specifiers
  2. Add specs

Note: should revisit this in the context of #38

TODO

  1. Should create a chore issue to tracking adding testing support for this so we can at least fix this for Node >= 16.x users - add test case for bare import specifiers #53

@thescientist13 thescientist13 added the bug Something isn't working label Jun 2, 2022
@thescientist13
Copy link
Member Author

Seeing issues on Windows with the shared state issue from #24 and so it is failing because extra state from other tests are bleeding through.

Run WCC 
    Using renderFromHTML
      static page content
        ✔ should have the expected <html> tag the page
        ✔ should have the expected <title> tag the page
        ✔ should have the expected <head> tag the page
        ✔ should have the expected <body> tag the page
        ✔ should have the expected static content for the page
      custom header element with nested navigation element
        ✔ should have a <header> tag within the <template> shadowroot
        ✔ should have expected content within the <header> tag
        nested navigation element
          ✔ should have a <nav> tag within the <template> shadowroot
          ✔ should have three links within the <nav> element
      Using renderFromHTML
{
  assetMetadata: [
    'wcc-header': { instanceName: 'Header', moduleURL: [URL] },
    'wc-events-list': { instanceName: 'EventsList', moduleURL: [URL] },
    'wcc-navigation': { instanceName: 'Navigation', moduleURL: [URL] }
  ]
}
        1) should have two custom elements in the asset graph
        ✔ should have the correct attributes for each asset

I tried removing --parallel from mocha command but still the same.

@thescientist13 thescientist13 force-pushed the bug/issue-43-handle-bare-specifiers-when-parsing branch from 24605f0 to 29e82ff Compare June 7, 2022 12:11
@thescientist13 thescientist13 changed the title handle bare specifiers and add specs handle bare specifiers Jun 7, 2022
@thescientist13 thescientist13 merged commit b582ecb into master Jun 7, 2022
@thescientist13 thescientist13 deleted the bug/issue-43-handle-bare-specifiers-when-parsing branch June 7, 2022 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

node modules (bare specifiers) are causing an unhandled filesystem exception
1 participant