-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Update testing macro to update-current-env #48
Conversation
Just to double-check, did you test this with nbb locally? |
I did not yet. What's that process look like? Clone nbb, update deps to point to local sci.configs, build nbb, and link to the artifact in my dev repo with the tests? |
yes |
what you could also do is make a fork of sci.configs and then make a candidate PR for nbb based on your fork of sci.configs which tests the change, and after that, we merge it into sci.configs |
I'll give that a shot. Also looks like my formatter added more noise than desired. Going to try again first to mitigate that. |
ae15a86
to
a60b46b
Compare
Previously, the testing macro would update a testing-contexts dynamic var, but the APIs around for stringifying testing-context would read from the current-env. Given the official cljs impl updates the current-env, this PR applies the same approach.
Created babashka/nbb#359 as my best attempt at what you suggested for testing. Also did test it locally:
|
I guess now you can update your nbb PR to use the newest sci.configs and then we'll merge that |
Done. Thanks so much! |
Previously, the testing macro would update a testing-contexts dynamic var, but the APIs around for stringifying testing-context would read from the current-env.
Given the official cljs impl updates the current-env, this PR applies the same approach.