Skip to content

Releases: LimeChain/matchstick

v0.4.2

24 Mar 12:36
a11f8e0
Compare
Choose a tag to compare
Merge pull request #318 from LimeChain/add-uint-to-type-check

Fix missing uint type

v0.4.1

20 Mar 20:02
39690a1
Compare
Choose a tag to compare
  • Requires matchstick-as version 0.4.1
  • IPFS map and cat functions can now be tested. More on that here
  • Fixed unexpected behaviour caused by deletion/update of entities containing derived fields not reflecting on the entity they are pointing to.
  • createMockedFunction now also check for the amount and types of arguments given by looking at the function signature.
  • Fixed dataSource.address() not returning a correct Address value

v0.4.0

25 Feb 14:36
03875ff
Compare
Choose a tag to compare
  • Function for returning the amount of entities of a certain type and one for asserting it have been added in matchstick-as 0.4.0, example here
  • Improved option for selecting a different test folder and added an option for selecting a different node_modules folder, more on that here
  • Windows no longer supported as a standalone binary, still supported via docker
  • Couple of bug fixes including some M1 chips not being recognised as M1 when selecting binary and testsFolder crashing on graph codegen
  • Minor performance improvements

v0.3.0

01 Feb 14:29
f760abc
Compare
Choose a tag to compare

v0.2.3

06 Jan 08:58
9c4f330
Compare
Choose a tag to compare
  • Windows binary created and working now
  • shouldFail not failing test when test doesn't error is now fixed
  • Refactors how the coverage tool works (requires matchstick-as version 0.2.3)
  • More clarity added to errors and messages on test fails

v0.2.2

16 Dec 12:21
d9dca58
Compare
Choose a tag to compare
  • Fixes logStore() not working
  • Fixes No such file or directory (os error 2)

v0.2.1

09 Dec 14:24
997fcf0
Compare
Choose a tag to compare
  • Docker is now an alternative for running matchstick - see README for instructions on how to use it
  • Location of the tests folder can now be changed with the new testsFolder attribute that can be added to the subgraph.yaml
  • Changing the location of schema.graphql does not cause and error anymore
  • Recompiling previously compiled tests is now instant
  • Code coverage added, example usage: graph test -c
  • Errors are now more descriptive
  • Numerous bug fixes
  • Improved UI

Testing graph-25 version update

08 Dec 14:55
Compare
Choose a tag to compare
Pre-release
0.2.1-test

update  graphql parser version

v0.2.0

22 Oct 14:24
1c01611
Compare
Choose a tag to compare
  • M1 Macs are now supported (before they threw a 'libpq not loaded error')
  • Tests are now evaluated individually and do not require a runTests function encompassing them
  • Due to the update above exporting runTests from your mapping file is no longer necessary and therefore deployment is no longer being broken by that
  • When trying to save an entity to the store, Matchstick now checks whether you have all the required fields properly set and alarms you if they are not
  • get_available_datasources now returns only datasources for which at least 1 test is written
  • WASM binary is now compiled directly from tests
  • A helper method was added to matchstick-as for mocking call handlers that returns a filled instance of ethereum.Call - newMockCall(), example below:
let call = changetype<CreateGravatarCall>(newMockCall())
call.inputValues = [new ethereum.EventParam("displayName", ethereum.Value.fromString("name")), new ethereum.EventParam("imageUrl", ethereum.Value.fromString("example.com"))]
handleCreateGravatar(call)

assert.fieldEquals(TRANSACTION_ENTITY_TYPE, "0xa16081f360e3847006db660bae1c6d1b2e17ec2a", "displayName", "name")
assert.fieldEquals(TRANSACTION_ENTITY_TYPE, "0xa16081f360e3847006db660bae1c6d1b2e17ec2a", "imageUrl", "example.com")
  • For more details check the README file of the project

An early preview of test decoupling.

19 Oct 03:38
Compare
Choose a tag to compare
Pre-release
0.1.6a

sync with main and resolve conflicts