Closed mbirkegaard closed 3 years ago
Hey. They should work (they also run on the CI). Can you give more info on what is failing? Did you run npm install
in the tests_bucklescript
folder?
The tests fail as no code is generated and the snapshot is compared to the empty line and fails. That's the case for every single test. I've copied one of the test outputs below.
I was at first only following the instructions in the docs. Running
npm install -g esy@latest
esy install
esy build
esy test
Running npm install
in tests_bucklescript
makes a whole bunch of changes to tests_bucklescript/package-lock.json
(--- a/tests_bucklescript/package-lock.json +++ b/tests_bucklescript/package-lock.json @@ -1,440 +1,9 @@
) but tests still fail in exactly the same way.
I'm probably asking for the same thing as @amsross does in https://github.com/reasonml-community/graphql-ppx/issues/203#issuecomment-694230554: An almost assumption free guide spelling out exactly how to get started contributing
@jfrolich Is there anything obvious I'm doing wrong?
Hi @jfrolich I tried running the tests for bucklescript following the docs. All the tests failed. I am using ubuntu.
Hey. They should work (they also run on the CI). Can you give more info on what is failing? Did you run
npm install
in thetests_bucklescript
folder?
Hi @jfrolich . The issue is we had to do npm install
in the root folder
It looks like there's a step missing in https://beta.graphql-ppx.com/docs/contributing/.
Running
esy test
runs the tests, but they all fail. The tests expect the snapshot (of course) but receive an empty string, so it seems like the bucklescript tests aren't being compiled. Am I missing something?I have gotten the whole build to work previously but I think that's at least 7-8 months ago with the (now outdated) contribution instructions that used to be in the README
The native tests (
esy dune runtest -f
) all succeed.