Skip to content

Commit 8f79f95

Browse files
author
Kanchalai Tanglertsampan
committed
Add tests and baselines
1 parent ea01ad4 commit 8f79f95

File tree

6 files changed

+45
-0
lines changed

6 files changed

+45
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
tests/cases/compiler/conflictMarkerTrivia3.tsx(1,11): error TS17004: Cannot use JSX unless the '--jsx' flag is provided.
2+
tests/cases/compiler/conflictMarkerTrivia3.tsx(1,16): error TS1005: '</' expected.
3+
tests/cases/compiler/conflictMarkerTrivia3.tsx(2,1): error TS1185: Merge conflict marker encountered.
4+
5+
6+
==== tests/cases/compiler/conflictMarkerTrivia3.tsx (3 errors) ====
7+
const x = <div>
8+
~~~~~
9+
!!! error TS17004: Cannot use JSX unless the '--jsx' flag is provided.
10+
11+
<<<<<<< HEAD
12+
~~~~~~~~~~~~
13+
!!! error TS1005: '</' expected.
14+
~~~~~~~
15+
!!! error TS1185: Merge conflict marker encountered.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//// [conflictMarkerTrivia3.tsx]
2+
const x = <div>
3+
<<<<<<< HEAD
4+
5+
//// [conflictMarkerTrivia3.js]
6+
var x = <div></>;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
tests/cases/compiler/conflictMarkerTrivia4.ts(1,12): error TS2304: Cannot find name 'div'.
2+
tests/cases/compiler/conflictMarkerTrivia4.ts(2,1): error TS1185: Merge conflict marker encountered.
3+
tests/cases/compiler/conflictMarkerTrivia4.ts(2,13): error TS1109: Expression expected.
4+
5+
6+
==== tests/cases/compiler/conflictMarkerTrivia4.ts (3 errors) ====
7+
const x = <div>
8+
~~~
9+
!!! error TS2304: Cannot find name 'div'.
10+
<<<<<<< HEAD
11+
~~~~~~~
12+
!!! error TS1185: Merge conflict marker encountered.
13+
14+
!!! error TS1109: Expression expected.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//// [conflictMarkerTrivia4.ts]
2+
const x = <div>
3+
<<<<<<< HEAD
4+
5+
//// [conflictMarkerTrivia4.js]
6+
var x = ;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const x = <div>
2+
<<<<<<< HEAD
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const x = <div>
2+
<<<<<<< HEAD

0 commit comments

Comments
 (0)