Skip to content

Commit f3cabc9

Browse files
authored
Turbopack Build: Fix next-font test (#80049)
## What? When importing `_app` from another entrypoint it causes the font files imported to be included in _app. This is an edge case so changing the test as it doesn't check for that. Creating a separate issue to dig into this further later.
1 parent d1fa7cf commit f3cabc9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/e2e/next-font/app/pages/with-fonts.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import CompWithFonts from '../components/CompWithFonts'
2-
import { openSans } from './_app'
2+
import { Open_Sans } from 'next/font/google'
3+
const openSans = Open_Sans({ variable: '--open-sans', subsets: ['latin'] })
34

45
export default function WithFonts() {
56
return (

test/turbopack-build-tests-manifest.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7767,15 +7767,14 @@
77677767
"next/font import values page with font",
77687768
"next/font import values page with local fonts",
77697769
"next/font preload page with fonts",
7770-
"next/font should not have deprecation warning"
7771-
],
7772-
"failed": [
7770+
"next/font should not have deprecation warning",
77737771
"next/font preload font without preloadable subsets",
77747772
"next/font preload font without size adjust",
77757773
"next/font preload google fonts with multiple weights/styles",
77767774
"next/font preload page with local fonts",
77777775
"next/font preload page without fonts"
77787776
],
7777+
"failed": [],
77797778
"pending": [],
77807779
"flakey": [],
77817780
"runtimeError": false

0 commit comments

Comments
 (0)