Skip to content

Releases: Ethaks/FVTT-Quench

Version 0.5.0

23 Oct 11:21

Choose a tag to compare

Bug Fixes

  • The clearWorld utility function did not actually work after getting updated to use Documents

Features

  • Added snapshot support
    • The basic assertion function is matchSnapshot, which can be used like this: expect({foo: "bar"}).to.matchSnapshot()
    • Snapshots are stored in Foundry's Data/__snapshots__/<package name> directory by default
    • In this snapBaseDir, each batch gets its own directory, in which each test's snapshot is stored in their own file named by the test's hash
    • The snapshot directory default can be overwritten by setting a snapBaseDir option in the batch registration options
  • autoRun tests are now guaranteed to start after the ready hook is fired

API

  • The quenchReady hook is now deprecated
    • To remain compatible with old batch registration for now, the quenchReady hook is still fired in Foundry's setup hook
  • The quench global is now guaranteed to get initialised in the init hook and can be used afterwards
  • Registering a batch whose name does not belong to a package will now trigger a UI warning

0.4.2

06 Oct 14:38

Choose a tag to compare

[0.4.2] 2021-10-06

Bug Fixes

  • Debounce page reloads when the example tests setting is changed.

Features

  • Pre-run chai.should and only pass its resulting helper into the context.

0.4.1

05 Oct 19:41

Choose a tag to compare

Bug Fixes

  • Replace entity references with document ones to match Foundry's Document usage

Internals

  • Introduce gulp to build the module's files

0.4.0

05 Oct 15:40

Choose a tag to compare

ADDED

  • Now works with Foundry 0.8.x.
  • Bumped mocha to 9.1.2 and chai to 4.3.4.