From e12caf20aa1e3813f60af916dc5d6e707567d612 Mon Sep 17 00:00:00 2001 From: Daniel Smilkov Date: Thu, 15 Aug 2019 11:02:48 -0400 Subject: [PATCH] save --- tfjs-webgpu/karma.conf.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tfjs-webgpu/karma.conf.js b/tfjs-webgpu/karma.conf.js index 442ddebcc9d..f635f6b3456 100644 --- a/tfjs-webgpu/karma.conf.js +++ b/tfjs-webgpu/karma.conf.js @@ -19,7 +19,12 @@ const karmaTypescriptConfig = { tsconfig: 'tsconfig.json', // Disable coverage reports and instrumentation by default for tests coverageOptions: {instrumentation: false}, - reports: {} + reports: {}, + bundlerOptions: { + // worker_node_test in tfjs-core contains a conditional require statement + // that confuses the bundler of karma-typescript. + ignore: ['./worker_node_test'] + } }; module.exports = function(config) {