@opengeoweb/shared 9.16.0 → 9.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -15
- package/index.esm.js +1105 -596
- package/package.json +4 -2
- package/src/index.d.ts +3 -0
- package/src/lib/components/AlertBanner/AlertBanner.stories.d.ts +2 -2
- package/src/lib/components/AppHeader/AppHeader.stories.d.ts +2 -2
- package/src/lib/components/Avatar/Avatar.stories.d.ts +2 -2
- package/src/lib/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +2 -2
- package/src/lib/components/CustomAccordion/CustomAccordion.stories.d.ts +2 -2
- package/src/lib/components/CustomDialog/CustomDialog.stories.d.ts +2 -2
- package/src/lib/components/CustomIconButton/CustomIconButton.stories.d.ts +2 -2
- package/src/lib/components/CustomSlider/CustomSlider.stories.d.ts +2 -2
- package/src/lib/components/CustomToggleButton/CustomToggleButton.stories.d.ts +2 -2
- package/src/lib/components/ErrorBoundary/ErrorBoundary.d.ts +5 -0
- package/src/lib/components/LastUpdateTime/LastUpdateTime.d.ts +2 -2
- package/src/lib/components/LastUpdateTime/LastUpdateTime.stories.d.ts +2 -2
- package/src/lib/components/LastUpdateTime/index.d.ts +1 -1
- package/src/lib/components/Providers/Providers.d.ts +6 -0
- package/src/lib/components/SearchHighlight/SearchHighlight.stories.d.ts +2 -2
- package/src/lib/components/StatusTag/StatusTag.stories.d.ts +2 -2
- package/src/lib/components/ToggleMenu/ToggleMenu.stories.d.ts +2 -2
- package/src/lib/components/ToolContainer/ToolContainerSnapShots.stories.d.ts +4 -4
- package/src/lib/components/TooltipSelect/TooltipSelect.stories.d.ts +2 -2
- package/src/lib/components/UserMenu/CheatSheet/CheatSheet.stories.d.ts +4 -4
- package/src/lib/components/UserMenu/CheatSheet/ShortcutList.d.ts +2 -10
- package/src/lib/components/UserMenu/UserMenu.d.ts +1 -0
- package/src/lib/components/UserMenu/UserMenu.stories.d.ts +4 -4
- package/src/lib/components/UserMenu/UserMenuSentryRecording.d.ts +7 -0
- package/src/lib/components/UserMenu/index.d.ts +1 -0
- package/src/lib/utils/dateUtils/dateFormats.d.ts +6 -0
- package/src/lib/utils/dateUtils/dateUtils.d.ts +13 -0
- package/src/lib/utils/dateUtils/index.d.ts +1 -0
- package/src/lib/utils/i18n.d.ts +3 -0
- package/src/lib/storyshots/Storyshots.spec.d.ts +0 -1
package/README.md
CHANGED
|
@@ -21,18 +21,3 @@ import { Example } from '@opengeoweb/shared';
|
|
|
21
21
|
## Running unit tests
|
|
22
22
|
|
|
23
23
|
Run `nx test shared` to execute the unit tests via [Jest](https://jestjs.io).
|
|
24
|
-
|
|
25
|
-
## Image snapshot testing
|
|
26
|
-
|
|
27
|
-
The current regex filters on storyname takeSnapshot. So to add a story to the snapshot tests, simply add (takeSnapshot) to it's storyName and run the snapshot tests.
|
|
28
|
-
|
|
29
|
-
[Read more about snapshot testing](https://gitlab.com/opengeoweb/opengeoweb/#image-snapshot-testing)
|
|
30
|
-
|
|
31
|
-
### Running snapshot tests and updating snapshots locally
|
|
32
|
-
|
|
33
|
-
1. You need to have [docker](https://docs.docker.com/get-docker/) installed and running.
|
|
34
|
-
2. Start Chromium by running: `npm run start-chromium`. (This will start a docker container with chromium, to run snapshot tests in. We need this to make sure everyone gets the same snapshot results.)
|
|
35
|
-
3. Run the snapshot tests: `npm run test:image-snap-shared`. This will first create a new static storybook build and then run the tests.
|
|
36
|
-
4. If a snapshot test fails, you can find and inspect the differences in `libs/shared/src/lib/storyshots/__image_snapshots__/__diff_output__/`.
|
|
37
|
-
5. To update the snapshots, run `npm run test:image-snap-shared-update`. Snapshots are saved under `libs/shared/src/lib/storyshots/__image_snapshots__/`. Make sure to commit the new snapshots.
|
|
38
|
-
6. Stop Chromium by running: `npm run stop-chromium`.
|