You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using StaggeredMotion and spring to create a basic animation, and I'm trying to implement automated tests to check the animation is running as expected when triggered, however I can't figure out how to correctly implement this.
The idea is doing something like this:
describe('test animation', () => {
let clock;
beforeEach(() => {
clock = sinon.useFakeTimers();
})
afterEach(() => {
clock.restore();
});
it('animation should progress', () => {
[...]
clock.tick(200);
// check the state of some nodes here
[...]
});
});
But this doesn't seem to work as expected (I'm using a create-react-app environment), so I think I'm missing something important. Sorry if the question is dummy but I couldn't find examples about achieving this. I would appreciate if anyone could help ?
The text was updated successfully, but these errors were encountered:
Hi,
I'm using StaggeredMotion and spring to create a basic animation, and I'm trying to implement automated tests to check the animation is running as expected when triggered, however I can't figure out how to correctly implement this.
The idea is doing something like this:
But this doesn't seem to work as expected (I'm using a
create-react-app
environment), so I think I'm missing something important. Sorry if the question is dummy but I couldn't find examples about achieving this. I would appreciate if anyone could help ?The text was updated successfully, but these errors were encountered: