This fixes cases where apostrophes are present in pathnames#216
This fixes cases where apostrophes are present in pathnames#216ronkorving wants to merge 1 commit into
Conversation
|
Hi Ron, running npm installing from a repo should find the folder Could you please verify whether the folder exists and is empty? If npm installing fails again afterwards, it may read something like But I would recommend, you add a test case within your fork of the ghooks repository. (That is, add a test case that can be run by the test runner to the file |
061cc4e to
760fff7
Compare
Codecov Report
@@ Coverage Diff @@
## master #216 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 4 4
Lines 96 96
Branches 4 4
=====================================
Hits 96 96
Continue to review full report at Codecov.
|
|
The I removed the folder, then wanted to "try again", but wasn't sure what you wanted me to try again, so I ran both Then I went into Copying my entire custom ghooks repo over to var nodeModulesPath = '/Users/ronkorving/Projects/ghooks\'test/node_modules';I definitely want to add a unit test for this feature, but the suite is a bit cryptic (sorry, I'm not very used to the tools used in ghooks, like sinon) so it might take me some time. That's why I wanted to start out with a real-world scenario. Is there a test that depends on path format that I could base something of? |
|
Yeah, I am too unhappy about the transpilation step, currently requiring that build process at all. I'm pretty sure we would be able to avoid it in an upcoming release. I think the line you already checked visually is exactly what a corresponding test should look for. The according test should be put into I would suggest — before requiring the Of course, when overwriting So, putting all together, eventually
Note: the made up path will be one level higher, as we manipulate the |
|
Hey there @ronkorving, first off, thank you for taking a stab at this issue! 🍻 Cheers! |
|
Very, very, happily :) I missed that PR going in, great news! update: done |
760fff7 to
0182eaf
Compare
|
Thanks!! Would you mind adding a test scenario like @ta2edchimp described above? I think it is important for us to capture this as a test so we can prevent regression issues. |
|
I agree 👍 I hope I'll get around to it soon. |
|
Awesome. |
Fixes #214
Do not merge this (yet). I've not been able to test this, because I cannot for the love of me get a test environment up and running. Whenever I install ghooks using either:
I get installation errors:
Do you have any advice on how I should test this project?