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

Error in Jest #152

Open
nharrisanalyst opened this issue Apr 30, 2024 · 1 comment
Open

Error in Jest #152

nharrisanalyst opened this issue Apr 30, 2024 · 1 comment

Comments

@nharrisanalyst
Copy link

nharrisanalyst commented Apr 30, 2024

I am getting this error in Jest when testing a react component that uses react-table-library

   SyntaxError: Cannot use import statement outside a module
  1 | import React from 'react';
> 2 | import { CompactTable } from '@table-library/react-table-library/compact';
@LoborifmPPTeam
Copy link

Hi, try add to jest:

"transformIgnorePatterns": [
      "/node_modules/(?!@table-library).+\\.(js|jsx|ts|tsx)$"
    ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants