Skip to content

Commit

Permalink
Disable StrictMode tests
Browse files Browse the repository at this point in the history
until we fix modern StrictMode
  • Loading branch information
eps1lon committed May 2, 2024
1 parent 1419b22 commit b6393d0
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,8 @@ describe('Strict Mode enabled by default', () => {
const { next } = nextTestSetup({
files: __dirname,
})
// experimental react is having issues with this use effect
// @acdlite will take a look
// TODO: remove this after react fixes the issue in experimental build.
if (process.env.__NEXT_EXPERIMENTAL_PPR) {
it('skip test for PPR', () => {})
return
}
// Recommended for tests that need a full browser
it('should work using browser', async () => {
// TODO: modern StrictMode does not double invoke effects during hydration: https://github.com/facebook/react/pull/28951
it.skip('should work using browser', async () => {
const browser: BrowserInterface = await next.browser('/')
await check(async () => {
const text = await browser.elementByCss('p').text()
Expand Down

0 comments on commit b6393d0

Please sign in to comment.