File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55### Enhancements
66
7- - Remove the unused Jest peer dependency from the fixture package ([ #83505 ] ( https://github.com/WordPress/gutenberg/pull/83505 ) ).
7+ - Remove the unused Jest peer dependency from the fixture package ([ #83502 ] ( https://github.com/WordPress/gutenberg/pull/83502 ) ).
88
99## 9.21.0 (2026-09-23)
1010
Original file line number Diff line number Diff line change @@ -178,6 +178,8 @@ export default function consoleTests() {
178178 cleanup = ( ) => console [ methodName ] ( 'Cleanup message.' ) ;
179179 } ) ;
180180
181+ // The unasserted console call must fail the test even after resetting mocks.
182+ // eslint-disable-next-line vitest/expect-expect
181183 test . fails (
182184 'does not let afterEach reset hide an unexpected call' ,
183185 ( ) => {
Original file line number Diff line number Diff line change @@ -621,11 +621,28 @@ export default dedupePlugins( [
621621 // Vitest has no no-jasmine-globals equivalent.
622622 'no-restricted-globals' : [
623623 'error' ,
624- 'jasmine' ,
625- 'spyOn' ,
626- 'spyOnProperty' ,
627- 'fail' ,
628- 'pending' ,
624+ {
625+ name : 'jasmine' ,
626+ message : 'Use the vi and expect APIs from Vitest instead.' ,
627+ } ,
628+ {
629+ name : 'spyOn' ,
630+ message : 'Use vi.spyOn() from Vitest instead.' ,
631+ } ,
632+ {
633+ name : 'spyOnProperty' ,
634+ message :
635+ 'Use vi.spyOn() from Vitest with a get or set accessor instead.' ,
636+ } ,
637+ {
638+ name : 'fail' ,
639+ message : 'Use expect.fail() from Vitest instead.' ,
640+ } ,
641+ {
642+ name : 'pending' ,
643+ message :
644+ 'Use the Vitest test context skip() method instead.' ,
645+ } ,
629646 ] ,
630647 } ,
631648 } ) ) ,
You can’t perform that action at this time.
0 commit comments