Skip to content

Commit a38decd

Browse files
committed
Update test
1 parent 0cbad18 commit a38decd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/integration/externals-pages-bundle/test/externals.test.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ describe('default', () => {
3131
const output = await fs.readFile(join(ssrPath, basename), 'utf8')
3232
allBundles += output
3333
}
34-
expect(allBundles).toContain(
35-
'__turbopack_external_require__("external-package"'
36-
)
34+
35+
// we don't know the name of the minified `__turbopack_external_require__`, so we just check the content.
36+
expect(allBundles).toContain('"external-package"')
37+
expect(allBundles).not.toContain('"external-package content"')
3738
} else {
3839
const output = await fs.readFile(
3940
join(appDir, '.next/server/pages/index.js'),

0 commit comments

Comments
 (0)