Skip to content

Commit 4aaae65

Browse files
authored
Update api validator tests to be compatible with [email protected] (#2938)
1 parent e100ba5 commit 4aaae65

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.changeset/evil-coats-serve.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

scripts/components/api-changes-validator/api_changes_validator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ export class ApiChangesValidator {
126126
'--target',
127127
'es2022',
128128
'--noEmit',
129+
'--verbatimModuleSyntax',
130+
'false',
129131
];
130132
await execa('npx', tscArgs, { cwd: this.testProjectPath });
131133
};
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
index.ts(8,9): error TS2322: Type 'SampleTypeBaseline' is not assignable to type 'SampleType'.
2-
Types of property 'anotherProperty' are incompatible.
3-
Type 'string | undefined' is not assignable to type 'string'.
4-
Type 'undefined' is not assignable to type 'string'.
2+
Property 'anotherProperty' is optional in type 'SampleTypeBaseline' but required in type 'SampleType'.

0 commit comments

Comments
 (0)