Skip to content

Commit 248659c

Browse files
committed
CCM-12896: Make test more explicit about type files generated
1 parent 597f791 commit 248659c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/typescript-schema-generator/src/__tests__/generate-types.test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,14 @@ describe('generate-types', () => {
3636

3737
const typeDeclarationFiles = readdirSync(outputDir);
3838

39-
expect(typeDeclarationFiles.length).toBe(4); // 3 schemas + 1 index file
39+
expect(typeDeclarationFiles.length).toBe(4);
4040
expect(typeDeclarationFiles).toEqual(
41-
expect.arrayContaining(['One.d.ts', 'Two.d.ts', 'Three.d.ts']),
41+
expect.arrayContaining([
42+
'index.d.ts',
43+
'One.d.ts',
44+
'Two.d.ts',
45+
'Three.d.ts',
46+
]),
4247
);
4348
});
4449

0 commit comments

Comments
 (0)