File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
import process from 'node:process'
2
+ import path from 'pathe'
2
3
import type { Context , ResolvedContext } from './context.js'
3
4
import { getContext , getResolvedContext } from './context.js'
4
5
import { type ResourceStorages , applySwitchToBranch } from './resource/storage.js'
@@ -129,7 +130,7 @@ export async function createMoquerieInstance(options: CreateMoquerieInstanceOpti
129
130
*/
130
131
export function createTestInstance ( overrideOptions : Partial < CreateMoquerieInstanceOptions > = { } ) : Promise < MoquerieInstance > {
131
132
return createMoquerieInstance ( {
132
- cwd : process . env . MOQUERIE_CWD ?? process . cwd ( ) ,
133
+ cwd : process . env . MOQUERIE_CWD ? path . resolve ( process . cwd ( ) , process . env . MOQUERIE_CWD ) : process . cwd ( ) ,
133
134
skipWrites : true ,
134
135
silent : true ,
135
136
watching : false ,
You can’t perform that action at this time.
0 commit comments