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
Hey @bjarketrux -- td.replace for module paths does not work outside of Node.js, as Quibble doesn't just depend on v8, but also the internals of Node's native Module module.
Forgive me, because td.replace is indeed really confusing in how many types of arguments it can receive, resulting in very different behavior, but the simple way to think of it is that anything about CommonJS-ish modules is specific to Node.js until someone thinks up a better way to automatically rewire than what quibble does.
Here are the relevant docs for anyone just realizing this.
Separately, @bjarketrux, if you could find the exact snippet that resulted in this error, perhaps we could throw an error message about lack of support for the environment you're in--looks like whatever I'm doing to check that we're in a Node environment is insufficient.
Looks like Quibble uses an V8 specific API: testdouble/quibble#3
When running our tests on our CI testdouble fails with
Anything I can do to make the CI tests work in PhantomJS?
Thanks
The text was updated successfully, but these errors were encountered: