Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 632 Bytes

File metadata and controls

34 lines (26 loc) · 632 Bytes

Extensions Module

Download extensions from chrome store

Install

yarn add @lidofinance/wallets-testing-extensions

Usage

import {ExtensionService, ExtensionsModule} from "@lidofinance/wallets-testing-extensions";

@Module({
    imports: [ExtensionsModule],
})
export class MyModule {
}

// Usage
export class MyService {
    constructor(private extensionService: ExtensionService) {
    }

    async myMethod() {
        const extensionDir = await extensionService.getExtensionDirFromId(
            'nkbihfbeogaeaoehlefnkodbefgpgknn',
        );
        expect(extensionDir).toBeDefined();
    }
}