Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Jul 27, 2022
1 parent a846ece commit 7e81a74
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
@@ -1,5 +1 @@
module.exports = {
experimental: {
serverComponents: true,
},
}
module.exports = {}
Expand Up @@ -34,7 +34,6 @@ server.listen(currentPort, (err) => {
distDir: '.next',
experimental: {
...defaultNextConfig.experimental,
serverComponents: true,
},
},
})
Expand Down
6 changes: 3 additions & 3 deletions test/production/react-18-streaming-ssr/index.test.ts
Expand Up @@ -14,7 +14,7 @@ const react18Deps = {
'react-dom': '^18.0.0',
}

describe('react 18 streaming SSR and RSC in minimal mode', () => {
describe('react 18 streaming SSR in minimal mode', () => {
let next: NextInstance

beforeAll(async () => {
Expand Down Expand Up @@ -124,7 +124,7 @@ describe('react 18 streaming SSR with custom next configs', () => {
})
})

describe('react 18 streaming SSR and RSC with custom server', () => {
describe('react 18 streaming SSR with custom server', () => {
let next
let server
let appPort
Expand Down Expand Up @@ -158,7 +158,7 @@ describe('react 18 streaming SSR and RSC with custom server', () => {
await next.destroy()
if (server) await killApp(server)
})
it('should render rsc correctly under custom server', async () => {
it('should render page correctly under custom server', async () => {
const html = await renderViaHTTP(appPort, '/')
expect(html).toContain('streaming')
})
Expand Down

0 comments on commit 7e81a74

Please sign in to comment.