Skip to content

Commit

Permalink
docs: update transform regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl committed Feb 22, 2025
1 parent 8c91c60 commit 36e50e4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions website/docs/getting-started/presets.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ interface TsJestTransformerOptions {

export type DefaultPreset = {
transform: {
'^.+.tsx?$': ['ts-jest/legacy', TsJestTransformerOptions]
'^.+\\.tsx?$': ['ts-jest/legacy', TsJestTransformerOptions]
}
}
```
Expand Down Expand Up @@ -292,7 +292,7 @@ interface TsJestTransformerOptions {

export type JsWithTsPreset = {
transform: {
'^.+.[tj]sx?$': ['ts-jest', TsJestTransformerOptions]
'^.+\\.[tj]sx?$': ['ts-jest', TsJestTransformerOptions]
}
}
```
Expand Down Expand Up @@ -350,7 +350,7 @@ interface TsJestTransformerOptions {

export type JsWithTsPreset = {
transform: {
'^.+.[tj]sx?$': ['ts-jest/legacy', TsJestTransformerOptions]
'^.+\\.[tj]sx?$': ['ts-jest/legacy', TsJestTransformerOptions]
}
}
```
Expand Down Expand Up @@ -526,7 +526,7 @@ interface TsJestTransformerOptions {

export type JsWithBabelPreset = {
transform: {
'^.+.[tj]sx?$': ['ts-jest', TsJestTransformerOptions]
'^.+\\.[tj]sx?$': ['ts-jest', TsJestTransformerOptions]
}
}
```
Expand Down Expand Up @@ -586,7 +586,7 @@ interface TsJestTransformerOptions {

export type JsWithBabelPreset = {
transform: {
'^.+.[tj]sx?$': ['ts-jest/legacy', TsJestTransformerOptions]
'^.+\\.[tj]sx?$': ['ts-jest/legacy', TsJestTransformerOptions]
}
}
```
Expand Down Expand Up @@ -646,7 +646,7 @@ interface TsJestTransformerOptions {

export type JsWithBabelPreset = {
transform: {
'^.+.[tj]sx?$': ['ts-jest', TsJestTransformerOptions]
'^.+\\.[tj]sx?$': ['ts-jest', TsJestTransformerOptions]
}
}
```
Expand Down Expand Up @@ -706,7 +706,7 @@ interface TsJestTransformerOptions {

export type JsWithBabelPreset = {
transform: {
'^.+.[tj]sx?$': ['ts-jest/legacy', TsJestTransformerOptions]
'^.+\\.[tj]sx?$': ['ts-jest/legacy', TsJestTransformerOptions]
}
}
```
Expand Down
14 changes: 7 additions & 7 deletions website/versioned_docs/version-29.2/getting-started/presets.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ interface TsJestTransformerOptions {

export type DefaultPreset = {
transform: {
'^.+.tsx?$': ['ts-jest/legacy', TsJestTransformerOptions]
'^.+\\.tsx?$': ['ts-jest/legacy', TsJestTransformerOptions]
}
}
```
Expand Down Expand Up @@ -292,7 +292,7 @@ interface TsJestTransformerOptions {

export type JsWithTsPreset = {
transform: {
'^.+.[tj]sx?$': ['ts-jest', TsJestTransformerOptions]
'^.+\\.[tj]sx?$': ['ts-jest', TsJestTransformerOptions]
}
}
```
Expand Down Expand Up @@ -350,7 +350,7 @@ interface TsJestTransformerOptions {

export type JsWithTsPreset = {
transform: {
'^.+.[tj]sx?$': ['ts-jest/legacy', TsJestTransformerOptions]
'^.+\\.[tj]sx?$': ['ts-jest/legacy', TsJestTransformerOptions]
}
}
```
Expand Down Expand Up @@ -526,7 +526,7 @@ interface TsJestTransformerOptions {

export type JsWithBabelPreset = {
transform: {
'^.+.[tj]sx?$': ['ts-jest', TsJestTransformerOptions]
'^.+\\.[tj]sx?$': ['ts-jest', TsJestTransformerOptions]
}
}
```
Expand Down Expand Up @@ -586,7 +586,7 @@ interface TsJestTransformerOptions {

export type JsWithBabelPreset = {
transform: {
'^.+.[tj]sx?$': ['ts-jest/legacy', TsJestTransformerOptions]
'^.+\\.[tj]sx?$': ['ts-jest/legacy', TsJestTransformerOptions]
}
}
```
Expand Down Expand Up @@ -646,7 +646,7 @@ interface TsJestTransformerOptions {

export type JsWithBabelPreset = {
transform: {
'^.+.[tj]sx?$': ['ts-jest', TsJestTransformerOptions]
'^.+\\.[tj]sx?$': ['ts-jest', TsJestTransformerOptions]
}
}
```
Expand Down Expand Up @@ -706,7 +706,7 @@ interface TsJestTransformerOptions {

export type JsWithBabelPreset = {
transform: {
'^.+.[tj]sx?$': ['ts-jest/legacy', TsJestTransformerOptions]
'^.+\\.[tj]sx?$': ['ts-jest/legacy', TsJestTransformerOptions]
}
}
```
Expand Down

0 comments on commit 36e50e4

Please sign in to comment.