generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
Description
Describe the bug
I am trying to run the Storybook test runner with npx test-storybook --url http://localhost:4400 --config-dir libs/ui/.storybook.
I consistently get the following error, even after removing all Jest, Playwright, and nyc dependencies and performing a clean install.
TypeError [ERR_INVALID_ARG_TYPE]: Jest: Got error running globalSetup - .../playwright/global-setup.js, reason: The "original" argument must be of type function. Received an instance of Object
at promisify (node:internal/util:400:3)
at Object.<anonymous> (.../nyc/index.js:10:14)
...
To Reproduce
To Reproduce
Run the following commands:
npm install
npx test-storybook --url http://localhost:4400 --config-dir libs/ui/.storybook
Observe the error:
TypeError [ERR_INVALID_ARG_TYPE]: Jest: Got error running globalSetup - .../playwright/global-setup.js, reason: The "original" argument must be of type function. Received an instance of Object
...
System
Storybook Environment Info:
System:
OS: Windows 11 10.0.26100
CPU: (12) x64 13th Gen Intel(R) Core(TM) i7-1355U
Binaries:
Node: 20.17.0 - C:\nvm4w\nodejs\node.EXE
npm: 11.5.2 - C:\nvm4w\nodejs\npm.CMD <----- active
Browsers:
Edge: Chromium (140.0.3485.54)
npmPackages:
@storybook/core-server: ^8.6.14 => 8.6.14
@storybook/react-webpack5: 8.6.14 => 8.6.14
@storybook/test: 8.6.14 => 8.6.14
@storybook/test-runner: ^0.23.0 => 0.23.0
storybook: 8.6.14 => 8.6.14Additional context
List What I Have Tried
- Removed all Jest, Playwright, and nyc dependencies from [package.json]
- Deleted node_modules and [package-lock.json]
- Reinstalled all dependencies
- Aligned all Storybook packages to the same version
- Tried different versions of @storybook/test-runner
Is this a known compatibility issue?
Are there any workarounds or specific versions I should use?
What else can I try to resolve this?
Reactions are currently unavailable