react-table-library icon indicating copy to clipboard operation
react-table-library copied to clipboard

Error in Jest

Open nharrisanalyst opened this issue 10 months ago • 1 comments

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';

nharrisanalyst avatar Apr 30 '24 21:04 nharrisanalyst

Hi, try add to jest:

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

LoborifmPPTeam avatar Aug 05 '24 05:08 LoborifmPPTeam