You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/component-tests-overview.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,10 @@ Both of these links are showing it for React-Testing-Library (not Native) howeve
16
16
## Running the tests
17
17
To run these tests there are two methods.
18
18
19
-
`make component-test`
19
+
`make test-component`
20
20
setups and runs the test suite once.
21
21
22
-
`make component-test-watch`
22
+
`make test-component-watch`
23
23
setups and runs the test suite and watches for code changes will then retrigger the test suite.
24
24
25
25
## Writing Tests
@@ -38,7 +38,7 @@ There is a file of utility functions defined in "src/test_helpers/component.cljs
38
38
## Configuration
39
39
Status Mobile has a bespoke tech stack, as such there is more complexities to configuring the tests.
40
40
41
-
### Shadow-CLJS
41
+
### Shadow-CLJS
42
42
the configuration for compiling our tests are defined in the "shadow-cljs.edn" file.
43
43
The three main parts of this are
44
44
`:target :npm-module`
@@ -47,9 +47,9 @@ Needed for the configuration we are using
47
47
a vector of entry points for the test files.
48
48
and the `ns-regexp` to specify what tests to find. Since we have multiple forms of tests we decided that "component-spec" is the least likely to detect the wrong file type.
49
49
50
-
It's worth knowing that our tests are compiled to JS and then run in the temporary folder `component-tests`.
50
+
It's worth knowing that our tests are compiled to JS and then run in the temporary folder `component-tests`.
51
51
52
52
### Jest
53
53
There is also further configuration for Jest in "test/jest". There is a jest config file which has some mostly standard configuration pieces, where the tests live, what environment variables are set etc. This is documented by Jest here: https://jestjs.io/docs/configuration
54
54
55
-
There is also a setup file which is used to set some global and default values. Additionally this file is used to mock some of the react native (among other) dependencies
55
+
There is also a setup file which is used to set some global and default values. Additionally this file is used to mock some of the react native (among other) dependencies.
0 commit comments