From ad1829f0b64e812f007baa9bdcf77b35288e815e Mon Sep 17 00:00:00 2001 From: Sarath Francis Date: Fri, 12 Jun 2026 08:52:56 -0400 Subject: [PATCH] Stabilize XML declaration formatting on reformat The XMLDeclOpen token (" double", async () => { expect(formatted).toMatchSnapshot(); }); + +test("wrapped XML declaration is stable on reformat", async () => { + const input = '\n\n'; + const opts = { printWidth: 20 }; + + const once = await format(input, opts); + const twice = await format(once, opts); + + expect(twice).toEqual(once); +});