media-stream-library-js icon indicating copy to clipboard operation
media-stream-library-js copied to clipboard

Failing tests when importing and using "select" or "modulo"

Open AnderssonChristian opened this issue 3 years ago • 0 comments

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

AnderssonChristian avatar Sep 27 '21 08:09 AnderssonChristian