![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
jasmine-ts-console-reporter
Advanced tools
A Jasmine Console Reporter that remaps Typescript files. This will use source maps to remap the error stack file paths and line numbers to the source typescript files.
npm i jasmine-ts-console-reporter
Create a helper file for jasmine, eg specs/helpers.js
const TSConsoleReporter = require('jasmine-ts-console-reporter');
jasmine.getEnv().clearReporters(); // Clear default console reporter
jasmine.getEnv().addReporter(new TSConsoleReporter());
For more intricate usage scenarios, like using istanbul where the sourcemaps for instumented files are held in memory, you can locate the sourcemaps via a callback:
new TSConsoleReporter({
sourceMapProvider: (fileName) => {
const map = fetchMySourceMap(fileName);
return map ? { map } : null; // Return null if no source map is found.
}
});
You can provide additional filtering for the stack trace (in addition to the built in exclusion of jasmine sources), this is useful for when you are using test frameworks that show up in the stack trace like typemoq.
// regexp
new TSConsoleReporter({
filter: /^c:\/.*$/
});
// or glob
new TSConsoleReporter({
filter: '**/ignored/**/*.ts'
});
Load the helper file in Jasmine, eg on node jasmine.json:
{
"helpers": [
"specs/helpers.js",
]
}
FAQs
A Jasmine Console Reporter that remaps Typescript files.
The npm package jasmine-ts-console-reporter receives a total of 1,610 weekly downloads. As such, jasmine-ts-console-reporter popularity was classified as popular.
We found that jasmine-ts-console-reporter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.