ZenVoich / test

Motoko testing library to run tests with mops
MIT License
6 stars 3 forks source link

Updating the base library dependency version #1

Closed Gekctek closed 1 year ago

Gekctek commented 1 year ago

@ZenVoich i cant run my tests because i am using the let-else syntax and the base library dependency is not up to date.

ZenVoich commented 1 year ago

i cant run my tests because i am using the let-else syntax

I think the problem in moc version. Mops uses moc from dfx or DFX_MOC_PATH env var if provided(since 0.11.0).

I'd recommend to use dfx version 0.14.0-beta.1 Or to use mocv (just added support to mops cli v0.11.0)

To use mocv in workflow need some extra setup: https://github.com/ZenVoich/mops/blob/main/.github/workflows/ci.yaml#L10-L11 https://github.com/ZenVoich/mops/blob/main/.github/workflows/ci.yaml#L26-L28

the base library dependency is not up to date

If you specify newer base library version in your mops.toml - that version will be used. You can check which version resolved via mops sources

Gekctek commented 1 year ago

Lol. I was pretty brain dead yesterday. Thanks for the help