Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #50 from sothebys/update-bucklescript-tests
Updating BuckleScript tests suite
  • Loading branch information
baransu committed Dec 3, 2019
2 parents 6e1f30c + a89d58d commit 19db453
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
15 changes: 10 additions & 5 deletions README.md
Expand Up @@ -254,10 +254,10 @@ type resultType = MyQuery.t;

# Troubleshooting

### "Type ... doesn't have any fields"
### "Type ... doesn't have any fields"


Sometimes when working with union types you'll get the following error.
Sometimes when working with union types you'll get the following error.
```
Fatal error: exception Graphql_ppx_base__Schema.Invalid_type("Type IssueTimelineItems doesn't have any fields")
```
Expand Down Expand Up @@ -327,9 +327,14 @@ esy dune build -p graphql_ppx
### BuckleScript

```
cd tests
yarn
yarn test
cd tests_bucklescript
node run.js bsb5
```

If you're using bs-platform 6.x
```
cd tests_bucklescript
node run.js bsb6
```

### Native
Expand Down
5 changes: 1 addition & 4 deletions tests_bucklescript/bsb5/bsconfig.json
@@ -1,15 +1,12 @@
{
"name": "tests_bucklescript",
"reason": {
"react-jsx": 3
},
"sources": ["__tests__"],
"ppx-flags": ["../_build/default/src/bucklescript_bin/bin.exe"],
"bs-dependencies": ["@glennsl/bs-jest"],
"refmt": 3,
"bsc-flags": ["-bs-super-errors"],
"warnings": {
"number": "+A-48",
"error": "+A-3-44"
"error": "+A-3-32-44"
}
}
5 changes: 1 addition & 4 deletions tests_bucklescript/bsb6/bsconfig.json
@@ -1,15 +1,12 @@
{
"name": "tests_bucklescript",
"reason": {
"react-jsx": 3
},
"sources": ["__tests__"],
"ppx-flags": ["../_build/default/src/bucklescript_bin/bin.exe"],
"bs-dependencies": ["@glennsl/bs-jest"],
"refmt": 3,
"bsc-flags": ["-bs-super-errors"],
"warnings": {
"number": "+A-48",
"error": "+A-3-44"
"error": "+A-3-32-44"
}
}

0 comments on commit 19db453

Please sign in to comment.