We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f73f870 commit bd726d1Copy full SHA for bd726d1
src/config.test.ts
@@ -19,6 +19,13 @@ describe('validateConfig', () => {
19
'`options.skipTypename` must be a boolean',
20
);
21
});
22
+ it('skipIsAbstractType', () => {
23
+ expect(() => validateConfig({ typesFile: './types', skipIsAbstractType: oneOf([true, false]) })).not.toThrow();
24
+ expect(() => validateConfig({ typesFile: './types' })).not.toThrow();
25
+ expect(() => validateConfig({ typesFile: './types', skipIsAbstractType: 1 })).toThrow(
26
+ '`options.skipIsAbstractType` must be a boolean',
27
+ );
28
+ });
29
it('typesPrefix', () => {
30
expect(() => validateConfig({ typesFile: './types', typesPrefix: 'Prefix' })).not.toThrow();
31
expect(() => validateConfig({ typesFile: './types' })).not.toThrow();
0 commit comments