Conversation
|
I think you can add them in a new file |
| describe("support relative paths", () => { | ||
| runPrettier("cli/ignore-relative-path", [ | ||
| path.resolve(__dirname, "../cli/ignore-relative-path/level1/level2/level3/file.js"), | ||
| path.resolve(__dirname, "../cli/ignore-relative-path/anotherfile.js"), |
There was a problem hiding this comment.
These should be relative paths, path.resolve() will make them absolute.
There was a problem hiding this comment.
Yes I know, I just wanted to push the changes & will clean it up the whole PR in an hour or two 😊
| @@ -0,0 +1,2 @@ | |||
| var x = 'this should be formatterd'; | |||
|
|
|||
There was a problem hiding this comment.
Name this file shouleBeFormat.js would be better.
| @@ -0,0 +1 @@ | |||
| var x = 'this should not be formatterd'; | |||
There was a problem hiding this comment.
Name this file shouleNotBeFormat.js would be better.
|
@ikatyang done, updated the tests & rebased. You can check it now |
|
@ahmedelgabri You have a minor lint error that causes the tests to fail :) |
|
Oops, @lydell should be fixed now :) |
|
Thanks! |
Fixes #2964
@ikatyang I need some pointers for the tests. I thought about adding another test inside
tests_integration/__tests__/ignore-absolute-path.js