Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Fix stack traces not sourcemapped #2935

Merged
merged 2 commits into from Jan 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion karma.conf.js
Expand Up @@ -216,7 +216,9 @@ module.exports = function(config) {
if (!frames.length || frames[0].column === -1) return '\n' + msg + '\n';

const frame = frames[0];
const filePath = kl.lightCyan(frame.fileName.replace('webpack:///', ''));
const filePath = kl.lightCyan(
frame.fileName.replace(__dirname + '/', '')
);

const indentMatch = msg.match(/^(\s*)/);
const indent = indentMatch ? indentMatch[1] : ' ';
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -240,7 +240,7 @@
"karma-chai-sinon": "^0.1.5",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage": "^2.0.3",
"karma-esbuild": "^1.1.0",
"karma-esbuild": "^1.1.1",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-sauce-launcher": "^4.3.4",
Expand Down