-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter out pages tree view for app dir only output
- Loading branch information
Showing
3 changed files
with
57 additions
and
16 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
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,23 @@ | ||
import { createNextDescribe } from 'e2e-utils' | ||
|
||
createNextDescribe( | ||
'production - app dir - build output', | ||
{ | ||
files: { | ||
'app/page.js': `export default function Page() { return null }`, | ||
'app/layout.js': `export default function Layout({ children }) { | ||
return ( | ||
<html><body>{children}</body></html> | ||
) | ||
}`, | ||
}, | ||
}, | ||
({ next }) => { | ||
it('should only log app routes', async () => { | ||
const output = next.cliOutput | ||
expect(output).toContain('Route (app)') | ||
expect(output).not.toContain('Route (pages)') | ||
expect(output).not.toContain('/favicon.ico') | ||
}) | ||
} | ||
) |