Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Jan 15, 2025
1 parent 19891c9 commit 81bb82a
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 7 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions packages/keychain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"storybook": "storybook dev -p 6001",
"storybook:build": "storybook build",
"storybook:serve": "pnpm storybook:build --quiet && pnpm http-server -c-1 storybook-static --port 6006 --silent",
"test:storybook:update": "start-server-and-test 'pnpm storybook:serve' 6006 'pnpm test-storybook -u'",
"test-storybook": "test-storybook",
"test:storybook": "start-server-and-test 'pnpm storybook:serve' 6006 'pnpm test-storybook'"
},
"dependencies": {
Expand Down Expand Up @@ -102,4 +102,4 @@
"@starknet-react/core": "^3.0.2",
"starknet": "^6.11.0"
}
}
}
16 changes: 16 additions & 0 deletions packages/keychain/src/components/slot/Consent.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { Meta, StoryObj } from "@storybook/react";
import { Consent } from "./consent";

const meta: Meta<typeof Consent> = {
title: "Slot/Consent",
component: Consent,
decorators: [(Story) => <Story />],
parameters: {
layout: "centered",
},
};

export default meta;
type Story = StoryObj<typeof meta>;

export const Default: Story = {};
1 change: 1 addition & 0 deletions packages/ui-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"storybook": "storybook dev -p 6003",
"storybook:build": "storybook build",
"storybook:serve": "pnpm storybook:build --quiet && pnpm http-server -c-1 storybook-static --port 6007 --silent",
"test-storybook": "test-storybook",
"test:storybook:update": "start-server-and-test 'pnpm storybook:serve' 6007 'pnpm test-storybook --url http://127.0.0.1:6007 -u'",
"test:storybook": "start-server-and-test 'pnpm storybook:serve' 6007 'pnpm test-storybook --url http://127.0.0.1:6007'"
},
Expand Down
19 changes: 14 additions & 5 deletions scripts/update-storybook-snapshot.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
#!/bin/bash

# Run the container with all necessary options
# Check for required arguments
if [ "$#" -lt 2 ]; then
echo "Usage: $0 <package-name> <port>"
echo "Example: $0 @cartridge/keychain 6006"
exit 1
fi

PACKAGE=$1
PORT=$2

# Run the test updates in container
docker run \
--rm \
--network="host" \
-v "$(pwd)":/app \
-v /app/node_modules \
--ipc=host \
-ti \
ghcr.io/cartridge-gg/controller/storybook-env:sha-91a2d36 \
bash -c "
pnpm install --frozen-lockfile && \
pnpm test:storybook:update
"
bash -c "pnpm i && pnpm --filter $PACKAGE test-storybook -u --url http://host.docker.internal:$PORT"

0 comments on commit 81bb82a

Please sign in to comment.