Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Read tsconfig content for jest ts-transform correctly #99

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/react-scripts/config/jest/typescriptTransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ let compilerConfig = {

if (fs.existsSync(tsconfigPath)) {
try {
const tsconfig = tsc.readConfigFile(tsconfigPath).config;
const tsconfig = tsc.readConfigFile(tsconfigPath, name =>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tsc.sys.readFile(name)).config;

if (tsconfig && tsconfig.compilerOptions) {
compilerConfig = tsconfig.compilerOptions;
Expand Down