Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Dec 14, 2023
1 parent 3e35b65 commit d0d0c41
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"build:watch": "node ../../scripts/build-app.js watch ./src/ui/index.html ./dist /app/",
"build:source-map-explorer": "npm run clean && npm run build && ../../scripts/source-map-explorer.sh",
"build:storybook": "storybook build",
"start:storybook": "start-storybook -p 6006"
"start:storybook": "storybook dev -p 6006"
},
"dependencies": {
"@lhci/utils": "0.1.0",
Expand Down
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.
6 changes: 3 additions & 3 deletions packages/server/test/ui/storybook.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ initStoryshots({
await page.waitForTimeout(2000);

const dimensions = await page.evaluate(() => {
// Note: #root is made by storybook, #storybook-test-root is made by us in preview.jsx
// #root > #storybook-test-root > some_element_being_tested
const elements = [...document.querySelectorAll('#root, #root *')];
// Note: #storybook-root is made by storybook, #storybook-test-root is made by us in preview.jsx
// #storybook-root > #storybook-test-root > some_element_being_tested
const elements = [...document.querySelectorAll('#storybook-root, #storybook-root *')];
return {
width: Math.ceil(Math.max(...elements.map(e => e.clientWidth))),
height: Math.ceil(Math.max(...elements.map(e => e.clientHeight))),
Expand Down
2 changes: 0 additions & 2 deletions scripts/build-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ async function main() {
await context.rebuild();
if (command === 'watch') {
await context.watch();
await context.serve({port: 9009});
console.log('http://localhost:9009');
} else {
await context.dispose();
}
Expand Down

0 comments on commit d0d0c41

Please sign in to comment.