DEV Community

Discussion on: Easily Test Mixins With Jest

individualit profile image
Artur Neumann • Edited on

thank you for the idea. It did not quite work for me exactly the way you have described it, but it game me the clue.
here is what I'm doing

      const Component = {
        render() {}
      const wrapper = shallowMount(Component, {
        mixins: [mixinName]
Enter fullscreen mode Exit fullscreen mode