2210 Commits

Author SHA1 Message Date
Kasper Peulen
df9f64f07f Merge remote-tracking branch 'refs/remotes/origin/next' into kasper/module-mocking 2024-04-30 11:01:44 +02:00
Kasper Peulen
32213e8fd9
Merge pull request #26853 from storybookjs/kasper/mock-names
Next: Use `<<package>>::<<import>>` naming convention for mock names
2024-04-19 13:03:52 +02:00
Yann Braga
fb24aef2a7 remove path params aliasing 2024-04-18 12:29:44 +02:00
Yann Braga
b984dd1e30 Update sandbox stories 2024-04-18 12:20:24 +02:00
Yann Braga
0136382353 support nextjs 14.2 useParams functionality 2024-04-18 12:13:38 +02:00
Jeppe Reinhold
beb0fd74d2 add cache.mock entrypoint to nextjs 2024-04-17 14:37:05 +02:00
Kasper Peulen
1aa833d1a3
Update code/frameworks/nextjs/src/export-mocks/navigation/index.ts
Co-authored-by: Yann Braga <yannbf@gmail.com>
2024-04-16 14:14:07 +02:00
Kasper Peulen
d83691a924
Update code/frameworks/nextjs/src/export-mocks/navigation/index.ts
Co-authored-by: Yann Braga <yannbf@gmail.com>
2024-04-16 14:14:02 +02:00
Kasper Peulen
2beb7ba087
Update code/frameworks/nextjs/src/export-mocks/navigation/index.ts
Co-authored-by: Yann Braga <yannbf@gmail.com>
2024-04-16 14:13:53 +02:00
Kasper Peulen
a1d631b874
Update code/frameworks/nextjs/src/export-mocks/navigation/index.ts
Co-authored-by: Yann Braga <yannbf@gmail.com>
2024-04-16 14:13:47 +02:00
Kasper Peulen
72474ad8a3 Fix name 2024-04-16 13:11:55 +02:00
Kasper Peulen
310aaf5aaf Bind this 2024-04-16 12:11:13 +02:00
Kasper Peulen
30de294cae Try another mock naming convention 2024-04-16 11:42:57 +02:00
Yann Braga
e3c678f2ab use next.js internal paths instead of *.actual paths 2024-04-15 12:16:08 +02:00
Yann Braga
553a642b8e
Merge pull request #26815 from storybookjs/yann/nextjs-extended-mocks
Nextjs: Extend mocks for next/headers, next/router, next/navigation and next/cache
2024-04-15 09:20:25 +02:00
Kasper Peulen
af040c7c14
Merge branch 'next' into kasper/module-mocking 2024-04-12 14:14:08 +02:00
Yann Braga
7374e1255d use esm in nextjs webpack aliases 2024-04-12 11:39:41 +02:00
Yann Braga
ec8b5e0b3c add getPackageAliases helper for jest portable stories 2024-04-12 11:39:41 +02:00
Yann Braga
cbaf632770 fix build issues 2024-04-12 11:39:41 +02:00
Yann Braga
2eb2d48962 fix next/router exports 2024-04-12 11:39:41 +02:00
Yann Braga
28652af615 add export passthroughs in the mocks 2024-04-12 11:39:40 +02:00
Yann Braga
87fae49f85 add server actions stories 2024-04-12 11:39:40 +02:00
Yann Braga
a4add692d9 Nextjs: Extend mocks for headers, router and navigation + add cache mocks 2024-04-12 11:39:40 +02:00
Yann Braga
35b4d48f33 Merge branch 'next' into kasper/module-mocking 2024-04-12 11:38:51 +02:00
Kasper Peulen
a7f5b6d5be Fix type errors 2024-04-12 11:31:10 +02:00
storybook-bot
d376c731bd Merge branch 'next-release' into next 2024-04-11 09:53:03 +00:00
storybook-bot
68c7aec093 Bump version from "8.1.0-alpha.6" to "8.1.0-alpha.7" [skip ci] 2024-04-11 09:39:49 +00:00
Valentin Palkovic
7eec06e1e7 Use error framework 2024-04-11 11:23:40 +09:00
Kasper Peulen
a98d07205b Merge remote-tracking branch 'origin/yann/nextjs-headers-mocks' into yann/nextjs-headers-mocks 2024-04-10 16:07:24 +02:00
Kasper Peulen
b468667360 Refactor cookies/headers a bit 2024-04-10 16:03:45 +02:00
Yann Braga
ace01fd9b6 Update imports to use @storybook/nextjs/router.mock and @storybook/nextjs/navigation.mock 2024-04-10 13:04:42 +02:00
Yann Braga
22b79632b8 fix singleton logic 2024-04-10 13:01:45 +02:00
Yann Braga
d229729d5b Update imports to use @storybook/nextjs/router and @storybook/nextjs/navigation in nextjs package.json and source files 2024-04-10 11:49:34 +02:00
Yann Braga
6037744e07 set up mocks in loaders instead of decorators 2024-04-10 11:49:34 +02:00
Yann Braga
a6de166b36 add portable stories tests 2024-04-10 11:49:33 +02:00
Yann Braga
501301a407 fix default Router mock export, add improvements 2024-04-10 11:49:33 +02:00
Yann Braga
7db928e22c NextJS: Spy next/router and next/navigation useRouter hooks 2024-04-10 11:49:33 +02:00
Yann Braga
fbb33d122b Refactor cookies.ts to add internal documentation for mockRestore method 2024-04-10 11:49:12 +02:00
Yann Braga
4d452f3b80 fix inner class context 2024-04-10 11:46:34 +02:00
Yann Braga
34ca025f5b Change entrypoint to @storybook/nextjs/headers.mock 2024-04-10 11:14:29 +02:00
Yann Braga
14d4f0f4d5 improve tests 2024-04-10 11:14:29 +02:00
Yann Braga
57d2ec396c fix entrypoint 2024-04-10 11:14:29 +02:00
Yann Braga
6220e9365d add more spies 2024-04-10 11:14:29 +02:00
Yann Braga
3209c59b58 fix type generation 2024-04-10 11:14:29 +02:00
Yann Braga
d1fcfd5c3b Add explanation to webpack alias 2024-04-10 11:14:29 +02:00
Yann Braga
594c9c3347 Update package.json and jest.config.js for next/headers alias 2024-04-10 11:14:29 +02:00
Yann Braga
b95a503eda Update package.json and jest.config.js for next/headers alias 2024-04-10 11:14:29 +02:00
Yann Braga
ec0e0afdce cleanup 2024-04-10 11:14:04 +02:00
Yann Braga
00d5614a8d address review comments 2024-04-10 11:14:04 +02:00
Yann Braga
b459208498 Next.js: Add next/headers mocks 2024-04-10 11:14:04 +02:00