Skip to content

Commit

Permalink
revert change to ReactRefreshRequire test
Browse files Browse the repository at this point in the history
  • Loading branch information
gaojude committed Nov 25, 2024
1 parent 3ddd390 commit 46bd881
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/development/acceptance-app/ReactRefreshRequire.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,11 @@ describe('ReactRefreshRequire app', () => {
'leaf.js',
`log.push('init LeafV3'); export default {};`
)
expect((await session.evaluate(() => (window as any).log)).sort()).toEqual(
['init LeafV3', 'init MiddleAV1', 'init MiddleBV1'].sort()
)
expect(await session.evaluate(() => (window as any).log)).toEqual([
'init LeafV3',
'init MiddleAV1',
'init MiddleBV1',
])

// Now edit MiddleB. It should accept and re-run alone.
await session.evaluate(() => ((window as any).log = []))
Expand Down

0 comments on commit 46bd881

Please sign in to comment.