Skip to content

Commit 623247e

Browse files
authored
Merge branch 'canary' into feedthejim/add-tests-summary
2 parents e23c348 + b6cce9c commit 623247e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

docs/02-app/02-api-reference/05-next-config-js/optimizePackageImports.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: optimizePackageImports
3-
description:
3+
description: API Reference for optmizedPackageImports Next.js Config Option
44
---
55

66
{/* The content of this doc is shared between the app and pages router. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */}

test/e2e/app-dir/app/index.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ createNextDescribe(
1313
? 'pnpm next experimental-compile'
1414
: undefined,
1515
},
16-
({ next, isNextDev: isDev, isNextStart, isNextDeploy }) => {
16+
({ next, isNextDev: isDev, isNextStart, isNextDeploy, isTurbopack }) => {
1717
if (process.env.NEXT_EXPERIMENTAL_COMPILE) {
1818
it('should provide query for getStaticProps page correctly', async () => {
1919
const res = await next.fetch('/ssg?hello=world')
@@ -192,10 +192,13 @@ createNextDescribe(
192192
await check(async () => {
193193
return requests.some(
194194
(req) =>
195-
req.includes(encodeURI('/[category]/[id]')) && req.endsWith('.js')
195+
req.includes(
196+
encodeURI(isTurbopack ? '[category]_[id]' : '/[category]/[id]')
197+
) && req.endsWith('.js')
196198
)
197199
? 'found'
198-
: JSON.stringify(requests)
200+
: // When it fails will log out the paths.
201+
JSON.stringify(requests)
199202
}, 'found')
200203
})
201204

0 commit comments

Comments
 (0)