-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps): upgrade deps and fix issues with storybook package hoisting
- Loading branch information
Showing
26 changed files
with
5,104 additions
and
4,414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
auto-install-peers=true | ||
public-hoist-pattern[]=@types* | ||
public-hoist-pattern[]=@storybook* | ||
public-hoist-pattern[]=@testing-library* | ||
public-hoist-pattern[]=jest* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
{ | ||
"root": false, | ||
"extends": "../../.eslintrc", | ||
"parserOptions": { | ||
"project": true | ||
}, | ||
"rules": { | ||
"no-console": 0, | ||
"@typescript-eslint/explicit-function-return-type": 0, | ||
"@typescript-eslint/no-explicit-any": "warn", | ||
"react/react-in-jsx-scope": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
docs/storybook/content/stories/01-handle/00-react-compare-slider-handle.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
docs/storybook/content/stories/99-tests/initial-position.test.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { expect } from '@storybook/jest'; | ||
import type { Meta } from '@storybook/react'; | ||
import { waitFor, within } from '@storybook/testing-library'; | ||
|
||
import { Template, getArgs } from './test-utils.test'; | ||
|
||
export default { | ||
title: 'Tests/Browser/Initial Position', | ||
} as Meta; | ||
|
||
export const StartAt0 = Template.bind({}); | ||
StartAt0.args = getArgs({ position: 0 }); | ||
|
||
StartAt0.play = async ({ canvasElement }) => { | ||
const canvas = within(canvasElement); | ||
const sliderRoot = canvas.queryByTestId(StartAt100.args?.['data-testid']) as Element; | ||
|
||
await waitFor(() => expect(sliderRoot).toBeInTheDocument()); | ||
await waitFor(() => expect(canvas.getByRole('slider').getAttribute('aria-valuenow')).toBe('0')); | ||
}; | ||
|
||
export const StartAt100 = Template.bind({}); | ||
StartAt100.args = getArgs({ position: 100 }); | ||
|
||
StartAt100.play = async ({ canvasElement }) => { | ||
const canvas = within(canvasElement); | ||
const sliderRoot = canvas.queryByTestId(StartAt100.args?.['data-testid']) as Element; | ||
|
||
await waitFor(() => expect(sliderRoot).toBeInTheDocument()); | ||
await waitFor(() => expect(canvas.getByRole('slider').getAttribute('aria-valuenow')).toBe('100')); | ||
}; |
Oops, something went wrong.