@marinade.finance/jest-utils
TypeScript icon, indicating that this package has built-in type declarations

2.4.4 • Public • Published

jest-utils

@marinade.finance/jest-utils

Jest testing utilities.

For global equality tester it can be added to check BN and @solana/web3.js PublicKey and when using jest-shell-matchers then adding TypeScript typing for it.

Configuration of the equality tester for global usage

Add 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>/packages/jest-utils/src/equalityTesters.ts'],
}

Readme

Keywords

Package Sidebar

Install

npm i @marinade.finance/jest-utils

Weekly Downloads

61

Version

2.4.4

License

ISC

Unpacked Size

5.9 kB

Total Files

11

Last publish

Collaborators

  • marinade.finance