Unverified Commit 6cb70b1c authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

test: consolidate hmr test for turbopack (#74694)

* revert https://github.com/vercel/next.js/pull/74686 as it should
already being skipped
* add flaky test to turbopack dev manifest

There's an issue that the skipped tests in manifest are still get
executed. This PR only adds them into the manifest. The CI issue will be
addressed separately
parent a9d587f4
...@@ -42,8 +42,6 @@ describe('ReactRefreshRequire app', () => { ...@@ -42,8 +42,6 @@ describe('ReactRefreshRequire app', () => {
// We only edited Bar, and it accepted. // We only edited Bar, and it accepted.
// So we expect it to re-run alone. // So we expect it to re-run alone.
await session.evaluate(() => ((window as any).log = [])) await session.evaluate(() => ((window as any).log = []))
expect(await session.evaluate(() => (window as any).log)).toEqual([])
await session.patch( await session.patch(
'./bar.js', './bar.js',
`window.log.push('init BarV2'); export default function Bar() { return null; };` `window.log.push('init BarV2'); export default function Bar() { return null; };`
...@@ -55,8 +53,6 @@ describe('ReactRefreshRequire app', () => { ...@@ -55,8 +53,6 @@ describe('ReactRefreshRequire app', () => {
// We only edited Bar, and it accepted. // We only edited Bar, and it accepted.
// So we expect it to re-run alone. // So we expect it to re-run alone.
await session.evaluate(() => ((window as any).log = [])) await session.evaluate(() => ((window as any).log = []))
expect(await session.evaluate(() => (window as any).log)).toEqual([])
await session.patch( await session.patch(
'./bar.js', './bar.js',
`window.log.push('init BarV3'); export default function Bar() { return null; };` `window.log.push('init BarV3'); export default function Bar() { return null; };`
......
...@@ -1661,13 +1661,13 @@ ...@@ -1661,13 +1661,13 @@
"ReactRefreshRequire app provides fresh value for ES6 named import in parents", "ReactRefreshRequire app provides fresh value for ES6 named import in parents",
"ReactRefreshRequire app provides fresh value for exports.* in parents", "ReactRefreshRequire app provides fresh value for exports.* in parents",
"ReactRefreshRequire app provides fresh value for module.exports in parents", "ReactRefreshRequire app provides fresh value for module.exports in parents",
"ReactRefreshRequire app re-runs accepted modules",
"ReactRefreshRequire app runs dependencies before dependents", "ReactRefreshRequire app runs dependencies before dependents",
"ReactRefreshRequire app stops update propagation after module-level errors" "ReactRefreshRequire app stops update propagation after module-level errors"
], ],
"failed": [], "failed": [],
"pending": [ "pending": [
"ReactRefreshRequire app propagates a module that stops accepting in next version" "ReactRefreshRequire app propagates a module that stops accepting in next version",
"ReactRefreshRequire app re-runs accepted modules"
], ],
"flakey": [], "flakey": [],
"runtimeError": false "runtimeError": false
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment