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

Can't import in jest w v6.0 #175

Closed
zackarydev opened this issue Feb 15, 2024 · 1 comment
Closed

Can't import in jest w v6.0 #175

zackarydev opened this issue Feb 15, 2024 · 1 comment

Comments

@zackarydev
Copy link

/node_modules/flat/index.js:12
           export function flatten (target, opts) {
           ^^^^^^
       
           SyntaxError: Unexpected token 'export'
       
           > 1 | import { flatten } from 'flat';
               | ^
       
             at Runtime.createScriptFromCode (../../node_modules/jest-runtime/build/index.js:1495:14)

Can we fix this so that we don't need to add configuration options to jest

@jonkoops
Copy link
Collaborator

Working as expected, duplicate of #171

@jonkoops jonkoops closed this as not planned Won't fix, can't repro, duplicate, stale Feb 17, 2024
@jonkoops jonkoops marked this as a duplicate of #171 Feb 17, 2024
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