Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1834

@call decorator for callable objects?

$
0
0

This is what I did in rescript-bun - a regular describe function, and a Describe module with skipIf: https://github.com/zth/rescript-bun/blob/main/src/Test.res#L53-L105

describe("whatever", () => { ... })

vs

Describe.skipIf(true, () => { ... })

Makes it pretty easy to work with, just capitalize describe and add skipIf. Not as discoverable as describe.skipIf would be though of course.


Viewing all articles
Browse latest Browse all 1834

Trending Articles