@@ -120,6 +120,9 @@ export default defineAddon({
120120 include : common . expressionFromString ( "['src/**/*.svelte.{test,spec}.{js,ts}']" ) ,
121121 exclude : common . expressionFromString ( "['src/lib/server/**']" ) ,
122122 setupFiles : common . expressionFromString ( `['./vitest-setup-client.${ ext } ']` )
123+ } ) ,
124+ resolve : object . create ( {
125+ conditions : common . expressionFromString ( '["browser"]' )
123126 } )
124127 } ) ;
125128 const serverObjectExpression = object . create ( {
@@ -141,9 +144,9 @@ export default defineAddon({
141144 const vitestConfig = functions . argumentByIndex ( defineWorkspaceCall , 0 , object . createEmpty ( ) ) ;
142145 const testObject = object . property ( vitestConfig , 'test' , object . createEmpty ( ) ) ;
143146
144- const workspaceArray = object . property ( testObject , 'workspace ' , array . createEmpty ( ) ) ;
145- array . push ( workspaceArray , clientObjectExpression ) ;
146- array . push ( workspaceArray , serverObjectExpression ) ;
147+ const projectsArray = object . property ( testObject , 'projects ' , array . createEmpty ( ) ) ;
148+ array . push ( projectsArray , clientObjectExpression ) ;
149+ array . push ( projectsArray , serverObjectExpression ) ;
147150
148151 return generateCode ( ) ;
149152 } ) ;
0 commit comments