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

Failing unit tests #66

Open
rienafairefr opened this issue Jan 28, 2019 · 0 comments
Open

Failing unit tests #66

rienafairefr opened this issue Jan 28, 2019 · 0 comments

Comments

@rienafairefr
Copy link
Contributor

I was unit testing the mobility circuit feature , and I kept having Jest throwing up that snapshots changed.

  • tests on ci.inria.fr work fine
  • when running the test on my own laptop, the snapshots differ by some whitespaces in a multiselect component.
    example:
● UserForm.vue › should match snapshot 2

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot "UserForm.vue should match snapshot 2 1".

    - Snapshot
    + Received

    @@ -48,11 +48,11 @@
                class="mymultiselect"
                custom-label="function () { [native code] }"
                deselectgrouplabel="Press enter to deselect group"
                deselectlabel="Press enter to remove"
                limit="99999"
    -           limittext="function (t){return"and ".concat(t," more")}"
    +           limittext="function(t){return"and ".concat(t," more")}"

I found this:
vuejs/vue-cli#2995
They are also using vue-multiselect, and the problem is similar, there might be a subtle difference in configuration between my machine and the CI one, it might be due to vue-multiselect, not sure, but this is annoying

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

1 participant