Skip to content

Not compatible with typescript jest config fileΒ #24

@abarghoud

Description

@abarghoud

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions