1👍
Cannot tween a null target
means that TweenMax methods are not mocked. Infact you are mocking just TweenMax.to
method.
Please update your mock this way:
module.exports = {
TweenMax: class {
static to(selector, time, options) {
return jest.fn()
}
static set(selector, options) {
return jest.fn()
}
}
}
Let me know if that fixes it.
- [Vuejs]-Display API data from rapidapi in vue
- [Vuejs]-How do I use a vue.js nested for loop over two arrays with a v-for
Source:stackexchange.com