Skip to content

Commit 0b80962

Browse files
committed
chore(test): Extend the circular generic test with cross references between two interfaces
1 parent aa5285f commit 0b80962

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/transformer/descriptor/generic/extends.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,11 @@ describe('for generic', () => {
247247
describe('with circular', () => {
248248
interface A extends ClassWithGenerics<A> {
249249
b: number;
250+
B: B;
250251
}
251252
interface B extends ClassWithGenerics<B> {
252253
c: string;
254+
A: A;
253255
}
254256

255257
it('should avoid infinite extension', () => {
@@ -259,6 +261,7 @@ describe('for generic', () => {
259261
expect(propertiesA.b).toBe(0);
260262
expect(propertiesB.a.a.a.c).toBe('');
261263
expect(propertiesB.c).toBe('');
264+
expect(propertiesB.A.B.A.a.b).toBe(0);
262265
});
263266
});
264267

0 commit comments

Comments
 (0)