interface FixtureOptions {
    cacheUserDir?: boolean;
    debug?: boolean;
    devtools?: boolean;
    downloadOptions?: Partial<DownloadMetamaskOptions>;
    isolated?: boolean;
    mnemonic?: string;
    password?: string;
    snap?: {
        id: string;
        page?: Page;
        version?: string;
    };
}

Properties

cacheUserDir?: boolean

Cache and reuse user directory. Defaults: false This options may cause unexpected behaviors and is not recommended You will loose isolation between tests and it wouldn't work with multiple extensions

debug?: boolean
devtools?: boolean
downloadOptions?: Partial<DownloadMetamaskOptions>

Options to download metamask.

isolated?: boolean

Should the metamask instance be isolated. Defaults: true Each test will have a new metamask instance and new browser context

mnemonic?: string

Mnemonic to use for metamask instance. Defaults: process.env.MNEMONIC or 'already turtle birth enroll since owner keep patch skirt drift any dinner'

password?: string

Password to use for metamask instance. Defaults: process.env.PASSWORD or '12345678'

snap?: {
    id: string;
    page?: Page;
    version?: string;
}

Preinstall metamask and snap before running tests. Defaults: false Make sure baseURL is set in the test config

Type declaration

  • id: string

    Snap ID

    'npm:@metamask/example-snap'
    
  • Optionalpage?: Page

    Page to install snap on.

  • Optionalversion?: string

    Snap version. Defaults to npm latest published version.