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

Not compatible with typescript jest config file #24

Open
abarghoud opened this issue May 6, 2024 · 2 comments
Open

Not compatible with typescript jest config file #24

abarghoud opened this issue May 6, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@abarghoud
Copy link

When referencing a jest config file that's in typescript

jest-it-up --config=packages/models/jest.config.ts

I get the following error

export default {
^^^^^^

SyntaxError: Unexpected token 'export'
    at internalCompileFunction (node:internal/vm:77:18)
    at wrapSafe (node:internal/modules/cjs/loader:1288:20)
    at Module._compile (node:internal/modules/cjs/loader:1340:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at getData (.../node_modules/jest-it-up/lib/getData.js:5:18)
    at module.exports (.../node_modules/jest-it-up/lib/index.js:23:43)

Node.js v20.11.1
@palerique
Copy link

Do you have plans for supporting TS?

@rbardini
Copy link
Owner

No plans, but I'd be happy to accept contributions towards that!

@rbardini rbardini added the enhancement New feature or request label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants