Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip @next/font tests in Turbopack as next/font is supported #60982

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions test/e2e/app-dir/next-font/next-font.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ const getAttrs = (elems: Cheerio) =>
.sort((a, b) => (a.href < b.href ? -1 : 1))

describe('app dir - next/font', () => {
describe.each([['app'], ['app-old']])('%s', (fixture: string) => {
for (const fixture of ['app', 'app-old']) {
// Turbopack only support `next/font` as `@next/font` is going to be removed in the next major version.
if (process.env.TURBOPACK && fixture === 'app-old') {
return
}

createNextDescribe(
'app dir - next-font',
{
Expand Down Expand Up @@ -447,5 +452,5 @@ describe('app dir - next/font', () => {
}
}
)
})
}
})
8 changes: 6 additions & 2 deletions test/e2e/next-font/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ function getClassNameRegex(className: string): RegExp {
}

describe('next/font', () => {
describe.each([['app'], ['app-old']])('%s', (fixture: string) => {
for (const fixture of ['app', 'app-old']) {
// Turbopack only support `next/font` as `@next/font` is going to be removed in the next major version.
if (process.env.TURBOPACK && fixture === 'app-old') {
return
}
let next: NextInstance

if ((global as any).isNextDeploy) {
Expand Down Expand Up @@ -635,5 +639,5 @@ describe('next/font', () => {
})
})
})
})
}
})
Loading