Skip to content

Commit

Permalink
Add bs-jest
Browse files Browse the repository at this point in the history
  • Loading branch information
abadi199 committed Feb 4, 2020
1 parent 5661d2c commit 91e0bcd
Show file tree
Hide file tree
Showing 7 changed files with 1,605 additions and 40 deletions.
7 changes: 7 additions & 0 deletions __tests__/Word_test.re
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
open Jest;

describe("Expect", () => {
Expect.(test("toBe", () =>
expect(1 + 2) |> toBe(3)
))
});
13 changes: 8 additions & 5 deletions bsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
"reason": {
"react-jsx": 3
},
"sources": {
"dir": "src",
"subdirs": true
},
"sources": [
{
"dir": "src",
"subdirs": true
},
{ "dir": "__tests__", "subdirs": true }
],
"package-specs": {
"module": "commonjs",
"in-source": true
},
"suffix": ".bs.js",
"bs-dependencies": ["reason-react"],
"bs-dependencies": ["reason-react", "@glennsl/bs-jest"],
"warnings": {
"error": "+101"
},
Expand Down
Loading

0 comments on commit 91e0bcd

Please sign in to comment.