We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
transform
29.7.0
npm i -D jest typescript ts-jest @types/jest
npx ts-jest config:init
Regex in jest.config.js escapes dot properly, e.g. '^.+\\.tsx?$'.
jest.config.js
'^.+\\.tsx?$'
Regex is not escaped properly: '^.+.tsx?$'
'^.+.tsx?$'
Regexes are defined here:
ts-jest/src/constants.ts
Lines 6 to 11 in 78c406c
Irrelevant for this issue
No response
System: OS: macOS 14.7 CPU: (8) arm64 Apple M1 Binaries: Node: 20.16.0 - /usr/local/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 10.8.1 - /usr/local/bin/npm npmPackages: jest: 29.7.0 => 29.7.0
The text was updated successfully, but these errors were encountered:
@nikwen
I noticed the same issue. The regex should properly escape dots.
Sorry, something went wrong.
fix: escape dot for TS_TRANSFORM_PATTERN regex
TS_TRANSFORM_PATTERN
57da5a8
Fixes #4579
80d3e4d
Thanks, @ahnpnl!
Successfully merging a pull request may close this issue.
Version
29.7.0
Steps to reproduce
npm i -D jest typescript ts-jest @types/jest
npx ts-jest config:init
Expected behavior
Regex in
jest.config.js
escapes dot properly, e.g.'^.+\\.tsx?$'
.Actual behavior
Regex is not escaped properly:
'^.+.tsx?$'
Regexes are defined here:
ts-jest/src/constants.ts
Lines 6 to 11 in 78c406c
Debug log
Irrelevant for this issue
Additional context
No response
Environment
System: OS: macOS 14.7 CPU: (8) arm64 Apple M1 Binaries: Node: 20.16.0 - /usr/local/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 10.8.1 - /usr/local/bin/npm npmPackages: jest: 29.7.0 => 29.7.0
The text was updated successfully, but these errors were encountered: