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

jest testSequencer option not handled if it is .ts #2851

Closed
zyf0330 opened this issue Aug 26, 2021 · 2 comments
Closed

jest testSequencer option not handled if it is .ts #2851

zyf0330 opened this issue Aug 26, 2021 · 2 comments
Labels

Comments

@zyf0330
Copy link

zyf0330 commented Aug 26, 2021

🐛 Bug Report

set testSequencer option into jest.config.js, which is a ts file and is not transformed by ts-jest

To Reproduce

Steps to reproduce the behavior:

  1. use ts-jest as preset and set testSequencer option as a ts file
  2. run jest and give error Cannot use import statement outside a module

Expected behavior

no error

Link to repo (highly encouraged)

Debug log:

# content of ts-jest.log :

envinfo

System:
    OS:
    Node version:

Npm packages:
    jest: 27.0.6
    ts-jest: 27.0.5
    typescript:4.3.5
    babel(optional):
@zyf0330 zyf0330 added Bug Report Needs Repo Need a minimium repository to reproduce the problem Needs Triage labels Aug 26, 2021
@ahnpnl
Copy link
Collaborator

ahnpnl commented Aug 26, 2021

Hi, Jest currently doesn't support testSequencer in TypeScript therefore ts-jest cannot transform it. Pls open a Jest issue to request for that feature.

@ahnpnl ahnpnl closed this as completed Aug 26, 2021
@ahnpnl ahnpnl added Not An Issue Not ts-jest issue Upstream Bug and removed Needs Repo Need a minimium repository to reproduce the problem Bug Report Needs Triage labels Aug 26, 2021
@zyf0330
Copy link
Author

zyf0330 commented Aug 26, 2021

jestjs/jest#8810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants