-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prettierx test: move prettierX-specific test variations
into tests/format/x subdirectory tree based on some updates proposed in: - #603 update test comments rename dirpath -> dirPath to avoid spellcheck issues with updates from upstream Prettier Co-authored-by: Adaline Valentina Simonian <[email protected]> Co-authored-by: Christopher J. Brody <[email protected]>
- Loading branch information
1 parent
a1002df
commit f3f7526
Showing
53 changed files
with
113 additions
and
113 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...entheses/with-inner-spacing/jsfmt.spec.js → ...entheses-with-inner-spacing/jsfmt.spec.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// [prettierx] test script notice: | ||
// This test script runs for test files in parent directory, | ||
// This test script runs for test files in another directory, | ||
// **not** on any files in *this* directory. | ||
|
||
const dirpath = `${__dirname}/..`; | ||
const dirPath = `${__dirname}/../../../../flow_function_parentheses`; | ||
|
||
// [prettierx] test with --paren-spacing, only with defaults | ||
// including arrowParens: "avoid" | ||
// (note that this combination is **not** recommended) | ||
run_spec(dirpath, ["flow", "babel", "babel-flow"], { | ||
run_spec(dirPath, ["flow", "babel", "babel-flow"], { | ||
spaceInParens: true, | ||
typeAngleBracketSpacing: true, | ||
}); |
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...s/arrows/with-inner-spacing/jsfmt.spec.js → ...s/arrows-with-inner-spacing/jsfmt.spec.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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...ressions/with-inner-spacing/jsfmt.spec.js → ...ressions-with-inner-spacing/jsfmt.spec.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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...ak-calls/with-inner-spacing/jsfmt.spec.js → ...ak-calls-with-inner-spacing/jsfmt.spec.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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...typecast/with-inner-spacing/jsfmt.spec.js → ...typecast-with-inner-spacing/jsfmt.spec.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
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
tests/format/x/js/computed-props-with-inner-spacing/jsfmt.spec.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,9 @@ | ||
// [prettierx] test script notice: | ||
// This test script runs for test files in another directory, | ||
// **not** on any files in *this* directory. | ||
|
||
const dirPath = `${__dirname}/../../../../computed_props`; | ||
|
||
run_spec(dirPath, ["babel", "babel-flow"], { | ||
computedPropertySpacing: true, | ||
}); |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
tests/format/x/js/empty-paren-comment-with-inner-spacing/jsfmt.spec.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,9 @@ | ||
// [prettierx] test script notice: | ||
// This test script runs for test files in another directory, | ||
// **not** on any files in *this* directory. | ||
|
||
const dirPath = `${__dirname}/../../../../empty_statement`; | ||
|
||
run_spec(dirPath, ["babel", "babel-flow", "flow", "typescript"], { | ||
spaceInParens: true, | ||
}); |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
tests/format/x/js/empty-statement-with-inner-spacing/jsfmt.spec.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,9 @@ | ||
// [prettierx] test script notice: | ||
// This test script runs for test files in another directory, | ||
// **not** on any files in *this* directory. | ||
|
||
const dirPath = `${__dirname}/../../../../empty_paren_comment`; | ||
|
||
run_spec(dirPath, ["babel", "babel-flow", "flow", "typescript"], { | ||
spaceInParens: true, | ||
}); |
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
tests/if/break-before-else/jsfmt.spec.js → ...s/if-with-break-before-else/jsfmt.spec.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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...od-chain/with-inner-spacing/jsfmt.spec.js → ...od-chain-with-inner-spacing/jsfmt.spec.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
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...template/with-inner-spacing/jsfmt.spec.js → ...template-with-inner-spacing/jsfmt.spec.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
File renamed without changes.
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...ernaries/with-inner-spacing/jsfmt.spec.js → ...ernaries-with-inner-spacing/jsfmt.spec.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
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...arations/with-inner-spacing/jsfmt.spec.js → ...arations-with-inner-spacing/jsfmt.spec.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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
tests/jsx/with-inner-spacing/jsfmt.spec.js → .../jsx/jsx-with-inner-spacing/jsfmt.spec.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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...css_scss/with-inner-spacing/jsfmt.spec.js → ...css/scss-with-inner-spacing/jsfmt.spec.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
// [prettierx] test script notice: | ||
// This test script runs for test files in parent directory, | ||
// This test script runs for test files in another directory, | ||
// **not** on any files in *this* directory. | ||
|
||
const dirpath = `${__dirname}/..`; | ||
const dirPath = `${__dirname}/../../../../css_scss`; | ||
|
||
run_spec(dirpath, ["scss"], { | ||
run_spec(dirPath, ["scss"], { | ||
// [prettierx] test with --css-paren-spacing | ||
cssParenSpacing: true, | ||
}); |
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...es/with-balanced-formatting/jsfmt.spec.js → ...es-with-balanced-formatting/jsfmt.spec.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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...ccesType/with-inner-spacing/jsfmt.spec.js → ...ccesType-with-inner-spacing/jsfmt.spec.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
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...format/x/typescript/conformance-types-mappedType-with-no-type-curly-spacing/jsfmt.spec.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,9 @@ | ||
// [prettierx] test script notice: | ||
// This test script runs for test files in another directory, | ||
// **not** on any files in *this* directory. | ||
|
||
const dirPath = `${__dirname}/../../../../typescript/conformance/types/mappedType`; | ||
|
||
run_spec(dirPath, ["typescript"], { | ||
typeCurlySpacing: false, | ||
}); |
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...odifiers/with-inner-spacing/jsfmt.spec.js → ...odifiers-with-inner-spacing/jsfmt.spec.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
File renamed without changes.
Oops, something went wrong.