prettier / prettier/prettier-cli
Sync integration tests from Prettier
Open
Nobody has claimed this yet.
help wanted
- Dominant language
- TypeScript
- Stars
- 43
- Forks
- 10
- Avg merge
- 18m
- Merged PRs (30d)
- 1
Description
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 |
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the linked ecosystem-cleanup issue and the To migrate table, then compare the named files under Prettier's tests/integration/tests/ directory with the prettier-cli test layout. Choose a test that is not marked completed or will not migrate; done means its integration behavior has been ported and the corresponding test passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- cli, testing-qa
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100