test-runner icon indicating copy to clipboard operation
test-runner copied to clipboard

[bug] Test runner crashes

Open ganlhi opened this issue 2 years ago • 2 comments

Describe the bug When I try to execute test-storybook, I get this error:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Jest: Got error running globalSetup - /Users/me/my-project/node_modules/@storybook/test-runner/playwright/global-setup.js, reason: Package subpath './lib/adapters/http' is not defined by "exports" in /Users/me/my-project/node_modules/axios/package.json

System

Storybook Environment Info:

  System:
    OS: macOS 14.0
    CPU: (8) arm64 Apple M1
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.13.0 - ~/.asdf/installs/nodejs/18.13.0/bin/node
    Yarn: 3.6.4 - ~/my-project/node_modules/.bin/yarn <----- active
    npm: 8.19.3 - ~/.asdf/plugins/nodejs/shims/npm
    pnpm: 8.6.9 - ~/.config/local/share/pnpm/pnpm
  Browsers:
    Chrome: 119.0.6045.159
    Safari: 17.0
  npmPackages:
    @storybook/addon-a11y: ^7.5.3 => 7.5.3
    @storybook/addon-essentials: ^7.0.9 => 7.5.3
    @storybook/addon-interactions: ^7.0.23 => 7.5.3
    @storybook/addon-toolbars: ^7.5.3 => 7.5.3
    @storybook/core-common: ^7.0.9 => 7.0.24
    @storybook/core-server: ^7.0.9 => 7.5.3
    @storybook/jest: ^0.1.0 => 0.1.0
    @storybook/react-vite: ^7.0.9 => 7.0.26
    @storybook/test-runner: ^0.15.1 => 0.15.1
    @storybook/testing-library: ^0.2.0 => 0.2.0

ganlhi avatar Nov 17 '23 10:11 ganlhi

@ganlhi Getting the same issue after bumping axios from 0.25.0 to 1.6.1. Have you come across any solution?

josecarneiro avatar Dec 21 '23 15:12 josecarneiro

I updated @storybook/test-runner to version 0.16.0, and this seems to be fixed!

ganlhi avatar Jan 04 '24 10:01 ganlhi

Great to know! Thanks for using the test-runner!

yannbf avatar May 16 '24 13:05 yannbf