prettier/tests_integration/__tests__
Ika c4e5463514 refactor(cli): separate files and make it pure as possible (#2730)
* refactor(bin): resolveConfig

* refactor(bin): getOptionsForFile

* refactor(bin): remove `mapSeries`

* refactor: move content from bin to src/cli

* refactor: wrap content with function

* refactor: move constants to another file

* refactor: move utils to another file

* refactor: move functions

* refactor: extract functions

* refactor: remove unnecessary variable

* refactor: move `src/cli` to `src` with prefix `cli`

* refactor: use template literal

* refactor: remove unnecessary variable

* refactor: extract `listDifferent`

* refactor: extract `format`

* refactor: change error message `Invalid configuration:`

* refactor: bind args with argv

* refactor: extract `getOptionsForFile`

* refactor: extract `formatStdin`

* refactor: extract `eachFilename`

* refactor: extract `formatFiles`

* refactor: remove unnecessary export

* refactor: use `globby.sync()`

* refactor: add `runPrettier.sync()` helper

* refactor: fix linting

* refactor: mock `process.argv`

* chore: use `--forceExit` to avoid process hanging

* refactor: mock `get-stream`

* refactor: remove unnecessary stuff

* refactor: fix linting

* refactor: wrap `run` with `try..catch.finally`

* refactor: restore `process.exitCode` after testing
2017-09-03 19:21:06 +10:00
..
__snapshots__ Fix CLI option parsing (#2684) 2017-08-29 08:16:04 +02:00
arg-parsing.js Fix CLI option parsing (#2684) 2017-08-29 08:16:04 +02:00
config-resolution.js feat(resolve-config): add `.sync()` method (#2722) 2017-09-01 20:17:07 +10:00
debug-check.js Check exit codes in integration tests (#2148) 2017-06-15 09:56:48 +10:00
debug-print-doc.js Fix --debug-print-doc (#2400) 2017-07-05 18:25:51 +02:00
ignore-path.js CLI: Support .ignore files (#2412) 2017-07-11 23:33:46 +10:00
list-different.js Make --list-different to work with --stdin (#2393) 2017-07-04 14:41:46 -04:00
multiple-patterns.js refactor(cli): separate files and make it pure as possible (#2730) 2017-09-03 19:21:06 +10:00
parser-api.js Check exit codes in integration tests (#2148) 2017-06-15 09:56:48 +10:00
syntax-error.js Add integration test of invalid syntax (#2160) 2017-06-16 09:10:39 +10:00
with-node-modules.js CLI: ignore node_modules with ./**-style glob, fixes #2110 (#2185) 2017-06-18 14:35:42 +10:00
with-parser-inference.js Check exit codes in integration tests (#2148) 2017-06-15 09:56:48 +10:00
with-shebang.js Check exit codes in integration tests (#2148) 2017-06-15 09:56:48 +10:00