File tree Expand file tree Collapse file tree 2 files changed +2
-21
lines changed Expand file tree Collapse file tree 2 files changed +2
-21
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,9 @@ It only works for NodeJS environments, currently.
9
9
## Usage
10
10
11
11
``` bash
12
- bower install --save-dev purescript- spec-discovery
12
+ spago install spec-discovery
13
13
```
14
14
15
- For ` purescript-spec ` ` >= 4.0.0 ` :
16
-
17
15
``` purescript
18
16
module Test.Main where
19
17
@@ -30,23 +28,6 @@ main = launchAff_ do
30
28
runSpec [consoleReporter] specs
31
29
```
32
30
33
- For older versions of ` purescript-spec ` :
34
-
35
- ``` purescript
36
- module Test.Main where
37
-
38
- import Prelude
39
- import Effect (Effect)
40
- import Test.Spec.Discovery (discover)
41
- import Test.Spec.Reporter.Console (consoleReporter)
42
- import Test.Spec.Runner (run)
43
-
44
- main :: Effect Unit
45
- main = do
46
- specs <- discover """My\.Package\..*Spec"""
47
- run [consoleReporter] specs
48
- ```
49
-
50
31
All modules that match the regular expression, ** and have a definition
51
32
` spec :: Spec Unit ` ** , will be included and run.
52
33
Original file line number Diff line number Diff line change 15
15
"purescript-prelude" : " ^4.0.0" ,
16
16
"purescript-effect" : " ^2.0.0" ,
17
17
"purescript-arrays" : " ^5.0.0" ,
18
- "purescript-spec" : " #>=3.1.0 <5 .0.0" ,
18
+ "purescript-spec" : " ^4 .0.0" ,
19
19
"purescript-node-fs" : " ^5.0.0"
20
20
}
21
21
}
You can’t perform that action at this time.
0 commit comments