Browse Source

test(rtc): custom 'testvar' to testsuits

rcmerci 1 year ago
parent
commit
be8593f2c5
2 changed files with 5 additions and 1 deletions
  1. 2 1
      karma.conf.js
  2. 3 0
      src/rtc_e2e_test/basic_edits_test.cljs

+ 2 - 1
karma.conf.js

@@ -11,7 +11,8 @@ module.exports = function (config) {
         logLevel: config.LOG_INFO,
         client: {
             args: ["shadow.test.karma.init"],
-            singleRun: true
+            singleRun: true,
+	    testvar: config.testvar
         }
     })
 };

+ 3 - 0
src/rtc_e2e_test/basic_edits_test.cljs

@@ -11,6 +11,9 @@
             [meander.epsilon :as me]
             [missionary.core :as m]))
 
+(when (exists? js/__karma__)
+  (prn :config.testvar js/__karma__.config.testvar))
+
 (t/use-fixtures :once
   fixture/install-some-consts
   fixture/install-example-db-fixture