diff --git a/tests/format/js/dynamic-import/__snapshots__/format.test.js.snap b/tests/format/js/dynamic-import/__snapshots__/format.test.js.snap index 05d949c40..62b2d68fc 100644 --- a/tests/format/js/dynamic-import/__snapshots__/format.test.js.snap +++ b/tests/format/js/dynamic-import/__snapshots__/format.test.js.snap @@ -93,6 +93,16 @@ exports[`import-phase.js format[meriyah] 1`] = ` Cause: [1:7-1:13]: The only valid meta property for import is 'import.meta'" `; +exports[`import-phase.js format[typescript] 1`] = ` +"'source' is not a valid meta-property for keyword 'import'. (1:1) +> 1 | import.source(\`data:text/javascript, + | ^^^^^^^^^^^^^ + 2 | console.log("RUN"); + 3 | \`) + 4 | +Cause: 'source' is not a valid meta-property for keyword 'import'." +`; + exports[`template-literal.js format 1`] = ` ====================================options===================================== parsers: ["babel", "flow", "typescript"] diff --git a/tests/format/js/dynamic-import/format.test.js b/tests/format/js/dynamic-import/format.test.js index 3c75120ca..137e1854f 100644 --- a/tests/format/js/dynamic-import/format.test.js +++ b/tests/format/js/dynamic-import/format.test.js @@ -5,5 +5,6 @@ runFormatTest(import.meta, ["babel", "flow", "typescript"], { acorn: ["import-phase.js"], espree: ["import-phase.js"], meriyah: ["import-phase.js"], + typescript: ["import-phase.js"], }, }); diff --git a/tests/format/markdown/list/__snapshots__/format.test.js.snap b/tests/format/markdown/list/__snapshots__/format.test.js.snap index 0afb5c4ec..8464ac3ab 100644 --- a/tests/format/markdown/list/__snapshots__/format.test.js.snap +++ b/tests/format/markdown/list/__snapshots__/format.test.js.snap @@ -1480,7 +1480,7 @@ tabWidth: 4 - foo - indented code block in bullet + indented code block in bullet --- @@ -1516,7 +1516,7 @@ tabWidth: 4 - [ ] foo - indented code block in checkbox item + indented code block in checkbox item --- @@ -1758,7 +1758,7 @@ tabWidth: 999 - foo - indented code block in bullet + indented code block in bullet --- @@ -1782,7 +1782,7 @@ tabWidth: 999 1. foo - indented code block in numbered item + indented code block in numbered item --- @@ -1794,7 +1794,7 @@ tabWidth: 999 - [ ] foo - indented code block in checkbox item + indented code block in checkbox item --- @@ -1861,7 +1861,7 @@ tabWidth: 999 - item 1-1 - item 1-2 - indented code block + indented code block top level indented code block @@ -4128,8 +4128,8 @@ tabWidth: 4 =====================================output===================================== - [x] short first line. - second paragraph at six spaces that wraps - onto another line here. + second paragraph at six spaces that wraps + onto another line here. ================================================================================ `; @@ -4149,8 +4149,8 @@ tabWidth: 999 =====================================output===================================== - [x] short first line. - second paragraph at six spaces that wraps - onto another line here. + second paragraph at six spaces that wraps + onto another line here. ================================================================================ `;