From d900945b6dd0ed6adf8d90291598eb6bf9ec8768 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 24 Sep 2021 15:25:37 +1000 Subject: [PATCH] Add 'node' in test file names that only run on node --- karma.conf.js | 2 +- src/lib/{waku.spec.ts => waku.node.spec.ts} | 0 src/lib/waku_light_push/{index.spec.ts => index.node.spec.ts} | 0 src/lib/waku_message/{index.spec.ts => index.node.spec.ts} | 0 src/lib/waku_relay/{index.spec.ts => index.node.spec.ts} | 0 src/lib/waku_store/{index.spec.ts => index.node.spec.ts} | 0 src/test_utils/{log_file.spec.ts => log_file.node.spec.ts} | 0 src/test_utils/{nim_waku.spec.ts => nim_waku.node.spec.ts} | 0 8 files changed, 1 insertion(+), 1 deletion(-) rename src/lib/{waku.spec.ts => waku.node.spec.ts} (100%) rename src/lib/waku_light_push/{index.spec.ts => index.node.spec.ts} (100%) rename src/lib/waku_message/{index.spec.ts => index.node.spec.ts} (100%) rename src/lib/waku_relay/{index.spec.ts => index.node.spec.ts} (100%) rename src/lib/waku_store/{index.spec.ts => index.node.spec.ts} (100%) rename src/test_utils/{log_file.spec.ts => log_file.node.spec.ts} (100%) rename src/test_utils/{nim_waku.spec.ts => nim_waku.node.spec.ts} (100%) diff --git a/karma.conf.js b/karma.conf.js index fdceab411f..0176a32d10 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -17,7 +17,7 @@ module.exports = function (config) { singleRun: true, karmaTypescriptConfig: { bundlerOptions: { - entrypoints: /.*\.browser\.spec\.ts$/, + entrypoints: /^.*[^(node)]\.spec\.ts$/, }, coverageOptions: { instrumentation: false, diff --git a/src/lib/waku.spec.ts b/src/lib/waku.node.spec.ts similarity index 100% rename from src/lib/waku.spec.ts rename to src/lib/waku.node.spec.ts diff --git a/src/lib/waku_light_push/index.spec.ts b/src/lib/waku_light_push/index.node.spec.ts similarity index 100% rename from src/lib/waku_light_push/index.spec.ts rename to src/lib/waku_light_push/index.node.spec.ts diff --git a/src/lib/waku_message/index.spec.ts b/src/lib/waku_message/index.node.spec.ts similarity index 100% rename from src/lib/waku_message/index.spec.ts rename to src/lib/waku_message/index.node.spec.ts diff --git a/src/lib/waku_relay/index.spec.ts b/src/lib/waku_relay/index.node.spec.ts similarity index 100% rename from src/lib/waku_relay/index.spec.ts rename to src/lib/waku_relay/index.node.spec.ts diff --git a/src/lib/waku_store/index.spec.ts b/src/lib/waku_store/index.node.spec.ts similarity index 100% rename from src/lib/waku_store/index.spec.ts rename to src/lib/waku_store/index.node.spec.ts diff --git a/src/test_utils/log_file.spec.ts b/src/test_utils/log_file.node.spec.ts similarity index 100% rename from src/test_utils/log_file.spec.ts rename to src/test_utils/log_file.node.spec.ts diff --git a/src/test_utils/nim_waku.spec.ts b/src/test_utils/nim_waku.node.spec.ts similarity index 100% rename from src/test_utils/nim_waku.spec.ts rename to src/test_utils/nim_waku.node.spec.ts