concept JavaScript test in category ethereum

appears as: JavaScript tests
Building Ethereum Dapps: Decentralized applications on the Ethereum blockchain

This is an excerpt from Manning's book Building Ethereum Dapps: Decentralized applications on the Ethereum blockchain.

  • JavaScript tests—Test the contract from external Web3.js calls, which go through the same infrastructure as real calls
  • You must place all test scripts, whether written in Solidity or JavaScript, in the test directory of the Truffle project. We’ll focus almost entirely on JavaScript tests, as Solidity tests are meant to test contract-to-contract interaction, which is a more advanced topic outside the scope of this book. But I’ll give you some of the basics of working with Solidity tests.