Files
leaysgur c9b4db9ff7 test(oxfmt): Rework test/cli tests (#21463)
Switch to a fixture-based testing approach, similar to apps/oxlint.
2026-04-15 09:13:40 +00:00

1.0 KiB

Input

Command

oxfmt --migrate biome

File tree

- fixtures/
  - already_exists/
    - .oxfmtrc.json
  - arrow_parens/
    - biome.json
  - attribute_position/
    - biome.json
  - basic_config/ <CWD>
    - biome.json
  - both_json_jsonc/
    - biome.json
    - biome.jsonc
  - defaults/
    - biome.json
  - force_ignore/
    - biome.json
  - ignore_patterns/
    - biome.json
  - js_overrides/
    - biome.json
  - jsonc_config/
    - biome.jsonc
  - no_config/
    - .gitkeep
  - warn_overrides/
    - biome.json

Result

Exit code

0

stdout

Found Biome configuration at: <cwd>/biome.json
Created `.oxfmtrc.json`.

stderr


File changes

basic_config/.oxfmtrc.json (created)

{
  "useTabs": false,
  "tabWidth": 4,
  "printWidth": 120,
  "singleQuote": true,
  "jsxSingleQuote": false,
  "quoteProps": "as-needed",
  "trailingComma": "all",
  "semi": false,
  "arrowParens": "always",
  "bracketSameLine": false,
  "bracketSpacing": true,
  "ignorePatterns": []
}