Browse Source

test(rtc): update config

rcmerci 1 year ago
parent
commit
fa43327eff
2 changed files with 5 additions and 19 deletions
  1. 1 1
      karma.conf.js
  2. 4 18
      shadow-cljs.edn

+ 1 - 1
karma.conf.js

@@ -2,7 +2,7 @@ module.exports = function (config) {
     config.set({
         browsers: ['Chrome'],
         // The directory where the output file lives
-        basePath: 'static/rtc-e2e-test-karma',
+        basePath: 'static/rtc-e2e-test',
         // The file itself
         files: ['main.js'],
         frameworks: ['cljs-test'],

+ 4 - 18
shadow-cljs.edn

@@ -89,26 +89,12 @@
          :compiler-options {:static-fns false}
          :main frontend.test.frontend-node-test-runner/main}
 
-  :rtc-e2e-test {:target :browser-test
-                 :test-dir "static/rtc-e2e-test"
+  :rtc-e2e-test {:target :karma
                  :closure-defines {frontend.worker.rtc.const/RTC-E2E-TEST* true}
-                 :devtools {:enabled false}
-                 :compiler-options {:infer-externs      :auto
-                                    :output-feature-set :es-next-in
-                                    :source-map true
-                                    :externs ["datascript/externs.js"
-                                              "externs.js"]
+                 :output-to "static/rtc-e2e-test/main.js"
+                 :compiler-options {:source-map true
                                     :warnings {:fn-deprecated false
-                                               :redef false}
-                                    :cross-chunk-method-motion false
-                                    :static-fns false}}
-  :rtc-e2e-test-karma {:target :karma
-                       :closure-defines {frontend.worker.rtc.const/RTC-E2E-TEST* true}
-                       :output-to "static/rtc-e2e-test-karma/main.js"
-                       :compiler-options {:source-map true
-                                          :warnings {:fn-deprecated false
-                                                     :redef false}}}
-
+                                               :redef false}}}
 
   :gen-malli-kondo-config {:target :node-script
                            :closure-defines {frontend.util/NODETEST true}