Files
oxc-project__oxc/apps/oxfmt/test/cli/toml/1.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

737 B

Input

Command

oxfmt --config use-tab.json config.toml

File tree

- fixtures/ <CWD>
  - Cargo.lock
  - config.toml
  - config.toml.example
  - Pipfile
  - poetry.lock
  - use-tab.json

Result

Exit code

0

stdout

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

stderr


File changes

config.toml

@@ -1,8 +1,11 @@
 [package]
-name="test"
-version    =    "0.1.0"
-description   =  "A test package"
+name = "test"
+version = "0.1.0"
+description = "A test package"
 
 [dependencies]
-foo={version="1.0"}
-bar   =   {   version   =   "2.0"  ,  features   =   [  "a"  ,  "b"  ]   }
+foo = { version = "1.0" }
+bar = { version = "2.0", features = [
+	"a",
+	"b",
+] }