44951 Commits

Author SHA1 Message Date
Jeppe Reinhold
5976e2e25b UI SB: Disable sourcemaps when building in CI 2022-11-16 21:40:56 +01:00
jonniebigodes
92cecd99dc
Merge pull request #19861 from storybookjs/chore_docs_beta_remove_mdx_ts
Removes mdx stories from the docs and misc updates
2022-11-16 19:56:52 +00:00
Ian VanSchooten
8938845293
Build: Upgrade Jest to version 28 (#19613)
Issue:

Angular tests have been excluded and they seem to be mostly fixed with Jest 28, so this is to try upgrading to Jest 28.

## What I did

This updates the monorepo to use jest 28.  Previously, we ran all tests in the `jsdom` environment, but the newer jest is more picky about it, and calls like `setImmediate` started to fail after the upgrade.  

So now we test some packages with a node environment and some with a jsdom environment. It does this by splitting the original jest config into two separate configs, one for browser environments, and one for node environments, and creating `jest.config.js` files in the root of each package.  It's a little tedious, but it gives us greater control over how jest runs for each package, not only the environment, but other config as well.

This also starts fixing Angular tests that have got behind while excluded, though we're not yet able to turn them back on just yet.

## How to test

CI
2022-11-16 14:53:19 -05:00
Ian VanSchooten
c1a49c4c6c Merge remote-tracking branch 'origin/next' into marklb/upgrade-to-jest28 2022-11-16 14:20:48 -05:00
Ian VanSchooten
d29fc38009
Maintenance: Update Playwright image to 1.28.0 (#19859)
Issue: N/A

## What I did

following recommendation from CI warnings:

```
Looks like Playwright Test or Playwright was just updated to 1.28.0.
 Please update docker image as well.                                  
 -  current: mcr.microsoft.com/playwright:v1.27.0-focal               
 - required: mcr.microsoft.com/playwright:v1.28.0-focal  
```

## How to test

- [ ] Is this testable with Jest or Chromatic screenshots?
- [ ] Does this need a new example in the kitchen sink apps?
- [ ] Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

<!--

Everybody: Please submit all PRs to the `next` branch unless they are specific to the current release. Storybook maintainers cherry-pick bug and documentation fixes into the `master` branch as part of the release process, so you shouldn't need to worry about this. For additional guidance: https://storybook.js.org/docs/react/contribute/how-to-contribute

Maintainers: Please tag your pull request with at least one of the following:
`["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]`

-->
2022-11-16 14:15:37 -05:00
Ian VanSchooten
24a9f98a39 Update local playwright 2022-11-16 13:53:05 -05:00
Ian VanSchooten
8272557892 Merge remote-tracking branch 'origin/next' into yann/update-playwright-image 2022-11-16 13:51:22 -05:00
jonniebigodes
acf8a8592a Removes mdx stories from the docs and misc updates 2022-11-16 18:24:16 +00:00
Yann Braga
834e11bd92
Merge pull request #19856 from storybookjs/failing-vite-build
Build: Increase max node memory for jobs
2022-11-16 18:50:06 +01:00
Ian VanSchooten
ff582a68a7 Re-disable vue3 test
It passes locally, fails in CI
2022-11-16 12:48:30 -05:00
Yann Braga
9def72c049 update playwright image to 1.28.0 2022-11-16 18:31:58 +01:00
Yann Braga
90f4216428
Merge pull request #19858 from storybookjs/fix-next-image-stub
Fix next-image-loader-stub
2022-11-16 18:20:29 +01:00
Ian VanSchooten
08ba919440 Re-enable vue tests 2022-11-16 12:16:09 -05:00
Ian VanSchooten
2e46846c04 Run unit tests in single thread 2022-11-16 12:15:55 -05:00
Kasper Peulen
4cf0afe32c
Merge pull request #19839 from storybookjs/kasper/fix-decorator
Fix type inference bug with decorators
2022-11-16 17:42:00 +01:00
Kasper Peulen
148eb7da4c
Merge pull request #19853 from storybookjs/yann/fix-types-in-jest-addon
Jest: switch from Parameters to StorybookInternalParameters
2022-11-16 16:36:30 +01:00
Ian VanSchooten
44129a439d Fix next-image-loader-stub 2022-11-16 10:24:41 -05:00
Ian VanSchooten
2ad359f2d3 Try setting node option on job itself 2022-11-16 09:58:38 -05:00
Ian VanSchooten
23bf4fd0a5 Build: Increase max node memory for jobs 2022-11-16 09:42:22 -05:00
Yann Braga
908db037f6 switch from Parameters to StorybookInternalParameters 2022-11-16 15:20:17 +01:00
Jeppe Reinhold
2d815dc3cd
Merge pull request #19805 from storybookjs/jeppe/sb-898-blocks-story 2022-11-16 15:20:02 +01:00
Jeppe Reinhold
7db8b12aa2 Merge branch 'next' of github.com:storybookjs/storybook into jeppe/sb-898-blocks-story 2022-11-16 14:46:22 +01:00
Jeppe Reinhold
33d17b2a77
Merge pull request #19804 from storybookjs/jeppe/sb-898-blocks-canvas 2022-11-16 14:45:09 +01:00
Jeppe Reinhold
c2b8465b3a fix typecheck error in jest addon 2022-11-16 14:22:28 +01:00
Jeppe Reinhold
56777b9b5d enable turbosnap for internal sb 2022-11-16 14:09:32 +01:00
Jeppe Reinhold
1745efcfcb upgrade CI image for internal chromatic 2022-11-16 14:08:32 +01:00
Ian VanSchooten
c77276b4fc Upgrade jest-specific-snapshot 2022-11-16 07:54:54 -05:00
Jeppe Reinhold
f671096df1 Merge branch 'jeppe/sb-898-blocks-canvas' of github.com:storybookjs/storybook into jeppe/sb-898-blocks-story 2022-11-16 13:48:48 +01:00
Jeppe Reinhold
60cea662db Merge branch 'next' of github.com:storybookjs/storybook into jeppe/sb-898-blocks-canvas 2022-11-16 13:47:59 +01:00
Jeppe Reinhold
45ad9e8df1 fix deepscan error 2022-11-16 13:46:51 +01:00
Yann Braga
cd646a6786
Merge pull request #19841 from storybookjs/yann/improve-reporting-mechanism
CI: improve error reporting mechanism
2022-11-16 13:01:42 +01:00
Yann Braga
fd15defb0d update branch names for reporting checks 2022-11-16 12:51:24 +01:00
Kasper Peulen
67a2b9483c Fix type inference bug with decorators 2022-11-16 10:19:55 +01:00
Kasper Peulen
a972ff2470
Merge pull request #19833 from storybookjs/kasper/expose-more-types
Expose more CSF types in all renderers
2022-11-16 10:17:59 +01:00
Kasper Peulen
bc81de751f Improve migration notes of Decorator 2022-11-16 10:08:54 +01:00
Ian VanSchooten
7d4801aecb Disable vue (both 2 and 3) tests for now 2022-11-15 23:35:06 -05:00
Ian VanSchooten
80141d90b6 Upgrade jest-specific-snapshot
(and force correct jest-snapshot)
2022-11-15 23:19:01 -05:00
Ian VanSchooten
48c8cc0b5e Disable vue2 tests 2022-11-15 21:35:35 -05:00
Ian VanSchooten
f9e47d8241 Disable vue3 tests 2022-11-15 21:21:59 -05:00
Ian VanSchooten
6d7eee09a8 Enable vue3 test 2022-11-15 20:33:34 -05:00
Ian VanSchooten
894b2ca5e7 Merge remote-tracking branch 'origin/next' into marklb/upgrade-to-jest28
# Conflicts:
#	code/jest.config.js
2022-11-15 10:31:46 -05:00
Ian VanSchooten
8efda9539d Merge remote-tracking branch 'origin/next' into marklb/upgrade-to-jest28 2022-11-15 10:29:25 -05:00
Ian VanSchooten
82dc644bae
Merge pull request #19777 from storybookjs/valentin/fix-tests-on-windows
Fix tests on Windows
2022-11-15 10:20:15 -05:00
Kasper Peulen
d94331079d Address review 2022-11-15 15:57:14 +01:00
jonniebigodes
db105eef41
Merge pull request #19746 from storybookjs/domyen-patch-1
Update README logo for dark mode
2022-11-15 14:31:01 +00:00
Jeppe Reinhold
99dea360b0 try without the Turbosnap Vite plugin 2022-11-15 12:25:50 +01:00
Yann Braga
f707d71c90 remove artificial failure 2022-11-15 12:19:20 +01:00
Yann Braga
9af77c9352 improve format 2022-11-15 11:55:54 +01:00
Yann Braga
d120c2f3f7 format line breaks for discord message 2022-11-15 11:45:14 +01:00
Yann Braga
ebb64aa0bc add default value for template 2022-11-15 11:31:23 +01:00