rcarcasses / vue-cytoscape

cytoscape.js now inside vue.js
https://rcarcasses.github.io/vue-cytoscape
MIT License
96 stars 34 forks source link

Cytoscape instance takes 90s to bind while testing #55

Open wfischer42 opened 4 years ago

wfischer42 commented 4 years ago

I'm working on a fairly complex app and trying to build out a thorough test suite. I was hoping to test the parent of the cytoscape component, and even to drill into the cytoscape instance in the tests. Unfortunately, unless I use shallowMount, it takes about 90 seconds to bind the value to the component state.

afterCreated(cy) {
  console.time("Bind Cy")
  this.instance = cy
  console.timeEnd("Bind Cy")
}

Bind Cy: 86007ms This isn't a problem while serving or building - only in the test. Any thoughts on what the issue might be?