From f4da5a8266527d43483adae73727c1492f038cb2 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Wed, 24 Aug 2022 16:10:13 +1000 Subject: [PATCH] test: tsconfig file for karma with esnext enabled --- karma.conf.cjs | 6 +++++- tsconfig.karma.json | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tsconfig.karma.json diff --git a/karma.conf.cjs b/karma.conf.cjs index 192cea1200..d72f88378a 100644 --- a/karma.conf.cjs +++ b/karma.conf.cjs @@ -23,7 +23,10 @@ module.exports = function (config) { rules: [ { test: /\.(js|tsx?)$/, - use: "ts-loader", + use: [{ + loader: 'ts-loader', + options: { configFile: 'tsconfig.karma.json' } + }], exclude: /(node_modules)|(node\.spec\.ts)/, }, { @@ -44,6 +47,7 @@ module.exports = function (config) { extensions: [".ts", ".js"], }, stats: { warnings: false }, + devtool: 'inline-source-map' }, }); }; diff --git a/tsconfig.karma.json b/tsconfig.karma.json new file mode 100644 index 0000000000..c540c783ff --- /dev/null +++ b/tsconfig.karma.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.dev", + "compilerOptions": { + "noEmit": false + } +}