Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AnderssonChristian opened this issue Sep 27, 2021 · 0 comments
Open
Labels
bug Something isn't working overlay Related to overlay (media-overlay-library-js package)

Comments

@AnderssonChristian
Copy link
Contributor

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 AnderssonChristian added the bug Something isn't working label Sep 27, 2021
@steabert steabert transferred this issue from AxisCommunications/media-overlay-library-js Jan 25, 2023
@lekoaf lekoaf added the overlay Related to overlay (media-overlay-library-js package) label Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working overlay Related to overlay (media-overlay-library-js package)
Projects
None yet
Development

No branches or pull requests

2 participants