diff --git a/accessibility-checker-engine/karma.conf.js b/accessibility-checker-engine/karma.conf.js index cf81e9762..33e10f8c0 100644 --- a/accessibility-checker-engine/karma.conf.js +++ b/accessibility-checker-engine/karma.conf.js @@ -18,6 +18,9 @@ const path = require("path"); let webpackConfig = require("./webpack-debug.config"); delete webpackConfig.output; + webpackConfig.module.rules[0].options = { + configFile: "tsconfig-nodeclare.json" + } webpackConfig.module.rules.push({ test: /\.ts$/, exclude: [path.resolve(__dirname, "test")], diff --git a/accessibility-checker-engine/tsconfig-nodeclare.json b/accessibility-checker-engine/tsconfig-nodeclare.json new file mode 100644 index 000000000..da3c91af5 --- /dev/null +++ b/accessibility-checker-engine/tsconfig-nodeclare.json @@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "declaration": false, + "allowJs": false, + "target": "ES5", + "removeComments": false, + "noEmitOnError": true, + "sourceMap": true, + "moduleResolution": "node", + "alwaysStrict": true, + "experimentalDecorators": true, + "resolveJsonModule": true, + // "module": "commonjs", + "outDir": "dist", + "emitDecoratorMetadata": true, + "lib": [ + "dom", + "es7" + ] + }, + "include": [ + "src/**/*.ts" + ], + "exclude": [ + "node_modules", + "coverage", + ".nyc_output" + ] +} \ No newline at end of file diff --git a/accessibility-checker-engine/webpack-debug.config.js b/accessibility-checker-engine/webpack-debug.config.js index 0b6e21a1f..8fa114cab 100644 --- a/accessibility-checker-engine/webpack-debug.config.js +++ b/accessibility-checker-engine/webpack-debug.config.js @@ -25,7 +25,7 @@ module.exports = { module: { rules: [{ test: /\.tsx?$/, - use: 'ts-loader', + loader: "ts-loader", exclude: /node_modules/ }] }, diff --git a/accessibility-checker/test/webdriverio/.npmrc b/accessibility-checker/test/webdriverio/.npmrc new file mode 100644 index 000000000..97cd62d1d --- /dev/null +++ b/accessibility-checker/test/webdriverio/.npmrc @@ -0,0 +1 @@ +detect_chromedriver_version=true