@lewiswright/vitest-plugin-vis
Version:
Vitest visual testing plugin
23 lines (22 loc) • 537 B
JavaScript
import { stub } from 'type-plus';
export const stubBrowserCommandContext = stub.build({});
export function createStubPartialBrowserCommandContext({ root, testPath }) {
return stub.build({
project: {
config: {
root,
},
vite: {
config: {
test: {
name: 'subject',
},
},
},
},
provider: {
options: {},
},
testPath,
});
}