Skip to content

Commit

Permalink
Add support for Storybook test runner's hook api (#263)
Browse files Browse the repository at this point in the history
* add support for storybook test runner's hook api

* docs
  • Loading branch information
jgoux authored Sep 24, 2023
1 parent 2a5504a commit 7611360
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/storybook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ or `devDependencies`:
```json
{
"storybook": {
"config": [".storybook/{main,manager}.{js,ts}"],
"config": [".storybook/{main,manager,test-runner}.{js,ts}"],
"entry": [".storybook/preview.{js,jsx,ts,tsx}", "**/*.stories.{js,jsx,ts,tsx}"],
"project": [".storybook/**/*.{js,jsx,ts,tsx}"]
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/storybook/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const ENABLERS = [/^@storybook\//, '@nrwl/storybook'];

export const isEnabled: IsPluginEnabledCallback = ({ dependencies }) => hasDependency(dependencies, ENABLERS);

export const CONFIG_FILE_PATTERNS = ['.storybook/{main,manager}.{js,ts}'];
export const CONFIG_FILE_PATTERNS = ['.storybook/{main,manager,test-runner}.{js,ts}'];

export const ENTRY_FILE_PATTERNS = ['.storybook/preview.{js,jsx,ts,tsx}', '**/*.stories.{js,jsx,ts,tsx}'];

Expand Down

0 comments on commit 7611360

Please sign in to comment.