Ian VanSchooten
Ian VanSchooten
@dosu This isn't an issue about `argTypes`, which are generated for docgen, rather this is a typescript typing issue.
I've learned that I can't `require` in this interface. It might be worth pointing out that the config options available are those for the browser version of mocha, as pointed...
Mocha does throw an error, but it is swallowed by wtr, which eventually just times out.
Yes, I add them to my `testRunnerHtml` now, which seems to work okay. I added some details of what I'm doing in a comment here: https://github.com/facebook/jest/issues/11065#issuecomment-826254792
@EvgeniyLoginov that's cool. I added a script after my script with `src="${testFramework}"`, and at that point it's possible to call `beforeAll` from mocha. I guess either way will work.
Oh interesting, I see now why adding `rootHooks` to the config file doesn't work. The values there are stringified and added to the window (https://github.com/modernweb-dev/web/blob/6c5893cc79c91e82f9aec35d3011c6e33ce878cc/packages/test-runner-core/src/server/plugins/serveTestRunnerHtmlPlugin.ts#L93), so any functions are lost....
Thanks @shilman. It's definitely an edge-case (importing from `@storybook/react-vite` from within a component used in a `render` function). If I remove that usage from my project, everything else works fine.
I also opened a PR with a fix and tests for this issue months ago, and it got no attention from the maintainers. I'd be curious to compare our two...
@Sidnioulz Yep, I used `pnpm dlx storybook automigrate csf-factories`.
This specific issue seems to be solved both here and in `mega-menu-fixes`, though it still isn't possible to close the menu without clicking on one of the options in it,...