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
In Node#loadScript, modules are loaded with require(path.resolve(script)). This allows script paths in the intern config to be relative to the project root. However, it breaks resolution for normal Node modules (e.g., if script were something in node_modules). Intern should handle this situation, as well. The naive solution would be to just do something like:
Intern may also need to take the path of the intern.json file itself into account. This could allow it to load modules relative to the config, which would be relevant if the config were itself contained in a node module that had a nested node_modules directory.
In
Node#loadScript
, modules are loaded withrequire(path.resolve(script))
. This allows script paths in the intern config to be relative to the project root. However, it breaks resolution for normal Node modules (e.g., ifscript
were something innode_modules
). Intern should handle this situation, as well. The naive solution would be to just do something like:The text was updated successfully, but these errors were encountered: