You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There’s a bug with the deploy tests that they require that the build tests have previously run and cached the responses from the jsDelivr API. So if you run the deploy tests by themselves, they fail. I need to figure out how to compose the jsDelivr API mocks with the Observable API mocks that the deploy tests need.
The text was updated successfully, but these errors were encountered:
For the AI assist project, I built a set of helper functions that implement a Playwright-style dependency-injection system for the tests. The key benefits that I saw for it were that the test helpers (like the jsDelivr and Observable API mocks) could have their own dependencies, and that they could automatically clean up after themselves (another problem we have in the current situation).
I think that using that this "test helper" system could help with composing the HTTP mocks because both mocks could delegate making undici interceptor to another test helper that could smartly only make one per test, and automatically deregister it after all mocks are done.
Is that something that you'd be amenable to? I can sketch out a PR for it.
The text was updated successfully, but these errors were encountered: