Closed Edmund1645 closed 4 years ago
The issue seems to be from the style tags placed in the SVG elements.
Got it working @jameesjohn, I removed the style tags since they were all repetitive and used placed the two classes in the component's style instead.
I'm beginning to write unit tests for a project and the first test suite I'm writing is failing with this error:
But I've tried remove ing the
<style></style>
tag and it still fails. The only thing that solved it was removing the contents of<template></template>
and leaving the root node element.This is the full error I get.
my
SideBar.vue
component:In
Sidebar.spec.js
filehere's my jest config in
package.json
I noticed removing all inline SVGs seemed to make the error gone but I need the interactivity of the icons so I cannot use plain
img
tags.