Skip to content

Error in Jest  #152

@nharrisanalyst

Description

@nharrisanalyst

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions