kulshekhar/ts-jest

[Bug]: wrong RegExp explanations in docs

uiolee opened this issue · 1 comments

Version

latest branch main 70d48be61a9dd641e75bd220ffb0f0488bd5fac7

Steps to reproduce

https://kulshekhar.github.io/ts-jest/docs/getting-started/options#introduction

Expected behavior

correct comment

Actual behavior

// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`

this comment is wrong.

regexp [tj]sx? is matched ts,js,tsx,jsx
m?[tj]sx? matched ts,js,tsx,jsx,mts,mjs,mtsx,mjsx

Debug log

null

Additional context

No response

Environment

null

related pr: #3834

This error appears in multiple places