@commandbar/foobar
Usage
npm install @commandbar/foobar
or
yarn add @commandbar/foobar
First initialize CommandBar and then boot it up!
// App.js
import { init as initCommandBar } from '@commandbar/foobar';
initCommandBar('MY_ORG_ID');
// Identify user...
const userID = ...
window.CommandBar.boot(userID);
Regenerate Screenshots
To regenerate the screenshots for local runs, you just need to run the commands with -u
at the end, like yarn test-storybook -u
or yarn playwright test -u
.
To regenerate screenshots for CI, you need to have docker
installed. Then, build storybook:
yarn build-storybook --quiet
After this, you're able to recreate the screenshots:
yarn playwright:generate:screenshots
or
yarn test-storybook:generate:screenshots
Bear in mind that the commands above may break your node_modules
installation, because they're mounting it in a linux container. Running yarn
after the screenshots have been updated will sort it out.