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

test(rome_js_formatter): update prettier tests #3684

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

denbezrukov
Copy link
Contributor

@denbezrukov denbezrukov commented Nov 12, 2022

Summary

Add missing tests directories from Prettier spec.

  • specs/prettier/js/arrows
  • specs/prettier/jsx/jsx

I skipped tests/format/jsx/comments/in-end-tag.js because it has parse errors.
Playground

Test Plan

cargo test -p rome_js_formatter

Current MR:
Average compatibility: 91.22
Compatible lines: 93.20

Main:
Average compatibility: 92.30
Compatible lines: 94.25

@netlify
Copy link

netlify bot commented Nov 12, 2022

Deploy Preview for docs-rometools canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 292db27
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/636fa6ef1690ed0008e8a1c6

singleQuote: false,
jsxSingleQuote: false,
useTabs: false,
embeddedLanguageFormatting: "off",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange option makes extra line in template:

@MichaReiser MichaReiser added the A-Formatter Area: formatter label Nov 14, 2022
@MichaReiser MichaReiser added this to the 11.0.0 milestone Nov 14, 2022
@MichaReiser MichaReiser merged commit e8b2f33 into rome:main Nov 14, 2022
jeysal added a commit to jeysal/rometools that referenced this pull request Nov 14, 2022
* upstream/main: (45 commits)
  website(docs): set `color-scheme` on the root element (rome#3721)
  feat(rome_analyze): add a warning for unused suppression comments (rome#3718)
  feat(rome_js_analyze): Implement prefer-numeric-literals lint (rome#3558)
  feat(rome_js_formatter): jestEach template literals rome#3308 (rome#3582)
  doc(website): Add context about Romes philosophy (rome#3714)
  fix(rome_js_formatter): Single-line comment below a JSX prop triggers… (rome#3641)
  test(rome_js_formatter): update prettier tests (rome#3684)
  fix(rome_js_parser): improve await handling in non-async context (rome#3573)
  fix(rome_js_parser): improve yield parsing in non generator function (rome#3622)
  More playground polish
  Fix backgrounds
  Fix height
  Align docs.rome.tools with rome.tools
  Reenable compression
  Add missing width
  website(docs): More playground IDE features (rome#3711)
  fix(rome_js_formatter): new expression attribute (rome#3686)
  docs(website): added checkbox to toggle linter in playground (rome#3699)
  website(docs): More website tweaks (rome#3707)
  website(docs): Add default layout property (rome#3705)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Formatter Area: formatter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants