Nasr Galal Posted July 16, 2020 Posted July 16, 2020 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: I used `gsap.to()` and `gsap.set()` methods Thanks all
ZachSaucier Posted July 16, 2020 Posted July 16, 2020 Hey Nasr. This is more of a jest question than a GSAP one. Have you tried looking at old forums threads like these? They use the old version of GSAP but the general format should be the same as long as you're importing things correctly:
Nasr Galal Posted July 16, 2020 Author Posted July 16, 2020 Hey Zack! oh yeah, I was looking for threads discussing this issue! thanks for these recommendations
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now