Script for updating storybook screenshots (#30340)
* Script for updating storybook screenshots Requires https://github.com/element-hq/element-modules/pull/43 * Prettier
This commit is contained in:
@@ -31,6 +31,9 @@ const config: StorybookConfig = {
|
|||||||
},
|
},
|
||||||
// Needed for counterpart to work
|
// Needed for counterpart to work
|
||||||
plugins: [nodePolyfills({ include: ["process", "util"] })],
|
plugins: [nodePolyfills({ include: ["process", "util"] })],
|
||||||
|
server: {
|
||||||
|
allowedHosts: ["localhost", ".docker.internal"],
|
||||||
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
+2
-1
@@ -69,7 +69,8 @@
|
|||||||
"storybook": "storybook dev -p 6007",
|
"storybook": "storybook dev -p 6007",
|
||||||
"build-storybook": "storybook build",
|
"build-storybook": "storybook build",
|
||||||
"test:storybook": "test-storybook --url http://localhost:6007/",
|
"test:storybook": "test-storybook --url http://localhost:6007/",
|
||||||
"test:storybook:ci": "concurrently -k -s first -n \"SB,TEST\" \"yarn storybook\" \"wait-on tcp:6007 && yarn test-storybook --url http://localhost:6007/ --ci --maxWorkers=2\""
|
"test:storybook:ci": "concurrently -k -s first -n \"SB,TEST\" \"yarn storybook --no-open\" \"wait-on tcp:6007 && yarn test-storybook --url http://localhost:6007/ --ci --maxWorkers=2\"",
|
||||||
|
"test:storybook:update": "playwright-screenshots --entrypoint yarn --with-node-modules && playwright-screenshots --entrypoint /work/node_modules/.bin/test-storybook --with-node-modules --url http://host.docker.internal:6007/ --updateSnapshot"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"**/pretty-format/react-is": "19.1.0",
|
"**/pretty-format/react-is": "19.1.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user