Closed
Description
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:
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