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

not work on windows #3

Closed
zsytssk opened this issue Jun 8, 2018 · 1 comment
Closed

not work on windows #3

zsytssk opened this issue Jun 8, 2018 · 1 comment

Comments

@zsytssk
Copy link

zsytssk commented Jun 8, 2018

image

@ccampbell
Copy link
Owner

Thanks for the report! It looks like the path replacement to find the test file is not working correctly for some reason. I have an idea of what might be the issue, but I am not sure it will fix it.

I can publish a new version with the fix or you can try making the change directly in node_modules/luna/bin/luna.js to see if it fixes your problem:

diff --git a/bin/luna.js b/bin/luna.js
index 592f6c4..89f5556 100755
--- a/bin/luna.js
+++ b/bin/luna.js
@@ -282,7 +282,7 @@ async function getBundle(filePath, options) {
         try {
             const plugins = [
                 replace({
-                    TEST_FILE_PATH: `${process.cwd()}/${filePath}`,
+                    TEST_FILE_PATH: path.join(process.cwd(), filePath),
                     TEST_TIMEOUT: options.timeout
                 }),
                 buble({

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

No branches or pull requests

2 participants