Tests
DotLottie-js tests are written with Jasmine. Using Jasmine allows us to write tests once and assure compatibility with Browser and Node environments.
Tests can be found in:
Writing tests
- Create your test file inside of:
Tests need to end in ‘.spec.ts’
- Write out your test
If you need to compare a DotLottie with another you can add the custom matcher before your tests: