Skip to content

Does not work with jest testing... replaced with bun #260

@KhalfaniW

Description

@KhalfaniW

I can't run orga with jest. This is a low priority problem. I am documenting a quick fix

.../node_modules/.pnpm/orga@4.5.0/node_modules/orga/dist/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { withDefault } from './options.js';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

     1 | import { useEffect, useState } from "react";
  > 2 | import { parse } from "orga";
        | ^

I removed jest and used bun to test which has native es6 support.

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