Skip to content

Jest Error when using library #2

Open

Description

@S1ngularity96

Bug

build/node_modules/@aweebit/react-essentials/dist/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){export * from './hooks/index.js';
                                                                                      ^^^^^^
    SyntaxError: Unexpected token 'export'

Steps to reproduce

Use jest 29.7.0 to import a file that uses react-essentials. Jest should return error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions