@marinade.finance/web3js-1x-testing
v4.1.5
Published
solana/web3.js 1.x testing helper library
Readme
web3js-1x-testing
@marinade.finance/web3js-1x-testing
Testing utilities to work with Solana web3.js library in version 1.x
Dependencies
Library defines set of peerDependencies that are required to be directly installed by dependent program.
pnpm add -D @solana/web3.js@1
pnpm add -D [email protected]Installation
# see Pre-requisites and Dependencies
pnpm add @marinade.finance/web3js-1x-testing@latestJest test equality testers
When used with testing framework jest to use equalityTesters, also install
pnpm add -D @jest/globals@^30.1.2add to jest.config.js something like this
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testTimeout: 90000,
detectOpenHandles: true,
modulePathIgnorePatterns: ['<rootDir>/build/'],
testPathIgnorePatterns: ['__tests__/.*.skip.ts', '__tests__/setup/*'],
globalSetup:
'<rootDir>/packages/marinade-ts-cli/__tests__/setup/globalSetup.ts',
setupFilesAfterEnv: ['<rootDir>/<path-to-package>/node_modules/@marinade.finance/web3js-1x-testing/dist/src/equalityTesters'],
}