media-stream-library-js
media-stream-library-js copied to clipboard
Failing tests when importing and using "select" or "modulo"
Describe the bug The following error is thrown when running unit tests with Jest:
SyntaxError: Unexpected token 'export'
> 1 | import {Coord, CoordArray, select, modulo} from 'media-overlay-library';
To Reproduce
Import and use either select
or modulo
from the library.
For some reason this seems to only happen when running my unit tests with Jest. I get no errors on build with webpack.
Environment (please complete the following information):
- OS: Ubuntu 20.04.3 LTS
- Yarn v3.0.2 with node v14.9.0
- Media-overlay-library version: 4.1.2