-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Force-including explicitly included files in dump mode, to match the old behavior - Updated snapshots to match prettier v3 output, which for some reason the snapshot didn't seem to reflect - Treating explicitly included files like this the same way, previously if one of these files was ignore its content was dumped to the console, which seems weird and useless
- Loading branch information
1 parent
b3e6bc8
commit 8ad8648
Showing
8 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ignored.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
foo( | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
foo( | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Line breaking after filepath with errors (stdout) 1`] = `"foo();"`; | ||
|
||
exports[`Line breaking after filepath with errors (stdout) 2`] = `"foo();"`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { runCli } from "../utils"; | ||
|
||
describe("Line breaking after filepath with errors", () => { | ||
runCli("print-code", [ | ||
"./ignored.js" | ||
], { | ||
stdoutIsTTY: true, | ||
}).test({ | ||
status: 0, | ||
write: [], | ||
stderr: "" | ||
}); | ||
|
||
runCli("print-code", [ | ||
"./not-ignored.js" | ||
], { | ||
stdoutIsTTY: true, | ||
}).test({ | ||
status: 0, | ||
write: [], | ||
stderr: "" | ||
}); | ||
}); |