diff --git a/tests/unit/setup.js b/tests/unit/setup.js index 6192747..35921ca 100644 --- a/tests/unit/setup.js +++ b/tests/unit/setup.js @@ -2,6 +2,8 @@ import vueSnapshotSerializer from './serializer.js'; expect.addSnapshotSerializer(vueSnapshotSerializer); +global.document = global.window.document; +document.body.innerHTML = '
'; const { getComputedStyle } = window; // Prevents console log message to install Vue DevTools