test: tsconfig file for karma with esnext enabled

This commit is contained in:
fryorcraken.eth 2022-08-24 16:10:13 +10:00
parent b984888993
commit f4da5a8266
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
2 changed files with 11 additions and 1 deletions

View File

@ -23,7 +23,10 @@ module.exports = function (config) {
rules: [ rules: [
{ {
test: /\.(js|tsx?)$/, test: /\.(js|tsx?)$/,
use: "ts-loader", use: [{
loader: 'ts-loader',
options: { configFile: 'tsconfig.karma.json' }
}],
exclude: /(node_modules)|(node\.spec\.ts)/, exclude: /(node_modules)|(node\.spec\.ts)/,
}, },
{ {
@ -44,6 +47,7 @@ module.exports = function (config) {
extensions: [".ts", ".js"], extensions: [".ts", ".js"],
}, },
stats: { warnings: false }, stats: { warnings: false },
devtool: 'inline-source-map'
}, },
}); });
}; };

6
tsconfig.karma.json Normal file
View File

@ -0,0 +1,6 @@
{
"extends": "./tsconfig.dev",
"compilerOptions": {
"noEmit": false
}
}