diff --git a/mocha-config/puppeteer-unit-tests.js b/mocha-config/puppeteer-unit-tests.js index cb1bb7ca..be39c5b9 100644 --- a/mocha-config/puppeteer-unit-tests.js +++ b/mocha-config/puppeteer-unit-tests.js @@ -18,7 +18,11 @@ const base = require('./base'); module.exports = { ...base, - require: ['./test/mocha-ts-require', './test/mocha-utils.ts'], + require: [ + './test/mocha-ts-require', + './test/mocha-utils.ts', + 'source-map-support/register', + ], spec: 'test/*.spec.ts', extension: ['js', 'ts'], retries: process.env.CI ? 2 : 0, diff --git a/package.json b/package.json index 18ff4d40..3c5bc1c0 100644 --- a/package.json +++ b/package.json @@ -96,6 +96,7 @@ "pngjs": "^5.0.0", "prettier": "^2.1.2", "sinon": "^9.0.2", + "source-map-support": "^0.5.19", "standard-version": "^9.0.0", "text-diff": "^1.0.1", "ts-node": "^9.0.0", diff --git a/tsconfig.base.json b/tsconfig.base.json index 97d1cd06..8e2d98cf 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -8,6 +8,7 @@ "module": "ESNext", "declaration": true, "declarationMap": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "sourceMap": true, } }