Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

test(rome_js_formatter): Ignore unsupported syntax from coverage #3064

Merged
merged 1 commit into from
Aug 16, 2022

Conversation

MichaReiser
Copy link
Contributor

Summary

Ignore test files with unsupported syntax (bind, tuple, record, ...) from the coverage report.

The motivation of doing so is that we should focus on improving compatibility on syntax that we support. It's obvious that our formatting won't match Prettier's for syntax that the rome parser does not support.

File Based Average Prettier Similarity: 79.75% -> 81.53%
Line Based Average Prettier Similarity: 76.52% -> 78.29%

@MichaReiser MichaReiser temporarily deployed to aws August 16, 2022 09:57 Inactive
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 16, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4f09520
Status: ✅  Deploy successful!
Preview URL: https://164f2676.tools-8rn.pages.dev
Branch Preview URL: https://test-ignore-unsupported-synt.tools-8rn.pages.dev

View logs

@github-actions
Copy link

github-actions bot commented Aug 16, 2022

@MichaReiser MichaReiser force-pushed the test/ignore-unsupported-syntax-from-coverage branch from 16ca8f4 to 622c840 Compare August 16, 2022 10:14
@MichaReiser MichaReiser temporarily deployed to aws August 16, 2022 10:14 Inactive
Ignore test files with unsupported syntax (bind, tuple, record, ...) from the coverage report.

The motivation of doing so is that we should focus on improving compatibility on syntax that we support. It's obvious that our formatting won't match Prettier's for syntax that the rome parser does not support.

**File Based Average Prettier Similarity**: 79.75% -> 81.53%
**Line Based Average Prettier Similarity**: 76.52% -> 78.29%
@MichaReiser MichaReiser force-pushed the test/ignore-unsupported-syntax-from-coverage branch from 622c840 to 4f09520 Compare August 16, 2022 10:18
@MichaReiser MichaReiser temporarily deployed to aws August 16, 2022 10:18 Inactive
@MichaReiser MichaReiser merged commit 1431af0 into main Aug 16, 2022
@MichaReiser MichaReiser deleted the test/ignore-unsupported-syntax-from-coverage branch August 16, 2022 11:05
IWANABETHATGUY pushed a commit to IWANABETHATGUY/tools that referenced this pull request Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants