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

Can the expect API be used in a non-test environment? #350

Open
yjhmelody opened this issue May 10, 2021 · 3 comments
Open

Can the expect API be used in a non-test environment? #350

yjhmelody opened this issue May 10, 2021 · 3 comments
Assignees
Labels
Question ❔ Further information is requested

Comments

@yjhmelody
Copy link

Can the expect API be used in a non-test environment? Because wasm has many different environments (with various host functions), sometimes the unit test environment cannot test some wasm environments, but these APIs of as-pect are very useful for testing. Can they be used as ordinary Library introduction?

@jtenner
Copy link
Contributor

jtenner commented May 11, 2021

No. They are coupled to the host at the moment. The reason why is because the Reflect api has to tell the host the shape of the expected and actual values before performing assertions. However, it's possible to create a version that simply performs a set of assertions. I can help with this :)

@jtenner jtenner added the Question ❔ Further information is requested label May 11, 2021
@jtenner jtenner self-assigned this May 11, 2021
@jtenner
Copy link
Contributor

jtenner commented May 13, 2021

If this is all set, feel free to close this issue.

@jtenner
Copy link
Contributor

jtenner commented Jan 13, 2022

@yjhmelody do you have experience with transforms?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question ❔ Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants