@@ -4,8 +4,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
44import  type  {  StoryContext  }  from  'storybook/internal/csf' ; 
55
66import  {  run  }  from  './a11yRunner' ; 
7- import  {  withLinkPaths  }  from  './a11yRunnerUtils' ; 
8- import  {  experimental_afterEach  }  from  './preview' ; 
7+ import  {  afterEach  }  from  './preview' ; 
98import  {  getIsVitestRunning ,  getIsVitestStandaloneRun  }  from  './utils' ; 
109
1110const  mocks  =  vi . hoisted ( ( )  =>  { 
@@ -107,7 +106,7 @@ describe('afterEach', () => {
107106
108107    mockedRun . mockResolvedValue ( result  as  any ) ; 
109108
110-     await  expect ( ( )  =>  experimental_afterEach ( context ) ) . rejects . toThrow ( ) ; 
109+     await  expect ( ( )  =>  afterEach ( context ) ) . rejects . toThrow ( ) ; 
111110
112111    expect ( mockedRun ) . toHaveBeenCalledWith ( context . parameters . a11y ,  context . id ) ; 
113112
@@ -128,7 +127,7 @@ describe('afterEach', () => {
128127    mockedRun . mockResolvedValue ( result  as  any ) ; 
129128    mocks . getIsVitestStandaloneRun . mockReturnValue ( false ) ; 
130129
131-     await  experimental_afterEach ( context ) ; 
130+     await  afterEach ( context ) ; 
132131
133132    expect ( mockedRun ) . toHaveBeenCalledWith ( context . parameters . a11y ,  context . id ) ; 
134133
@@ -155,7 +154,7 @@ describe('afterEach', () => {
155154    mockedRun . mockResolvedValue ( result  as  any ) ; 
156155    mocks . getIsVitestStandaloneRun . mockReturnValue ( false ) ; 
157156
158-     await  experimental_afterEach ( context ) ; 
157+     await  afterEach ( context ) ; 
159158
160159    expect ( mockedRun ) . toHaveBeenCalledWith ( context . parameters . a11y ,  context . id ) ; 
161160
@@ -174,7 +173,7 @@ describe('afterEach', () => {
174173    } ; 
175174    mockedRun . mockResolvedValue ( result  as  any ) ; 
176175
177-     await  experimental_afterEach ( context ) ; 
176+     await  afterEach ( context ) ; 
178177
179178    expect ( mockedRun ) . toHaveBeenCalledWith ( context . parameters . a11y ,  context . id ) ; 
180179    expect ( context . reporting . addReport ) . toHaveBeenCalledWith ( { 
@@ -194,7 +193,7 @@ describe('afterEach', () => {
194193      } , 
195194    } ) ; 
196195
197-     await  experimental_afterEach ( context ) ; 
196+     await  afterEach ( context ) ; 
198197
199198    expect ( mockedRun ) . not . toHaveBeenCalled ( ) ; 
200199    expect ( context . reporting . addReport ) . not . toHaveBeenCalled ( ) ; 
@@ -209,7 +208,7 @@ describe('afterEach', () => {
209208      } , 
210209    } ) ; 
211210
212-     await  experimental_afterEach ( context ) ; 
211+     await  afterEach ( context ) ; 
213212
214213    expect ( mockedRun ) . not . toHaveBeenCalled ( ) ; 
215214    expect ( context . reporting . addReport ) . not . toHaveBeenCalled ( ) ; 
@@ -224,7 +223,7 @@ describe('afterEach', () => {
224223      } , 
225224    } ) ; 
226225
227-     await  experimental_afterEach ( context ) ; 
226+     await  afterEach ( context ) ; 
228227
229228    expect ( mockedRun ) . not . toHaveBeenCalled ( ) ; 
230229    expect ( context . reporting . addReport ) . not . toHaveBeenCalled ( ) ; 
@@ -235,7 +234,7 @@ describe('afterEach', () => {
235234    const  error  =  new  Error ( 'Test error' ) ; 
236235    mockedRun . mockRejectedValue ( error ) ; 
237236
238-     await  expect ( ( )  =>  experimental_afterEach ( context ) ) . rejects . toThrow ( ) ; 
237+     await  expect ( ( )  =>  afterEach ( context ) ) . rejects . toThrow ( ) ; 
239238
240239    expect ( mockedRun ) . toHaveBeenCalledWith ( context . parameters . a11y ,  context . id ) ; 
241240    expect ( context . reporting . addReport ) . toHaveBeenCalledWith ( { 
@@ -253,7 +252,7 @@ describe('afterEach', () => {
253252      viewMode : 'docs' , 
254253    } ) ; 
255254
256-     await  experimental_afterEach ( context ) ; 
255+     await  afterEach ( context ) ; 
257256
258257    expect ( mockedRun ) . not . toHaveBeenCalled ( ) ; 
259258    expect ( context . reporting . addReport ) . not . toHaveBeenCalled ( ) ; 
0 commit comments