Files
oxc-project__oxc/apps/oxfmt/test/cli/editorconfig/0.snap.md
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

976 B

Input

Command

oxfmt test.js

File tree

- fixtures/
  - basic/ <CWD>
    - .editorconfig
    - test.js
  - empty/
    - .editorconfig
    - test.js
  - nested_cwd/
    - .editorconfig
    - sub/
      - test.ts
  - no_root_section/
    - .editorconfig
    - test.js
    - test.ts
  - partial_override/
    - .editorconfig
    - .oxfmtrc.json
    - test.js
  - per_file_override/
    - .editorconfig
    - nested/
      - deep/
        - test.js
        - test.json
    - test.js
    - test.ts
  - quote_type/
    - .editorconfig
    - test.js
  - tab_width_fallback/
    - .editorconfig
    - test.js
  - with_oxfmtrc/
    - .editorconfig
    - .oxfmtrc.json
    - test.js

Result

Exit code

0

stdout

Finished in <time> on 1 files using 1 threads.

stderr


File changes

basic/test.js

@@ -1,1 +1,3 @@
-if (condition) { console.log("hello world"); }
+if (condition) {
+	console.log("hello world");
+}