Skip to content

Commit fd13789

Browse files
committed
Add test cases for prettier#6250
1 parent 906fbb7 commit fd13789

9 files changed

Lines changed: 17 additions & 1 deletion

File tree

tests/integration/__tests__/__snapshots__/ignore-relative-path.js.snap

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ exports[`support relative paths 1`] = `
44
{
55
"stderr": "",
66
"stdout": "shouldNotBeIgnored.js
7+
α-shouldNotBeIgnored.js
78
level1-glob/level2-glob/level3-glob/shouldNotBeIgnored.scss
8-
level1-glob/shouldNotBeIgnored.js",
9+
level1-glob/level2-glob/level3-glob/α-shouldNotBeIgnored.scss
10+
level1-glob/shouldNotBeIgnored.js
11+
level1-glob/α-shouldNotBeIgnored.js",
912
"write": [],
1013
}
1114
`;

tests/integration/__tests__/ignore-relative-path.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
describe("support relative paths", () => {
22
runCli("cli/ignore-relative-path", [
33
"./shouldNotBeIgnored.js",
4+
"./α-shouldNotBeIgnored.js",
5+
"./α-shouldNotBeFormat.js",
46
"./level1/level2/level3/shouldNotBeFormat.js",
7+
"./level1/level2/level3/α-shouldNotBeFormat.js",
58
"level1-glob/level2-glob/level3-glob/shouldNotBeFormat.js",
9+
"level1-glob/level2-glob/level3-glob/α-shouldNotBeFormat.js",
610
"./level1-glob/level2-glob/level3-glob/shouldNotBeIgnored.scss",
11+
"./level1-glob/level2-glob/level3-glob/α-shouldNotBeIgnored.scss",
712
"level1-glob/shouldNotBeIgnored.js",
13+
"level1-glob/α-shouldNotBeIgnored.js",
814
"-l",
915
]).test({
1016
status: 1,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
level1/level2/
22
level1-glob/**/level3-glob/*.js
3+
α-shouldNotBeFormat.js
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
var x = 'this should not be formatted';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
body { color: green }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
var x = 'this should be formatted';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
var x = 'this should not be formatted';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
var x = 'this should not be formatted';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
var x = 'this should be formatted';

0 commit comments

Comments
 (0)