from the images, I think you need to require `d3` library just like you did with `chatbot-pie` library or maybe you can include it using your testing lib as a dependency, the error says that its not included in the testing function scope.
– ROOTJan 19 '20 at 12:39