Skip to content

Commit b0f0eb1

Browse files
committed
Update TS output to account for bug
microsoft/TypeScript#51626
1 parent 7f00c90 commit b0f0eb1

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

packages/esbuild-plugin-typecheck/test/esbuild-plugin-typecheck.test.ts

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,15 @@ describe('eslint-plugin-typecheck', () => {
245245

246246
it('produces no output by default', async () => {
247247
const { output } = await build.run('pkg-three/build.js', [], { watch: true });
248-
expect(output).toEqual(['✔ Typecheck passed', 'ℹ Typecheck finished in TIME']);
248+
expect(output).toEqual([
249+
'✔ Typecheck passed',
250+
'ℹ Typecheck finished in TIME',
251+
252+
// TODO: remove after https://github.com/microsoft/TypeScript/pull/51626 is released
253+
'✔ Typecheck passed',
254+
'ℹ Typecheck finished in TIME',
255+
// /TODO
256+
]);
249257

250258
await expect(build.findTSOutput()).resolves.toEqual([]);
251259
});
@@ -269,6 +277,13 @@ describe('eslint-plugin-typecheck', () => {
269277
"../pkg-one/one.ts(7,33): error TS2504: Type 'AsyncIterator<string, any, undefined>' must have a '[Symbol.asyncIterator]()' method that returns an async iterator.",
270278
'✖ Typecheck failed with 1 error',
271279
'ℹ Typecheck finished in TIME',
280+
281+
// TODO: remove after https://github.com/microsoft/TypeScript/pull/51626 is released
282+
"../pkg-one/one.ts(7,33): error TS2504: Type 'AsyncIterator<string, any, undefined>' must have a '[Symbol.asyncIterator]()' method that returns an async iterator.",
283+
'✖ Typecheck failed with 1 error',
284+
'ℹ Typecheck finished in TIME',
285+
// /TODO
286+
272287
// two-error
273288
"../pkg-two/two.ts(8,33): error TS2504: Type 'AsyncIterator<string, any, undefined>' must have a '[Symbol.asyncIterator]()' method that returns an async iterator.",
274289
"../pkg-one/one.ts(7,33): error TS2504: Type 'AsyncIterator<string, any, undefined>' must have a '[Symbol.asyncIterator]()' method that returns an async iterator.",
@@ -281,6 +296,11 @@ describe('eslint-plugin-typecheck', () => {
281296
// two
282297
'✔ Typecheck passed',
283298
'ℹ Typecheck finished in TIME',
299+
300+
// TODO: remove after https://github.com/microsoft/TypeScript/pull/51626 is released
301+
'✔ Typecheck passed',
302+
'ℹ Typecheck finished in TIME',
303+
// /TODO
284304
]);
285305

286306
await expect(build.findTSOutput()).resolves.toEqual([
@@ -302,7 +322,15 @@ describe('eslint-plugin-typecheck', () => {
302322
watch: true,
303323
});
304324

305-
expect(output).toEqual(['✔ Typecheck passed', 'ℹ Typecheck finished in TIME']);
325+
expect(output).toEqual([
326+
'✔ Typecheck passed',
327+
'ℹ Typecheck finished in TIME',
328+
329+
// TODO: remove after https://github.com/microsoft/TypeScript/pull/51626 is released
330+
'✔ Typecheck passed',
331+
'ℹ Typecheck finished in TIME',
332+
// /TODO
333+
]);
306334

307335
await expect(build.findTSOutput()).resolves.toEqual([
308336
'pkg-one/build/one.js',

0 commit comments

Comments
 (0)