Skip to content

Commit

Permalink
Merge pull request #343 from chromaui/log-prefix
Browse files Browse the repository at this point in the history
Add a prefix to log messages
  • Loading branch information
ghengeveld authored Oct 24, 2024
2 parents dd12fb8 + 8ec5c73 commit 4bd2b10
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@storybook/channels": "^8.3.0",
"@storybook/telemetry": "^8.3.0",
"@storybook/types": "^8.3.0",
"chromatic": "^11.4.0",
"chromatic": "^11.15.0",
"filesize": "^10.0.12",
"jsonfile": "^6.1.0",
"react-confetti": "^6.1.0",
Expand Down
1 change: 1 addition & 0 deletions src/manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ addons.register(ADDON_ID, (api) => {
addons.add(TEST_PROVIDER_ID, {
type: Addon_TypesEnum.experimental_TEST_PROVIDER,
runnable: true,
name: "Visual tests",
title: ({ failed }) => (failed ? "Visual tests didn't complete" : "Visual tests"),
description: (state) => <TestingModuleDescription {...state} api={api} />,
} as Addon_TestProviderType);
Expand Down
1 change: 1 addition & 0 deletions src/runChromaticBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export const runChromaticBuild = async (
options: {
...options,
...CONFIG_OVERRIDES,
logPrefix: "\x1b[38;5;202mChromatic\x1B[0m:",
experimental_onTaskStart: onStartOrProgress(localBuildProgress, timeout),
experimental_onTaskProgress: onStartOrProgress(localBuildProgress, timeout),
experimental_onTaskComplete: onCompleteOrError(localBuildProgress, timeout),
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ __metadata:
"@vitejs/plugin-react": "npm:^3.1.0"
auto: "npm:^11.0.5"
boxen: "npm:^5.0.1"
chromatic: "npm:^11.4.0"
chromatic: "npm:^11.15.0"
date-fns: "npm:^2.30.0"
dedent: "npm:^0.7.0"
eslint: "npm:^8.42.0"
Expand Down Expand Up @@ -5437,9 +5437,9 @@ __metadata:
languageName: node
linkType: hard

"chromatic@npm:^11.4.0":
version: 11.4.0
resolution: "chromatic@npm:11.4.0"
"chromatic@npm:^11.15.0":
version: 11.15.0
resolution: "chromatic@npm:11.15.0"
peerDependencies:
"@chromatic-com/cypress": ^0.*.* || ^1.0.0
"@chromatic-com/playwright": ^0.*.* || ^1.0.0
Expand All @@ -5452,7 +5452,7 @@ __metadata:
chroma: dist/bin.js
chromatic: dist/bin.js
chromatic-cli: dist/bin.js
checksum: 10c0/97ef0cfcc267f7da9946a8069345c31b8491fab329186f78cf5fce6b6d811d2105d1285c7b0b6ba76c2255682b720527f14070550d9c8cd17be26d00c3bf4ea3
checksum: 10c0/8add464ff39417c402b77d973300806a50bd5e3b8f95eeccd965787536b4273e6bfa6b6e0716417bf342cd5106e82e8f1e0dec4a290a89c00e7862f3833fff10
languageName: node
linkType: hard

Expand Down

0 comments on commit 4bd2b10

Please sign in to comment.