next.js
34c064e7 - fix(test/integration): Check the right thing when resetting the server-side-dev-errors tests (#80873)

Commit
190 days ago
fix(test/integration): Check the right thing when resetting the server-side-dev-errors tests (#80873) This was asserting that the error still exists after resetting the file back to its original state. Instead, it should refresh the browser and check that the error was fixed. Something was causing this to quickly reload in the rspack case, so the test was flaking there. ``` pnpm test-dev integration/server-side-dev-errors/test/index.test.js -t 'api route correctly' pnpm test-dev-turbopack integration/server-side-dev-errors/test/index.test.js -t 'api route correctly' pnpm test-dev-rspack integration/server-side-dev-errors/test/index.test.js -t 'api route correctly' ``` Try running the tests a few times, see that they don't flake.
Author
bgw bgw
Parents
Loading