Closed jan-molak closed 1 year ago
@sgravrock looks like Windows tests use OS-dependent paths. Let me know how you'd like to proceed, please.
I can think of a few options:
url.pathToFileURL
(would be unfortunate since url.pathToFileURL
is a nice improvement, but it doesn't necessarily have to be in this PR)Thanks for the feedback, @sgravrock! I played around with the regex, but it seems like repeating url.pathToFileURL
in the test as well might be easier to read:
expect(importShim).toHaveBeenCalledWith(url.pathToFileURL('/the/path/to/the/module').toString());
If you prefer a regex please let me know and I can update the PR.
Thanks for the PR.
Serenity/JS provides a Jasmine adapter published as a namespaced module
@serenity-js/jasmine
.This change adds support for Jasmine
loader.js
to load namespaced modules and closes #199.