-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix recursive ignoring case in build traces (#60740)
This ensures when a dependency has a recursive require our should ignore handling doesn't accidentally loop back and forth. x-ref: lovell/sharp#3944 Closes NEXT-2121
- Loading branch information
Showing
3 changed files
with
75 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function Page() { | ||
return <p>hello world</p> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { createNextDescribe } from 'e2e-utils' | ||
|
||
createNextDescribe( | ||
'sharp support with hasNextSupport', | ||
{ | ||
files: __dirname, | ||
dependencies: { | ||
sharp: 'latest', | ||
}, | ||
env: { | ||
NOW_BUILDER: '1', | ||
}, | ||
}, | ||
({ next }) => { | ||
// we're mainly checking if build/start were successful so | ||
// we have a basic assertion here | ||
it('should work using cheerio', async () => { | ||
const $ = await next.render$('/') | ||
expect($('p').text()).toBe('hello world') | ||
}) | ||
} | ||
) |