Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jun 26, 2023
1 parent a867823 commit 7a183e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion test/e2e/app-dir/build-size/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ createNextDescribe(
'app-dir build size',
{
files: __dirname,
skipDeployment: true,
},
({ next, isNextDev: isDev, isNextStart, isNextDeploy }) => {
({ next, isNextStart }) => {
if (isNextStart) {
it('should have correct size in build output', async () => {
const regex = /(\S+)\s+(\d+\s\w+)\s+(\d+\.\d+\s\w+)/g
Expand Down Expand Up @@ -40,6 +41,9 @@ createNextDescribe(
// foo is a client component, so it should be larger than index
expect(sizeToBytes(foo.size)).toBeGreaterThan(sizeToBytes(index.size))
})
} else {
it('should skip next dev for now', () => {})
return
}
}
)
1 change: 0 additions & 1 deletion test/e2e/app-dir/build-size/next.config.js

This file was deleted.

0 comments on commit 7a183e3

Please sign in to comment.