11# purescript-spec-discovery
22
33purescript-spec-discovery is an extension to
4- [ purescript-spec] ( https://github.com/owickstrom /purescript-spec ) that finds
4+ [ purescript-spec] ( https://github.com/purescript-spec /purescript-spec ) that finds
55specs automatically, given a regular expression pattern.
66
77It only works for NodeJS environments, currently.
@@ -22,12 +22,12 @@ import Effect (Effect)
2222import Effect.Aff (launchAff_)
2323import Test.Spec.Discovery (discover)
2424import Test.Spec.Reporter.Console (consoleReporter)
25- import Test.Spec.Runner (run )
25+ import Test.Spec.Runner (runSpec )
2626
2727main :: Effect Unit
2828main = launchAff_ do
2929 specs <- discover """My\.Package\..*Spec"""
30- run [consoleReporter] specs
30+ runSpec [consoleReporter] specs
3131```
3232
3333For older versions of ` purescript-spec ` :
@@ -39,15 +39,15 @@ import Prelude
3939import Effect (Effect)
4040import Test.Spec.Discovery (discover)
4141import Test.Spec.Reporter.Console (consoleReporter)
42- import Test.Spec.Runner (run )
42+ import Test.Spec.Runner (runSpec )
4343
4444main :: Effect Unit
4545main = do
4646 specs <- discover """My\.Package\..*Spec"""
47- run [consoleReporter] specs
47+ runSpec [consoleReporter] specs
4848```
4949
50- All modules that match the regular expression, ** and has a definition
50+ All modules that match the regular expression, ** and have a definition
5151` spec :: Spec Unit ` ** , will be included and run.
5252
5353## Documentation
@@ -57,7 +57,7 @@ Documentation is publised on [Pursuit](https://pursuit.purescript.org/packages/p
5757## Contribute
5858
5959If you have any issues or possible improvements please file them as
60- [ GitHub Issues] ( https://github.com/owickstrom /purescript-spec-mocha /issues ) .
60+ [ GitHub Issues] ( https://github.com/purescript-spec /purescript-spec-discovery /issues ) .
6161Pull requests requests are encouraged.
6262
6363## License
0 commit comments