fix: create exports for test-suites and test-helpers (#2010)
This commit is contained in:
parent
dbc3fc2db6
commit
3cfc9f9744
16 changed files with 67 additions and 0 deletions
5
.changeset/gentle-melons-raise.md
Normal file
5
.changeset/gentle-melons-raise.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@lion/ui': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
create exports for test-suites and test-helpers
|
||||||
|
|
@ -14,6 +14,7 @@ import '@lion/ui/define/lion-input-date.js';
|
||||||
export const isADate = () => html`
|
export const isADate = () => html`
|
||||||
<lion-input-date label="IsDate" .modelValue=${new Date('foo')}> </lion-input-date>
|
<lion-input-date label="IsDate" .modelValue=${new Date('foo')}> </lion-input-date>
|
||||||
`;
|
`;
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## With minimum date
|
## With minimum date
|
||||||
|
|
|
||||||
3
packages/ui/components/button/test-suites/index.js
Normal file
3
packages/ui/components/button/test-suites/index.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
export { LionButtonSuite } from './LionButton.suite.js';
|
||||||
|
export { LionButtonResetSuite } from './LionButtonReset.suite.js';
|
||||||
|
export { LionButtonSubmitSuite } from './LionButtonSubmit.suite.js';
|
||||||
3
packages/ui/components/calendar/test-helpers/index.js
Normal file
3
packages/ui/components/calendar/test-helpers/index.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
export { CalendarObject } from './CalendarObject.js';
|
||||||
|
export { DayObject } from './DayObject.js';
|
||||||
|
export { weekdayNames } from './weekdayNames.js';
|
||||||
7
packages/ui/components/combobox/test-helpers/index.js
Normal file
7
packages/ui/components/combobox/test-helpers/index.js
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
export {
|
||||||
|
getComboboxMembers,
|
||||||
|
mimicUserTyping,
|
||||||
|
mimicKeyPress,
|
||||||
|
mimicUserTypingAdvanced,
|
||||||
|
getFilteredOptionValues,
|
||||||
|
} from './combobox-helpers.js';
|
||||||
7
packages/ui/components/form-core/test-helpers/index.js
Normal file
7
packages/ui/components/form-core/test-helpers/index.js
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
export {
|
||||||
|
AlwaysInvalid,
|
||||||
|
AlwaysValid,
|
||||||
|
AsyncAlwaysInvalid,
|
||||||
|
AsyncAlwaysValid,
|
||||||
|
} from './ExampleValidators.js';
|
||||||
|
export { getFormControlMembers } from './getFormControlMembers.js';
|
||||||
10
packages/ui/components/form-core/test-suites/index.js
Normal file
10
packages/ui/components/form-core/test-suites/index.js
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
export { runChoiceGroupMixinSuite } from './choice-group/ChoiceGroupMixin.suite.js';
|
||||||
|
export { runChoiceInputMixinSuite } from './choice-group/ChoiceInputMixin.suite.js';
|
||||||
|
export { runFormGroupMixinSuite } from './form-group/FormGroupMixin.suite.js';
|
||||||
|
export { runFormGroupMixinInputSuite } from './form-group/FormGroupMixin-input.suite.js';
|
||||||
|
export { runFormatMixinSuite } from './FormatMixin.suite.js';
|
||||||
|
export { runRegistrationSuite } from './FormRegistrationMixins.suite.js';
|
||||||
|
export { runInteractionStateMixinSuite } from './InteractionStateMixin.suite.js';
|
||||||
|
export { runNativeTextFieldMixinSuite } from './NativeTextFieldMixin.suite.js';
|
||||||
|
export { runValidateMixinSuite } from './ValidateMixin.suite.js';
|
||||||
|
export { runValidateMixinFeedbackPart } from './ValidateMixinFeedbackPart.suite.js';
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
export { DatepickerInputObject } from './DatepickerInputObject.js';
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
export { runInputTelDropdownSuite } from './LionInputTelDropdown.suite.js';
|
||||||
1
packages/ui/components/input-tel/test-helpers/index.js
Normal file
1
packages/ui/components/input-tel/test-helpers/index.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export { mockPhoneUtilManager, restorePhoneUtilManager } from './mockPhoneUtilManager.js';
|
||||||
1
packages/ui/components/input-tel/test-suites/index.js
Normal file
1
packages/ui/components/input-tel/test-suites/index.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export { runInputTelSuite } from './LionInputTel.suite.js';
|
||||||
1
packages/ui/components/input/test-helpers/index.js
Normal file
1
packages/ui/components/input/test-helpers/index.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export { getInputMembers } from './getInputMembers.js';
|
||||||
7
packages/ui/components/localize/test-helpers/index.js
Normal file
7
packages/ui/components/localize/test-helpers/index.js
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
export {
|
||||||
|
setupFakeImport,
|
||||||
|
setupEmptyFakeImportsFor,
|
||||||
|
resetFakeImport,
|
||||||
|
fakeImport,
|
||||||
|
} from './fake-imports.js';
|
||||||
|
export { localizeTearDown } from './localizeTearDown.js';
|
||||||
3
packages/ui/components/overlays/test-helpers/index.js
Normal file
3
packages/ui/components/overlays/test-helpers/index.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
export { createShadowHost } from './createShadowHost.js';
|
||||||
|
export { mimicClick } from './mimicClick.js';
|
||||||
|
export { normalizeTransformStyle } from './normalizeTransformStyle.js';
|
||||||
1
packages/ui/components/overlays/test-suites/index.js
Normal file
1
packages/ui/components/overlays/test-suites/index.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export { runOverlayMixinSuite } from './OverlayMixin.suite.js';
|
||||||
|
|
@ -16,6 +16,21 @@
|
||||||
"types": "./dist-types/exports/*",
|
"types": "./dist-types/exports/*",
|
||||||
"default": "./exports/*"
|
"default": "./exports/*"
|
||||||
},
|
},
|
||||||
|
"./calendar-test-helpers": "./components/calendar/test-helpers/index.js",
|
||||||
|
"./combobox-test-helpers": "./components/combobox/test-helpers/index.js",
|
||||||
|
"./form-core-test-helpers": "./components/form-core/test-helpers/index.js",
|
||||||
|
"./input-test-helpers": "./components/input/test-helpers/index.js",
|
||||||
|
"./input-datepicker-test-helpers": "./components/input-datepicker/test-helpers/index.js",
|
||||||
|
"./input-tel-test-helpers": "./components/input-tel/test-helpers/index.js",
|
||||||
|
"./listbox-test-helpers": "./components/listbox/test-helpers/index.js",
|
||||||
|
"./localize-test-helpers": "./components/localize/test-helpers/index.js",
|
||||||
|
"./overlays-test-helpers": "./components/overlays/test-helpers/index.js",
|
||||||
|
"./button-test-suites": "./components/button/test-suites/index.js",
|
||||||
|
"./form-core-test-suites": "./components/form-core/test-suites/index.js",
|
||||||
|
"./input-tel-test-suites": "./components/input-tel/test-suites/index.js",
|
||||||
|
"./input-tel-dropdown-test-suites": "./components/input-tel-dropdown/test-suites/index.js",
|
||||||
|
"./listbox-test-suites": "./components/listbox/test-suites/index.js",
|
||||||
|
"./overlays-test-suites": "./components/overlays/test-suites/index.js",
|
||||||
"./calendar-translations/*": "./components/calendar/translations/*",
|
"./calendar-translations/*": "./components/calendar/translations/*",
|
||||||
"./combobox-translations/*": "./components/combobox/translations/*",
|
"./combobox-translations/*": "./components/combobox/translations/*",
|
||||||
"./pagination-translations/*": "./components/pagination/translations/*",
|
"./pagination-translations/*": "./components/pagination/translations/*",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue