Skip to content

Commit

Permalink
Keep fouc tags for streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 17, 2022
1 parent 9129bb9 commit 539416a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/next/pages/_document.tsx
Expand Up @@ -702,7 +702,7 @@ export class Head extends Component<

return (
<head {...this.props}>
{!hasConcurrentFeatures && this.context.isDevelopment && (
{this.context.isDevelopment && (
<>
<style
data-next-hide-fouc
Expand Down
Expand Up @@ -16,8 +16,8 @@ export default function (context) {
)
expect(currentColor).toMatchInlineSnapshot(`"rgb(255, 0, 0)"`)
})
// TODO: fix this test
it.skip('should include css modules with `serverComponents: true`', async () => {

it('should include css modules with `serverComponents: true`', async () => {
const browser = await webdriver(context.appPort, '/css-modules')
const currentColor = await browser.eval(
`window.getComputedStyle(document.querySelector('h1')).color`
Expand Down

0 comments on commit 539416a

Please sign in to comment.