Skip to content

Commit

Permalink
Prepare new release (#25)
Browse files Browse the repository at this point in the history
* Depend on purescript-specs v4

* Use spago and specs v4 in README
  • Loading branch information
i-am-the-slime authored Dec 31, 2020
1 parent d4379a7 commit c4d6cb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ It only works for NodeJS environments, currently.
## Usage

```bash
bower install --save-dev purescript-spec-discovery
spago install spec-discovery
```

For `purescript-spec` `>= 4.0.0`:

```purescript
module Test.Main where
Expand All @@ -30,23 +28,6 @@ main = launchAff_ do
runSpec [consoleReporter] specs
```

For older versions of `purescript-spec`:

```purescript
module Test.Main where
import Prelude
import Effect (Effect)
import Test.Spec.Discovery (discover)
import Test.Spec.Reporter.Console (consoleReporter)
import Test.Spec.Runner (run)
main :: Effect Unit
main = do
specs <- discover """My\.Package\..*Spec"""
run [consoleReporter] specs
```

All modules that match the regular expression, **and have a definition
`spec :: Spec Unit`**, will be included and run.

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"purescript-prelude": "^4.0.0",
"purescript-effect": "^2.0.0",
"purescript-arrays": "^5.0.0",
"purescript-spec": "#>=3.1.0 <5.0.0",
"purescript-spec": "^4.0.0",
"purescript-node-fs": "^5.0.0"
}
}

0 comments on commit c4d6cb0

Please sign in to comment.