10000 GitHub - ton-org/test-utils at main
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
10000

ton-org/test-utils

 
 

Repository files navigation

test-utils

This package contains useful testing utilities, such as unit test matchers (for jest and chai) and other useful functions, such as randomAddress.

Installation

yarn add @ton/test-utils -D

or

npm i --save-dev @ton/test-utils

Usage

To use the test matchers, just install either jest or chai and import this package like so:

import "@ton/test-utils";

Transaction matcher notice

The transaction matcher (.toHaveTransaction) can only perform matching on transactions with descriptions of type generic. When matching an array of transactions, all transactions of other types will be filtered out. When matching a single transaction of non-generic type, an exception will be thrown.

License

This package is released under the MIT License.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0