@@ -2,7 +2,7 @@ import { existsSync, readdirSync, rmSync } from 'node:fs';
22import { dirname , join } from 'node:path' ;
33import { ReportGenerator , nullReportGenerator } from '@/report-generator' ;
44import { ScreenshotItem } from '@/screenshot-item' ;
5- import { afterEach , beforeEach , describe , expect , it , vi } from 'vitest ' ;
5+ import { afterEach , beforeEach , describe , expect , it , rs } from '@rstest/core ' ;
66import {
77 createExecution ,
88 defaultReportMeta ,
@@ -21,7 +21,7 @@ describe('ReportGenerator options and factory', () => {
2121 if ( existsSync ( temporaryDirectory ) ) {
2222 rmSync ( temporaryDirectory , { recursive : true , force : true } ) ;
2323 }
24- vi . restoreAllMocks ( ) ;
24+ rs . restoreAllMocks ( ) ;
2525 } ) ;
2626
2727 it ( 'provides a null generator when report generation is disabled' , async ( ) => {
@@ -119,7 +119,7 @@ describe('ReportGenerator options and factory', () => {
119119 ) ;
120120
121121 it ( 'prints an inline report path once after the first write' , async ( ) => {
122- const logSpy = vi . spyOn ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
122+ const logSpy = rs . spyOn ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
123123 const reportPath = join ( temporaryDirectory , 'autoprint-inline.html' ) ;
124124 const generator = new ReportGenerator ( {
125125 reportPath,
@@ -143,7 +143,7 @@ describe('ReportGenerator options and factory', () => {
143143 } ) ;
144144
145145 it ( 'supports disabled logging and directory-mode serve instructions' , async ( ) => {
146- const logSpy = vi . spyOn ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
146+ const logSpy = rs . spyOn ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
147147 const quietGenerator = new ReportGenerator ( {
148148 reportPath : join ( temporaryDirectory , 'quiet.html' ) ,
149149 screenshotMode : 'inline' ,
0 commit comments