Ben Buckman
Ben Buckman
We've worked around this by removing the `realPath` call and assuming that the input package paths are already absolute. This is not ideal. I think Stitch should definitely support symlinks...
Thank you @1mike12 , I left some comments on the PR.
https://github.com/benbuckman/nodejs-ebay-api/pull/38
Can you paste your original JSON input?
@andreaperizzato Thank you for submitting this. Is it possible to make the tests pass? I'd like to merge it at that point. Thank you (and sorry for the very long...
@vicary Yeah, that would be nice. Unfortunately I don't have time to refactor this module again now. (It's working well enough as-is and this change wouldn't solve any immediate problem.)...
I wonder, couldn't this be done more simply, with [`path.resolve`](http://nodejs.org/api/path.html#path_path_resolve_from_to) or `require.resolve` on all entries to `registeredMocks`? (Probably as an option in `registerMock`)
I think it's returning a stringified empty object for the model in that case, because the model's attributes are empty, and it's using `toJSON` to retrieve the attributes. (I didn't...