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.
99## Usage
1010
1111``` bash
12- bower install --save-dev purescript- spec-discovery
12+ spago install spec-discovery
1313```
1414
15- For ` purescript-spec ` ` >= 4.0.0 ` :
16-
1715``` purescript
1816module Test.Main where
1917
@@ -30,23 +28,6 @@ main = launchAff_ do
3028 runSpec [consoleReporter] specs
3129```
3230
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-
5031All modules that match the regular expression, ** and have a definition
5132` spec :: Spec Unit ` ** , will be included and run.
5233
Original file line number Diff line number Diff line change 1515 "purescript-prelude" : " ^4.0.0" ,
1616 "purescript-effect" : " ^2.0.0" ,
1717 "purescript-arrays" : " ^5.0.0" ,
18- "purescript-spec" : " #>=3.1.0 <5 .0.0" ,
18+ "purescript-spec" : " ^4 .0.0" ,
1919 "purescript-node-fs" : " ^5.0.0"
2020 }
2121}
You can’t perform that action at this time.
0 commit comments