Download extensions from chrome store
yarn add @tester513/wallets-testing-extensions
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
}
}