Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot testing #35

Closed
Magellol opened this issue Jan 22, 2022 · 0 comments · Fixed by #60
Closed

Snapshot testing #35

Magellol opened this issue Jan 22, 2022 · 0 comments · Fixed by #60

Comments

@Magellol
Copy link
Member

Magellol commented Jan 22, 2022

It might be a good idea to use snapshot testing to test the TS output. Something like https://hackage.haskell.org/package/hspec-golden-0.2.0.0/docs/Test-Hspec-Golden.html — I've given it a shot and it was easy to setup for a basic configuration. 922106f

Perhaps we could also take it a notch further and write a specific golden config to output .ts files and test them against the TS compiler or something to verify they are type safe? Perhaps prettify them as well somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant