Skip to content

Commit

Permalink
feat(config): allow disable sourcemap (#2544)
Browse files Browse the repository at this point in the history
BREAKING CHANGE
By default, `ts-jest` will use `sourceMap` option from your `tsconfig`. If users want to have sourcemap on, they need to either remove `sourceMap` or set `sourceMap: true` in your `tsconfig`
  • Loading branch information
ahnpnl authored Apr 29, 2021
1 parent 50b2173 commit 47da6ad
Show file tree
Hide file tree
Showing 25 changed files with 566 additions and 563 deletions.
2 changes: 1 addition & 1 deletion e2e/__external-repos__/custom-typings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"test": "jest"
},
"devDependencies": {
"@types/jest": "^26.0.22",
"@types/jest": "^26.0.23",
"@types/jquery": "^3.5.5",
"jest": "^27.0.0-next.8",
"jquery": "^3.6.0",
Expand Down
8 changes: 4 additions & 4 deletions e2e/__external-repos__/custom-typings/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -688,10 +688,10 @@
dependencies:
"@types/istanbul-lib-report" "*"

"@types/jest@^26.0.22":
version "26.0.22"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.22.tgz#8308a1debdf1b807aa47be2838acdcd91e88fbe6"
integrity sha512-eeWwWjlqxvBxc4oQdkueW5OF/gtfSceKk4OnOAGlUSwS/liBRtZppbJuz1YkgbrbfGOoeBHun9fOvXnjNwrSOw==
"@types/jest@^26.0.23":
version "26.0.23"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.23.tgz#a1b7eab3c503b80451d019efb588ec63522ee4e7"
integrity sha512-ZHLmWMJ9jJ9PTiT58juykZpL7KjwJywFN3Rr2pTSkyQfydf/rk22yS7W8p5DaVUMQ2BQC7oYiU3FjbTM/mYrOA==
dependencies:
jest-diff "^26.0.0"
pretty-format "^26.0.0"
Expand Down
2 changes: 1 addition & 1 deletion e2e/__external-repos__/memory-usage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@nestjs/core": "^7.6.15",
"@nestjs/platform-express": "^7.6.15",
"@nestjs/testing": "^7.6.15",
"@types/jest": "^26.0.22",
"@types/jest": "^26.0.23",
"@types/lodash": "^4.14.168",
"jest": "^27.0.0-next.8",
"lodash": "^4.17.21",
Expand Down
8 changes: 4 additions & 4 deletions e2e/__external-repos__/memory-usage/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -669,10 +669,10 @@
dependencies:
"@types/istanbul-lib-report" "*"

"@types/jest@^26.0.22":
version "26.0.22"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.22.tgz#8308a1debdf1b807aa47be2838acdcd91e88fbe6"
integrity sha512-eeWwWjlqxvBxc4oQdkueW5OF/gtfSceKk4OnOAGlUSwS/liBRtZppbJuz1YkgbrbfGOoeBHun9fOvXnjNwrSOw==
"@types/jest@^26.0.23":
version "26.0.23"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.23.tgz#a1b7eab3c503b80451d019efb588ec63522ee4e7"
integrity sha512-ZHLmWMJ9jJ9PTiT58juykZpL7KjwJywFN3Rr2pTSkyQfydf/rk22yS7W8p5DaVUMQ2BQC7oYiU3FjbTM/mYrOA==
dependencies:
jest-diff "^26.0.0"
pretty-format "^26.0.0"
Expand Down
2 changes: 1 addition & 1 deletion e2e/__external-repos__/path-mapping/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ts-jest-example",
"private": true,
"devDependencies": {
"@types/jest": "^26.0.22",
"@types/jest": "^26.0.23",
"jest": "^27.0.0-next.8",
"typescript": "^4.2.4"
},
Expand Down
8 changes: 4 additions & 4 deletions e2e/__external-repos__/path-mapping/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -629,10 +629,10 @@
dependencies:
"@types/istanbul-lib-report" "*"

"@types/jest@^26.0.22":
version "26.0.22"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.22.tgz#8308a1debdf1b807aa47be2838acdcd91e88fbe6"
integrity sha512-eeWwWjlqxvBxc4oQdkueW5OF/gtfSceKk4OnOAGlUSwS/liBRtZppbJuz1YkgbrbfGOoeBHun9fOvXnjNwrSOw==
"@types/jest@^26.0.23":
version "26.0.23"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.23.tgz#a1b7eab3c503b80451d019efb588ec63522ee4e7"
integrity sha512-ZHLmWMJ9jJ9PTiT58juykZpL7KjwJywFN3Rr2pTSkyQfydf/rk22yS7W8p5DaVUMQ2BQC7oYiU3FjbTM/mYrOA==
dependencies:
jest-diff "^26.0.0"
pretty-format "^26.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"test": "jest"
},
"devDependencies": {
"@types/jest": "^26.0.22",
"@types/jest": "^26.0.23",
"@types/lodash": "^4.14.168",
"jest": "^27.0.0-next.8",
"typescript": "^4.2.4"
Expand Down
8 changes: 4 additions & 4 deletions e2e/__external-repos__/simple-project-references/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -688,10 +688,10 @@
dependencies:
"@types/istanbul-lib-report" "*"

"@types/jest@^26.0.22":
version "26.0.22"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.22.tgz#8308a1debdf1b807aa47be2838acdcd91e88fbe6"
integrity sha512-eeWwWjlqxvBxc4oQdkueW5OF/gtfSceKk4OnOAGlUSwS/liBRtZppbJuz1YkgbrbfGOoeBHun9fOvXnjNwrSOw==
"@types/jest@^26.0.23":
version "26.0.23"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.23.tgz#a1b7eab3c503b80451d019efb588ec63522ee4e7"
integrity sha512-ZHLmWMJ9jJ9PTiT58juykZpL7KjwJywFN3Rr2pTSkyQfydf/rk22yS7W8p5DaVUMQ2BQC7oYiU3FjbTM/mYrOA==
dependencies:
jest-diff "^26.0.0"
pretty-format "^26.0.0"
Expand Down
2 changes: 1 addition & 1 deletion e2e/__external-repos__/simple/with-dependency/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}
},
"devDependencies": {
"@types/jest": "^26.0.22",
"@types/jest": "^26.0.23",
"dependency": "file:../dependency",
"jest": "^27.0.0-next.8",
"typescript": "^4.2.4"
Expand Down
8 changes: 4 additions & 4 deletions e2e/__external-repos__/simple/with-dependency/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -688,10 +688,10 @@
dependencies:
"@types/istanbul-lib-report" "*"

"@types/jest@^26.0.22":
version "26.0.22"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.22.tgz#8308a1debdf1b807aa47be2838acdcd91e88fbe6"
integrity sha512-eeWwWjlqxvBxc4oQdkueW5OF/gtfSceKk4OnOAGlUSwS/liBRtZppbJuz1YkgbrbfGOoeBHun9fOvXnjNwrSOw==
"@types/jest@^26.0.23":
version "26.0.23"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.23.tgz#a1b7eab3c503b80451d019efb588ec63522ee4e7"
integrity sha512-ZHLmWMJ9jJ9PTiT58juykZpL7KjwJywFN3Rr2pTSkyQfydf/rk22yS7W8p5DaVUMQ2BQC7oYiU3FjbTM/mYrOA==
dependencies:
jest-diff "^26.0.0"
pretty-format "^26.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test": "jest --no-cache"
},
"devDependencies": {
"@types/jest": "^26.0.22",
"@types/jest": "^26.0.23",
"jest": "^27.0.0-next.8",
"typescript": "^4.2.4"
},
Expand Down
8 changes: 4 additions & 4 deletions e2e/__external-repos__/yarn-workspace-composite/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -688,10 +688,10 @@
dependencies:
"@types/istanbul-lib-report" "*"

"@types/jest@^26.0.22":
version "26.0.22"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.22.tgz#8308a1debdf1b807aa47be2838acdcd91e88fbe6"
integrity sha512-eeWwWjlqxvBxc4oQdkueW5OF/gtfSceKk4OnOAGlUSwS/liBRtZppbJuz1YkgbrbfGOoeBHun9fOvXnjNwrSOw==
"@types/jest@^26.0.23":
version "26.0.23"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.23.tgz#a1b7eab3c503b80451d019efb588ec63522ee4e7"
integrity sha512-ZHLmWMJ9jJ9PTiT58juykZpL7KjwJywFN3Rr2pTSkyQfydf/rk22yS7W8p5DaVUMQ2BQC7oYiU3FjbTM/mYrOA==
dependencies:
jest-diff "^26.0.0"
pretty-format "^26.0.0"
Expand Down
Loading

0 comments on commit 47da6ad

Please sign in to comment.