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
e6138820
Commit
e6138820
authored
May 15, 2017
by
Arunoda Susiripala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests for the recent changes.
parent
55c7553a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
202 additions
and
222 deletions
+202
-222
.gitignore
.gitignore
+1
-1
index.test.js
test/integration/static/test/index.test.js
+2
-2
yarn.lock
yarn.lock
+199
-219
No files found.
.gitignore
View file @
e6138820
...
@@ -13,5 +13,5 @@ node_modules
...
@@ -13,5 +13,5 @@ node_modules
coverage
coverage
# test output
# test output
test/**/
.
out
test/**/out
.DS_Store
.DS_Store
test/integration/static/test/index.test.js
View file @
e6138820
...
@@ -17,11 +17,11 @@ const context = {}
...
@@ -17,11 +17,11 @@ const context = {}
describe
(
'Static Export'
,
()
=>
{
describe
(
'Static Export'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
const
outdir
=
join
(
appDir
,
'
.
out'
)
const
outdir
=
join
(
appDir
,
'out'
)
await
nextBuild
(
appDir
)
await
nextBuild
(
appDir
)
await
nextExport
(
appDir
,
{
outdir
})
await
nextExport
(
appDir
,
{
outdir
})
context
.
server
=
await
startStaticServer
(
join
(
appDir
,
'
.
out'
))
context
.
server
=
await
startStaticServer
(
join
(
appDir
,
'out'
))
context
.
port
=
context
.
server
.
address
().
port
context
.
port
=
context
.
server
.
address
().
port
})
})
afterAll
(()
=>
stopApp
(
context
.
server
))
afterAll
(()
=>
stopApp
(
context
.
server
))
...
...
yarn.lock
View file @
e6138820
This diff is collapsed.
Click to expand it.
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