Skip to content

Commit

Permalink
Fix: ClojureScript compiler can't find match? directive
Browse files Browse the repository at this point in the history
The namespace matcher-combinators.test must be required in namespaces using
"match?"
  • Loading branch information
ilmotta committed Dec 4, 2023
1 parent 82a1cf9 commit e2adeb7
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/status_im2/contexts/add_new_contact/events_test.cljs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(ns status-im2.contexts.add-new-contact.events-test
(:require
[cljs.test :refer-macros [deftest are]]
matcher-combinators.test
[status-im2.contexts.add-new-contact.events :as events]))

(def user-ukey
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(ns status-im2.contexts.chat.composer.link-preview.events-test
(:require
[cljs.test :refer [deftest is testing]]
matcher-combinators.test
[status-im2.contexts.chat.composer.link-preview.events :as events]))

(def url-github "https://github.com")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(ns status-im2.contexts.communities.discover.events-test
(:require
[cljs.test :refer-macros [deftest are]]
matcher-combinators.test
[status-im2.contexts.communities.discover.events :as events]))

(deftest rename-contract-community-key-test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns status-im2.contexts.communities.overview.events-test
(:require [cljs.test :refer [deftest is]]
matcher-combinators.test
[native-module.core :as native-module]
[status-im2.contexts.communities.overview.events :as sut]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(ns status-im2.contexts.shell.activity-center.events-test
(:require
[cljs.test :refer [deftest is testing]]
matcher-combinators.test
[status-im2.constants :as constants]
[status-im2.contexts.shell.activity-center.events :as events]
[status-im2.contexts.shell.activity-center.notification-types :as types]
Expand Down
1 change: 1 addition & 0 deletions src/status_im2/contexts/wallet/events_test.cljs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(ns status-im2.contexts.wallet.events-test
(:require
[cljs.test :refer-macros [deftest is testing]]
matcher-combinators.test
[status-im2.contexts.wallet.events :as events]))

(def address "0x2f88d65f3cb52605a54a833ae118fb1363acccd2")
Expand Down
4 changes: 0 additions & 4 deletions src/test_helpers/unit.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
layer."
(:require-macros test-helpers.unit)
(:require
;; We must require `matcher-combinators.test` at least once, and not in file
;; `status-im.test.runner`, otherwise make test will generate lots of
;; warnings about undeclared var `match?` and tests will fail.
matcher-combinators.test
[re-frame.core :as rf]
[re-frame.db :as rf-db]
[re-frame.events :as rf-events]
Expand Down

0 comments on commit e2adeb7

Please sign in to comment.