import { shallowMount } from '@vue/test-utils';
import App from '@/App';

// see https://vue-test-utils.vuejs.org/guides/using-with-vue-router.html#testing-components-that-use-router-link-or-router-view
describe('App component should', () => {
  it('render without crashing', () => {
    const wrapper = shallowMount(App, {
      stubs: ['router-link', 'router-view']
    });
    expect(wrapper.find('hello')).toBeDefined();
  });
});

import { shallowMount } from '@vue/test-utils';
import App from '@/App';

// see https://vue-test-utils.vuejs.org/guides/using-with-vue-router.html#testing-components-that-use-router-link-or-router-view
describe('App component should', () => {
  it('render without crashing', () => {
    const wrapper = shallowMount(App, {
      stubs: ['router-link', 'router-view']
    });
    expect(wrapper.html()).toContain('<div id="nav">')
  });
});

Fix App jest test because it is otherwise always green no matter what is in find()
Fix App jest test because it is otherwise always green no matter what is in find()
