bloodyowl / rescript-test

A lightweight test framework for ReScript
https://bloodyowl.github.io/rescript-test/
MIT License
78 stars 9 forks source link

Can you remove the compiler from test dependencies? #13

Open danielo515 opened 1 year ago

danielo515 commented 1 year ago

Hello. Thank you for this nice rescript implementation of tests.

Would you mind removing the dependency on the compiler? It is making our compilation to fail:

https://github.com/bloodyowl/rescript-test/blob/be462e6f6f553407eee56ae9d1ab160af26ff536/package.json#LL23-L26C5

We get the following error when compiling fresh (CI):

Dependency on rescript-test
Different compiler version: clean current repo
File "bsconfig.json", line 1
Error: package rescript-js not found or built 

Not sure if the problem comes from rescript-js or from just rescript compiler. But the thing is that it fails because it cleans the repo.

Or do you have experience addressing this kind of issues? If so, I will be happy to know how.

ozanmakes commented 1 year ago

The error about "Different compiler version" was misleading, main issue is rescript-js not being installed after running yarn add rescript-test. I made a PR #14