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
I tried to evaluate testdouble.js for our project. Unfortunately, as soon as i call object(), an error occurs.
The code is copied from the docs, so its should work.
I presume that this means PhantomJS doesn't support Proxy objects.
td.js has a nice error about this, but it looks like your issue is that typescript blows up before you'd see it. If you know anything about TypeScript and can help sort that out,t hat'd be great
TypeScript can't be the issue here.
I figured it out: PhantomJS has no support for Proxy. Unfortunately that's a no-go for our CI build environment, as tests need to run headless there.
There is a polyfill here: https://github.com/GoogleChrome/proxy-polyfill
Including it fixes the issue in the case described above. But I don't know if it supports everything needed by testdouble in every case. Can you comment on that? If there is anything unclear, sadly testdouble can't be a candidate for our production environment. And I would personally prefer it.
I tried to evaluate testdouble.js for our project. Unfortunately, as soon as i call object(), an error occurs.
The code is copied from the docs, so its should work.
let parrot = object('Parrot');
leads to:
The text was updated successfully, but these errors were encountered: