Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 631 Bytes

File metadata and controls

34 lines (26 loc) · 631 Bytes

Extensions Module

Download extensions from chrome store

Install

yarn add @tester513/wallets-testing-extensions

Usage

import {ExtensionService, ExtensionsModule} from "@tester513/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();123
    }
}