![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@jet-lab/e2e-react-adapter
Advanced tools
Adapter for Solana end-to-end tests. Injects a programmatic wallet in you dapp.
@jetlab/e2e-react-adapter is a test adapter for solana decentralised applications. It allows to interact with your application without having to go through a browser extension, this in turn enables end-to-end testing. It also allows to programmatically reject transaction, so you can test the sad paths too.
We have found difficult to integrate a solid end-to-end test suite by using what's currently available in the ecosystem. As we care about bug free code, it was a no-brainer to create an adapter that enabled e2e testing.
To install: yarn add @jet-lab/e2e-react-adapter
or npm -i @jet-lab/e2e-react-adapter
Simply add your wallet adapter to the array of adapters you normally send to your wallet-adapter-react
import { WalletProvider } from '@solana/wallet-adapter-react';
import {
PhantomWalletAdapter,
MathWalletAdapter,
SolflareWalletAdapter,
SolongWalletAdapter,
SolletWalletAdapter
} from '@solana/wallet-adapter-wallets';
import { E2EWalletAdapter } from 'e2e-react-adapter';
import { useMemo } from 'react';
import Main from './Main'
export function App(): JSX.Element {
const wallets = useMemo(() => [
new PhantomWalletAdapter(),
new MathWalletAdapter(),
new SolflareWalletAdapter(),
new SolongWalletAdapter(),
new SolletWalletAdapter(),
new SlopeWalletAdapter(),
new E2EWalletAdapter()
]}, []);
return <WalletProvider wallets={wallets} autoConnect>
<Main />
</WalletProvier>
}
The library will generate a new kepair each time is re-run so you either need to have an airdrop functionality on your localnet / devnet instance or you can pass a keypair object to the constructor like so:
new E2EWalletAdapter({
keypair: <your_keypair>
})
optionally you can also programmatically reject to send or signing a transaction with adapter.rejectNext()
or window.solanaE2E.rejectNext()
FAQs
Adapter for Solana end-to-end tests. Injects a programmatic wallet in you dapp.
We found that @jet-lab/e2e-react-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.