Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
7c09f713
Commit
7c09f713
authored
Aug 14, 2019
by
JJ Kasper
Committed by
Joe Haddad
Aug 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix chunking tests failing from timeout being too low (#8360)
parent
99f2d2a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
index.test.js
test/integration/chunking/test/index.test.js
+5
-7
No files found.
test/integration/chunking/test/index.test.js
View file @
7c09f713
/* eslint-env jest */
/* global jasmine */
import
{
join
}
from
'path'
import
{
nextBuild
}
from
'next-test-utils'
import
fs
from
'fs'
import
{
promisify
}
from
'util'
const
readdir
=
promisify
(
fs
.
readdir
)
const
readFile
=
promisify
(
fs
.
readFile
)
const
unlink
=
promisify
(
fs
.
unlink
)
const
access
=
promisify
(
fs
.
access
)
import
{
readdir
,
readFile
,
unlink
,
access
}
from
'fs-extra'
jasmine
.
DEFAULT_TIMEOUT_INTERVAL
=
1000
*
60
*
1
const
appDir
=
join
(
__dirname
,
'../'
)
...
...
@@ -33,7 +31,7 @@ describe('Chunking', () => {
await
nextBuild
(
appDir
)
buildId
=
await
readFile
(
join
(
appDir
,
'.next/BUILD_ID'
),
'utf8'
)
chunks
=
await
readdir
(
join
(
appDir
,
'.next'
,
'static'
,
'chunks'
))
}
,
10000
)
/* Timeout increased because this test builds a large library */
}
)
it
(
'should create a framework chunk'
,
()
=>
{
expect
(
existsChunkNamed
(
'framework'
)).
toBe
(
true
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment