Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix support for absolute paths in srcDir and specDir #50

Merged
merged 3 commits into from Mar 13, 2024

Conversation

joeyparrish
Copy link
Contributor

Instead of path.join(projectBaseDir, srcDir), we should use path.resolve(projectBaseDir, srcDir). Where join() will always join paths, resolve() will resolve relative paths relative to the previous argument, but leave absolute paths alone.

Closes #15

Instead of path.join(projectBaseDir, srcDir), we should use
path.resolve(projectBaseDir, srcDir).  Where join() will always join
paths, resolve() will resolve relative paths relative to the previous
argument, but leave absolute paths alone.

Closes jasmine#15
@joeyparrish
Copy link
Contributor Author

I checked that the new test case fails without the fix (converting path.join to path.resolve every time projectBaseDir is involved), but passes with the fix. Please take a look!

@sgravrock sgravrock merged commit 6d8477c into jasmine:main Mar 13, 2024
3 checks passed
@sgravrock
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jasmine-browser-runner do not support absolute paths for src and spec dirs
2 participants