Jump to content
Search Community

Vue jest mock gsap

Nasr Galal test
Moderator Tag

Recommended Posts

I am using gsap in a component

<script lang="ts">
  import { DiagramSvgHelper } from '@/mixins'
  import { gsap } from "gsap/all"
  import {
    Component
  } from "vue-property-decorator";

  @Component({})
  export default class Diagram extends DiagramSvgHelper {
    // someCodeHere
  }
</script>

I would like to test the component without `gsap`for now, once i created a jest test this response comes:

 

image.thumb.png.3f12133c3480eb7416ac0438bc38710b.png

 

I used `gsap.to()` and `gsap.set()` methods

 

Thanks all :)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...