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
f1d0e577
Unverified
Commit
f1d0e577
authored
Mar 06, 2020
by
Joe Haddad
Committed by
GitHub
Mar 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Test Case for SSG Full Re-Export (#10864)
parent
1a9b49bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
babel-plugin-next-ssg-transform.test.js
test/unit/babel-plugin-next-ssg-transform.test.js
+10
-0
No files found.
test/unit/babel-plugin-next-ssg-transform.test.js
View file @
f1d0e577
...
@@ -429,5 +429,15 @@ describe('babel plugin (next-ssg-transform)', () => {
...
@@ -429,5 +429,15 @@ describe('babel plugin (next-ssg-transform)', () => {
`"class El extends React.Component{render(){return __jsx(\\"div\\",null);}}const a=5;export var __N_SSG=true;export{El as default,a};"`
`"class El extends React.Component{render(){return __jsx(\\"div\\",null);}}const a=5;export var __N_SSG=true;export{El as default,a};"`
)
)
})
})
it
(
'should support full re-export'
,
()
=>
{
const
output
=
babel
(
trim
`
export { getStaticProps, default } from 'a'
`
)
expect
(
output
).
toMatchInlineSnapshot
(
`"export var __N_SSG=true;export{default}from'a';"`
)
})
})
})
})
})
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