Unverified Commit f1d0e577 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Add Test Case for SSG Full Re-Export (#10864)

parent 1a9b49bf
......@@ -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};"`
)
})
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';"`
)
})
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment