diff --git a/tests/format/css/atrule/__snapshots__/format.test.js.snap b/tests/format/css/atrule/__snapshots__/format.test.js.snap index bbfb90c21..7c717da30 100644 --- a/tests/format/css/atrule/__snapshots__/format.test.js.snap +++ b/tests/format/css/atrule/__snapshots__/format.test.js.snap @@ -3667,6 +3667,11 @@ margin size: A4 portrait; } +@page:first +{ + counter-reset: page 1; +} + =====================================output===================================== @page { margin: 1cm; @@ -3708,6 +3713,10 @@ margin size: A4 portrait; } +@page:first { + counter-reset: page 1; +} + ================================================================================ `; diff --git a/tests/format/css/atrule/page.css b/tests/format/css/atrule/page.css index 3ec8df6c6..7186f1370 100644 --- a/tests/format/css/atrule/page.css +++ b/tests/format/css/atrule/page.css @@ -67,3 +67,8 @@ margin @page vertical { size: A4 portrait; } + +@page:first +{ + counter-reset: page 1; +} diff --git a/tests/format/typescript/comments/10260.ts b/tests/format/typescript/comments/10260.ts new file mode 100644 index 000000000..db7fb22e8 --- /dev/null +++ b/tests/format/typescript/comments/10260.ts @@ -0,0 +1,33 @@ +type A = ( + /** @deprecated */ + () => void +); +type B = ( + /** @deprecated */ + new () => void +); +type C = ( + /** @deprecated */ + () => void +); +type D = ( + /** @deprecated */ + new () => void +); + +type A2 = ( + /** comment */ + () => void +); +type B2 = ( + /** comment */ + new () => void +); +type C2 = ( + /** comment */ + () => void +); +type D2 = ( + /** comment */ + new () => void +); diff --git a/tests/format/typescript/comments/__snapshots__/format.test.js.snap b/tests/format/typescript/comments/__snapshots__/format.test.js.snap index a355bf9b9..4c861ea41 100644 --- a/tests/format/typescript/comments/__snapshots__/format.test.js.snap +++ b/tests/format/typescript/comments/__snapshots__/format.test.js.snap @@ -1,5 +1,75 @@ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +exports[`10260.ts format 1`] = ` +====================================options===================================== +parsers: ["typescript"] +printWidth: 80 + | printWidth +=====================================input====================================== +type A = ( + /** @deprecated */ + () => void +); +type B = ( + /** @deprecated */ + new () => void +); +type C = ( + /** @deprecated */ + () => void +); +type D = ( + /** @deprecated */ + new () => void +); + +type A2 = ( + /** comment */ + () => void +); +type B2 = ( + /** comment */ + new () => void +); +type C2 = ( + /** comment */ + () => void +); +type D2 = ( + /** comment */ + new () => void +); + +=====================================output===================================== +type A = + /** @deprecated */ + () => void; +type B = + /** @deprecated */ + new () => void; +type C = + /** @deprecated */ + () => void; +type D = + /** @deprecated */ + new () => void; + +type A2 = + /** comment */ + () => void; +type B2 = + /** comment */ + new () => void; +type C2 = + /** comment */ + () => void; +type D2 = + /** comment */ + new () => void; + +================================================================================ +`; + exports[`11662.ts format 1`] = ` ====================================options===================================== parsers: ["typescript"]