Closed evangeloszotos closed 2 years ago
Can you please share your tsconfig.json
?
tsconfig.json
{
"compilerOptions": {
"jsx": "react",
"esModuleInterop": true,
"module": "commonjs",
"target": "es2017",
"strict": true,
"sourceMap": false,
"declaration": true,
"resolveJsonModule": true,
"noImplicitAny": false,
"allowJs": true,
"outDir": "./dist"
},
"include": ["src/**/*"],
}
The reason that the indicators are not working for you is that you have explicitly set "sourceMap": false
in your tsconfig.json
.
Wallaby (and jest/ts-jest) need this value to be true to provide correct line mappings for errors and code-coverage.
You should be able to omit this setting. By default when compiling with TypeScript, sourceMap
is set to false
. Internally ts-jest
will set sourceMap
to true
if it is not explicitly set in your tsconfig.json
as it is normally required in the context of running tests.
Issue description
The green squares are not aligned correctly with the line numbers. The bar with "Debug | View Story | Profile | Focus" is not displayed at the right place, when using "jest" with "ts-jest" on TypeScript test files. It works fine on Javascript files.
Also, the "Copy Value" feature is not functioning properly, wether it does not work at all, or it copies an unexpected value.
I reproduced the issue on jest versions >= 28
See Screenshot: The .js and the .ts files should look the same, but they dont.
Wallaby diagnostics report