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

Snapshot doesn't work #327

Open
Flo2315 opened this issue Feb 22, 2021 · 0 comments
Open

Snapshot doesn't work #327

Flo2315 opened this issue Feb 22, 2021 · 0 comments

Comments

@Flo2315
Copy link

Flo2315 commented Feb 22, 2021

Hi guys,

Thank you for your work and this setup 🙏
I have a problem with the AVA snapshots, the first test works but when I run it a second time I have an error.

First try
Capture d’écran 2021-02-22 à 15 15 47

Second trial
Capture d’écran 2021-02-22 à 15 16 11

My code, from Logo.spec.js file :

import { mount } from '@vue/test-utils';
import test from 'ava';
import Logo from '@/components/Logo.vue';

test('is a Vue instance', (t) => {
  const wrapper = mount(Logo);
  t.is(wrapper.isVueInstance(), true);
});

test('Logo.vue snapshot', (t) => {
  const wrapper = mount(Logo);

  t.snapshot({ html: wrapper.html() });
});

Do you have an idea?

Thank you

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