Skip to content

Commit

Permalink
chore(deps-dev): bump @faker-js/faker from 8.4.1 to 9.0.0 (#5030)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump @faker-js/faker from 8.4.1 to 9.0.0

Bumps [@faker-js/faker](https://github.com/faker-js/faker) from 8.4.1 to 9.0.0.
- [Release notes](https://github.com/faker-js/faker/releases)
- [Changelog](https://github.com/faker-js/faker/blob/next/CHANGELOG.md)
- [Commits](faker-js/faker@v8.4.1...v9.0.0)

---
updated-dependencies:
- dependency-name: "@faker-js/faker"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps-dev): bump @faker-js/faker from 8.4.1 to 9.0.0

Bumps [@faker-js/faker](https://github.com/faker-js/faker) from 8.4.1 to 9.0.0.
- [Release notes](https://github.com/faker-js/faker/releases)
- [Changelog](https://github.com/faker-js/faker/blob/next/CHANGELOG.md)
- [Commits](faker-js/faker@v8.4.1...v9.0.0)

---
updated-dependencies:
- dependency-name: "@faker-js/faker"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* cast createRandomHibpListing as unknown for faker type changes

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Robert Helmer <[email protected]>
  • Loading branch information
dependabot[bot] and rhelmer authored Sep 10, 2024
1 parent 526fd41 commit bd762fb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"winston": "^3.14.2"
},
"devDependencies": {
"@faker-js/faker": "^8.4.1",
"@faker-js/faker": "^9.0.0",
"@playwright/test": "^1.47.0",
"@storybook/addon-a11y": "^8.2.9",
"@storybook/addon-actions": "^8.2.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { BreachIndexView, Props as ViewProps } from "./BreachIndexView";
import { getL10n } from "../../../../functions/l10n/storybookAndJest";
import { PublicShell } from "../PublicShell";
import { createRandomHibpListing } from "../../../../../apiMocks/mockData";
import { HibpLikeDbBreach } from "../../../../../utils/hibp";

const meta: Meta<typeof BreachIndexView> = {
title: "Pages/Public/Breach index",
Expand All @@ -24,8 +25,11 @@ type Story = StoryObj<typeof BreachIndexView>;
export const BreachIndexViewStory: Story = {
name: "Breach index",
args: {
allBreaches: faker.helpers.multiple(createRandomHibpListing, {
count: { min: 7, max: 200 },
}),
allBreaches: faker.helpers.multiple(
createRandomHibpListing as (v: unknown, index: number) => unknown,
{
count: { min: 7, max: 200 },
},
) as unknown as HibpLikeDbBreach[],
},
};

0 comments on commit bd762fb

Please sign in to comment.