-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Files inside version control directores are no longer ignored if explicitly provided, but they still are if discovered, by default.
- Loading branch information
1 parent
e512640
commit 4b35eb4
Showing
5 changed files
with
42 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
'use strict'; |
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 @@ | ||
/* eslint-disable */ | ||
'use strict'; |
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 @@ | ||
'use strict'; |
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,17 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`does not ignore files in version control systems, if manually provided (stderr) 1`] = `""`; | ||
|
||
exports[`does not ignore files in version control systems, if manually provided (stdout) 1`] = ` | ||
".hg/file.js | ||
.svn/file.js | ||
file.js" | ||
`; | ||
|
||
exports[`does not ignore files in version control systems, if manually provided (write) 1`] = `[]`; | ||
|
||
exports[`ignores files in version control systems, if discovered (stderr) 1`] = `""`; | ||
|
||
exports[`ignores files in version control systems, if discovered (stdout) 1`] = `"file.js"`; | ||
|
||
exports[`ignores files in version control systems, if discovered (write) 1`] = `[]`; |
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,21 @@ | ||
import { runCli } from "../utils"; | ||
|
||
describe("ignores files in version control systems, if discovered", () => { | ||
runCli("ignore-vcs-files", [ | ||
"**/file.js", | ||
"-l", | ||
]).test({ | ||
status: 1, | ||
}); | ||
}); | ||
|
||
describe("does not ignore files in version control systems, if manually provided", () => { | ||
runCli("ignore-vcs-files", [ | ||
".svn/file.js", | ||
".hg/file.js", | ||
"file.js", | ||
"-l", | ||
]).test({ | ||
status: 1, | ||
}); | ||
}); |