You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/esbuild/test/index.js
+11-12Lines changed: 11 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -231,7 +231,7 @@ test('@mdx-js/esbuild', async function (t) {
231
231
},
232
232
notes: [],
233
233
pluginName: '@mdx-js/esbuild',
234
-
text: 'Unexpected character `/` (U+002F) before local name, expected a character that can start a name, such as a letter, `$`, or `_` (note: to create a link in MDX, use `[text](url)`)'
234
+
text: 'Cannot process MDX file with esbuild:\n 1:12: Unexpected character `/` (U+002F) before local name, expected a character that can start a name, such as a letter, `$`, or `_` (note: to create a link in MDX, use `[text](url)`)'
235
235
})
236
236
}
237
237
@@ -271,7 +271,7 @@ test('@mdx-js/esbuild', async function (t) {
271
271
location: {
272
272
column: 20,
273
273
file: 'test/esbuild.mdx',
274
-
length: 1,
274
+
length: 0,
275
275
line: 3,
276
276
lineText: '# Hello, <Message />',
277
277
namespace: 'file',
@@ -290,7 +290,7 @@ test('@mdx-js/esbuild', async function (t) {
290
290
file: 'test/esbuild.mdx',
291
291
length: 0,
292
292
line: 0,
293
-
lineText: 'export function Message() { return <>World!</> }',
293
+
lineText: '',
294
294
namespace: 'file',
295
295
suggestion: ''
296
296
},
@@ -305,7 +305,7 @@ test('@mdx-js/esbuild', async function (t) {
305
305
file: 'test/esbuild.mdx',
306
306
length: 0,
307
307
line: 0,
308
-
lineText: 'export function Message() { return <>World!</> }',
308
+
lineText: '',
309
309
namespace: 'file',
310
310
suggestion: ''
311
311
},
@@ -365,7 +365,7 @@ test('@mdx-js/esbuild', async function (t) {
365
365
file: 'test/esbuild.mdx',
366
366
length: 11,
367
367
line: 3,
368
-
lineText: '# Hello, <Message />',
368
+
lineText: '',
369
369
namespace: 'file',
370
370
suggestion: ''
371
371
},
@@ -414,7 +414,10 @@ test('@mdx-js/esbuild', async function (t) {
414
414
file.message('3',tree)
415
415
file.message('4',esm)
416
416
file.message('5',text)
417
-
file.message('6',jsx)
417
+
constm6=file.message('6',jsx)
418
+
assert(m6.place)
419
+
assert('start'inm6.place)
420
+
deletem6.place.start.offset
418
421
file.message('7',head.position.end).fatal=true// End of heading
419
422
}
420
423
}
@@ -439,10 +442,6 @@ test('@mdx-js/esbuild', async function (t) {
0 commit comments