Files
oxc-project__oxc/apps/oxfmt/test/cli/nested_config/0.snap.md
leaysgur f87b33464d test(oxfmt): Refactor test fixtures usage (#21494)
- Normalized tests that were ambiguous as to whether they were fixtures or scenarios based
- Specified this rule in AGENTS.md
- Made the test name report in the CLI clearer
2026-04-16 09:40:58 +00:00

1.3 KiB

Input

Command

oxfmt .

File tree

- fixtures/ <CWD>
  - .oxfmtrc.json
  - root.js
  - sibling-a/
    - .oxfmtrc.json
    - a.js
  - sibling-b/
    - b.js
    - oxfmt.config.ts
  - sub/
    - .oxfmtrc.json
    - deep/
      - .oxfmtrc.json
      - deep.js
    - nested.js

Result

Exit code

0

stdout

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

stderr


File changes

root.js

@@ -1,1 +1,5 @@
-function foo() { if (true) { console.log("hello"); } }
+function foo() {
+    if (true) {
+        console.log("hello");
+    }
+}

sibling-a/a.js

@@ -1,1 +1,5 @@
-function foo() { if (true) { console.log("hello"); } }
+function foo() {
+  if (true) {
+    console.log("hello")
+  }
+}

sibling-b/b.js

@@ -1,1 +1,5 @@
-function foo() { if (true) { console.log("hello"); } }
+function foo() {
+  if (true) {
+    console.log('hello');
+  }
+}

sub/deep/deep.js

@@ -1,1 +1,5 @@
-function foo() { if (true) { console.log("hello"); } }
+function foo() {
+        if (true) {
+                console.log("hello");
+        }
+}

sub/nested.js

@@ -1,1 +1,5 @@
-function foo() { if (true) { console.log("hello"); } }
+function foo() {
+  if (true) {
+    console.log("hello");
+  }
+}