@@ -210,7 +210,7 @@ describe("SSR Transform Plugin", () => {
210210 expect ( result . code ) . toContain ( '"Counter"' ) ;
211211 expect ( result . code ) . toContain ( '"initialCount": 5' ) ;
212212 expect ( result . code ) . toContain (
213- 'import { commands } from "@ vitest/browser/context "' ,
213+ 'import { commands } from "vitest/browser"' ,
214214 ) ;
215215 } ) ;
216216
@@ -260,19 +260,19 @@ describe("SSR Transform Plugin", () => {
260260 const transform = plugin . transform as TransformFunction ;
261261
262262 const code = `
263- import { commands } from "@ vitest/browser/context ";
264- import { Counter } from "./fixtures/Counter";
265-
266- test("example", () => {
267- renderSSR(<Counter />);
268- });
269- ` ;
263+ import { commands } from "vitest/browser";
264+ import { Counter } from "./fixtures/Counter";
265+
266+ test("example", () => {
267+ renderSSR(<Counter />);
268+ });
269+ ` ;
270270
271271 const result = await transform ( code , "/test/existing-commands.test.tsx" ) ;
272272 expect ( result ) . not . toBeNull ( ) ;
273273 // Should not add duplicate import
274274 const importMatches = result . code . match (
275- / i m p o r t .* c o m m a n d s .* f r o m .* @ v i t e s t \/ b r o w s e r \/ c o n t e x t / g,
275+ / i m p o r t .* c o m m a n d s .* f r o m .* v i t e s t \/ b r o w s e r / g,
276276 ) ;
277277 expect ( importMatches ) . toHaveLength ( 1 ) ;
278278 } ) ;
0 commit comments