Skip to content

Commit 75d089c

Browse files
committed
Update test for SSG page also
1 parent 9f81baa commit 75d089c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const Page = () => "I'm SSRed"
2+
3+
export async function getStaticProps() {
4+
return {
5+
props: {
6+
hello: 'world',
7+
},
8+
}
9+
}
10+
11+
export default Page

test/integration/auto-export-query-warn/test/index.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const runTests = () => {
1818

1919
expect(stderr).not.toContain('/amp')
2020
expect(stderr).not.toContain('/ssr')
21+
expect(stderr).not.toContain('/ssg')
2122
expect(stderr).not.toContain('/hello')
2223
})
2324
}

0 commit comments

Comments
 (0)