diff --git a/.npmignore b/.npmignore index 54bdf08..30ba8a2 100644 --- a/.npmignore +++ b/.npmignore @@ -8,7 +8,6 @@ utilities/ .editorconfig .prettierrc doczrc.js -global.d.ts jest.config.js jest.setup.ts plopfile.js diff --git a/.prettierrc b/.prettierrc index 75c93d5..3380468 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,6 +4,6 @@ "printWidth": 120, "semi": false, "trailingComma": "all", - "quoteProps": "consistent", + "quoteProps": "as-needed", "arrowParens": "always" } diff --git a/lib/components/Button/Button.test.tsx b/lib/components/Button/Button.test.tsx index e2c1b70..c2f286c 100644 --- a/lib/components/Button/Button.test.tsx +++ b/lib/components/Button/Button.test.tsx @@ -1,16 +1,17 @@ +/// +/// + import * as fc from 'fast-check' import * as Enzyme from 'enzyme' import * as Axe from 'jest-axe' import * as React from 'react' -import Button, { Variant } from './Button' +import Button, { Variant, ButtonElement } from './Button' import stringify from '../../services/stringify' const CUSTOM_VARIANTS: string[] = ['primary'] const AVAILABLE_VARIANTS: string[] = ['outline', 'primary'] -const BLOCK_DISPLAYS = ['block', 'grid', 'flex', 'table'] - it('should exist', () => { expect(Button).toBeDefined() }) @@ -23,21 +24,46 @@ it('should render without crashing given minimum required props', () => { expect(() =>