prettier-cli
prettier-cli copied to clipboard
Sync integration tests from Prettier
The following tables keep track of the progress toward porting over integration tests from Prettier.
Read this if you'd like to help!
Completed
| Test File | PR |
|---|---|
| arg-parsing.js | 418c99b |
| check.js | 3950236 |
| cursor-offset.js | 31dca58 |
| error-on-unmatched-pattern.js | 51c4400 |
| ignore-absolute-path.js | 2e4da3d |
| ignore-relative-path.js | 8b72856 |
| ignore-vcs-files.js | 4b35eb4 |
| invalid-ignore.js | 5b9688f |
| list-different.js | 480ec27 |
| plugin-default-options.js | 17406c9 |
| plugin-extensions.js | 2a2bc09 |
| plugin-flush-line-suffix.js | ccaeba0 |
| plugin-precedence.js | 10652d7 |
| plugin-preprocess.js | d2cfe19 |
| skip-folders.js | e7606cb |
| syntax-error.js | e512640 |
| with-node-modules.js | ae58b4a |
| with-shebang.js | fcdca48 |
| early-exit.js | #22 |
| ignore-emoji.js | #23 |
| ignore-in-subdirectories.js | #24 |
| ignore-path.js | #25 |
| ignore-unknown.js | #27 |
| patterns.js | #20 |
| patterns-glob.js | #37 |
| plugin-options.js | #40 |
| print-code.js | #43 |
| with-parser-inference.js | #54 |
| plugin-options-string.js | #38 |
| plugin-resolution.js | #42 |
| infer-parser.js | #30 |
| infer-plugins-ext-dir.js | #34 |
| line-after-filepath-with-errors.js | #35 |
Will not migrate
| Test File | Notes |
|---|---|
| cache.js | Caching is implemented differently in prettier-cli |
| doc-builders.js | builders don't exist in prettier-cli |
| doc-mark-as-root.js | builders don't exist in prettier-cli |
| doc-printer.js | builders don't exist in prettier-cli |
| doc-trim.js | builders don't exist in prettier-cli |
| doc-utils-clean-doc.js | builders don't exist in prettier-cli |
| debug-api.js | Debug API will not be part of prettier-cli |
| debug-check.js | --debug-check is not supported |
| debug-print-ast.js | --debug-print-ast is not supported |
| debug-print-comments.js | --debug-print-ast is not supported |
| debug-print-doc.js | --debug-print-doc is not supported |
| format-ast.js | Debug API is unsupported |
| format.js | CLI uses format itself from prettier |
| file-info.js | --file-info is unsupported |
| help-options.js | --help for individual options is unsupported |
| line-suffix-boundary.js | builders don't exist in prettier-cli |
| mockable.js | debug API is unsupported |
| parser-api.js | parser API is part of prettier |
| performance-flags.js | Debug API is unsupported |
| piped-output.js | Combining write/check/list-different is not supported |
| plugin-api-embed.js | prettier API tests |
| plugin-cache.js | prettier API tests |
| print-doc-to-string.js | prettier API tests |
| printer-and-parser.js | prettier API tests |
| resolve-config-file.js | prettier API tests |
| schema.js | prettier API tests |
| support-info.js | not currently supported |
| util-shared.js | prettier API tests |
| plugin-override-buitin-plugins.js | prettier API tests |
| with-config-precedence.js | Config precedence isn't supported |
To migrate
| Test File | Notes |
|---|---|
| bundle.js | |
| cli.js | |
| config-file-typescript.js | Currently unreleased in prettier, and depends on #21 |
| config-invalid.js | |
| config-resolution.js | |
| log-level.js | |
| patterns-dirs.js | |
| stdin-filepath.js | #52 |
| write.js | #53 |
Amazing, thank you! I made the file names clickable and added a little paragraph at the start.
Probably worth having a note for each test that won't be ported over.
For the record, I started working on patterns.js.