new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Storybook · Writing and testing · all subjects

parameters & configuration

6 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Rename globals to initialGlobals in preview configuration

In Storybook 9, the `globals` annotation has been renamed to `initialGlobals` in the `.storybook/preview.js` file. Replace `globals: { theme: 'light' }` with `initialGlobals: { theme: 'light' }`.

Node.js and TypeScript version requirements for Storybook 9

Storybook 9 requires Node.js 20+ and TypeScript 4.9+. React Native uses the `.rnstorybook` directory.

Storybook minimum version requirement

Storybook must be at least version 10.5 or next (while 10.5 is not yet released) in the project.

@storybook/addon-mcp addon requirement

The @storybook/addon-mcp addon must be installed in the project. If missing, install it with the command: npx storybook add @storybook/addon-mcp

context-in-play-function ESLint rule configurations

The context-in-play-function rule is included in the recommended and flat/recommended configurations, as well as the addon-interactions and flat/addon-interactions configurations.

Disable context-in-play-function rule in test files

The context-in-play-function ESLint rule should not be applied to test files. Ensure Storybook ESLint rules are defined only for story files. Refer to the eslint-plugin documentation for instructions on overriding or disabling rules.

Give your agent this brain