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

Rerunning tests generates a new id everytime #4

Closed
PrashantAshok opened this issue Feb 21, 2020 · 1 comment
Closed

Rerunning tests generates a new id everytime #4

PrashantAshok opened this issue Feb 21, 2020 · 1 comment

Comments

@PrashantAshok
Copy link

Version: @marko/[email protected]

Details

This is basically what is in my template

<ebay-icon name="chevron-up"/>

First time it runs, it generates

<span
  class="icon icon--chevron-up"
  id="c3-3"/>

But the next time it runs, jest fails the tests and complains with the error that the id has changed.

Received content doesn't match the file .html.
    - Snapshot
    + Received
    @@ -14,11 +14,11 @@
          </span>
          <span
            class="icon icon--chevron-up"
    -       id="c3-3"
    +       id="c2-3"
          />

Expected Behavior

The ids shouldn't change between test runs

@mlrawlings
Copy link
Member

Fixed in #5, released in 3.0.1

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

No branches or pull requests

2 participants