Skip to content

Latest commit

 

History

History
199 lines (110 loc) · 9.38 KB

CHANGELOG.md

File metadata and controls

199 lines (110 loc) · 9.38 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.9.2 (2023-06-19)

Bug Fixes

  • adapt to FilePicker changes in v11 (24cad29), closes #306

0.9.1 (2023-04-08)

Bug Fixes

  • UI: prevent Firefox from getting stuck and hiding expanded elements (1b3b273)
  • UI: restore indentation of nested tests in UI (6b12575)

0.9.0 (2023-04-07)

⚠ BREAKING CHANGES

  • remove deprecated pre-selection setting
  • remove deprecated Quench#runAllBatches and its options

Features

  • add Chai as Promised (584559a), closes #245

  • add search filter to UI (e2c04bf), closes #261

  • add setting shortcut to QuenchResults header buttons (a57234c), closes #256

  • improve display of errors thrown in hooks (ecda47c)

  • remove deprecated Quench#runAllBatches and its options (62a3595)

  • remove deprecated pre-selection setting (095fb60)

0.8.1 (2022-08-01)

Bug Fixes

  • only run all batches when no keys are provided at all (e053a73)
  • prevent errors in diff generation when encountering undefined (ed50c8a)

0.8.0 (2022-08-01)

⚠ BREAKING CHANGES

  • deps: bump fast-check from 2.25.0 to 3.1.1 (#156)
  • replace preselect packages with preselect filters
  • refactor runSelectedBatches, _testBatches, and utils

Features

  • add JSON report generation (6c41d48)
  • enable batch key filtering in settings and quench.runBatches (397c8e3)
  • improve diff context trimming (e84cbd4)
  • improve diff readability (4874eea), closes #147
  • improve error message spacing (c064cb2), closes #146

Bug Fixes

  • improve diff detection and display (353e1d4)

  • deps: bump fast-check from 2.25.0 to 3.1.1 (#156) (dbbe6c7)

  • refactor runSelectedBatches, _testBatches, and utils (fb7f286)

0.7.0 (2022-05-26)

Features

  • add option to only run preselected batches on startup (18a59ec), closes #117
  • add preselected packages setting to limit test preselection (582d37c), closes #117 #133

Bug Fixes

  • fix appearance of Quench button in collapsed sidebar (1303d51)
  • fix registerBatch throwing an error in v10 (#125) (45ca352)
  • improve diff layout, limit shown context, improve styling (9d07b1b), closes #132

0.6.0 (2022-02-23)

⚠ BREAKING CHANGES

  • Export types as ES module

Features

  • allow setting initial checked status at batch registration (11c47b3)

  • display diffs for errors containing actual and expected values (044f7af)

  • introduce fast-check for property based testing (d834d33)

  • add additional linting rules (0668ae2)

0.5.2 (2021-11-05)

Features

  • improve snapshot upload performance, allow updating after runs (223c270)
  • provide detailed overview for uploaded files in console (528194e)

Bug Fixes

  • prevent snapshot updates from accumulating with runs (f617bb5)

0.5.1 (2021-10-27)

⚠ BREAKING CHANGES

  • snapshots: Quench now uses fnv1a for hashing, which means new hashes will differ from previous ones, breaking the current association of test to file (732bb2a)

[0.5.0] 2021-10-23

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] 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] 2021-10-05

Bug Fixes

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

[0.4.0] 2021-10-05

ADDED

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

INTERNALS

  • Merged the two init hooks into one.
  • Cleaned out globalThis juggling, which wasn't working.
  • Had to slightly tweak mocha itself to keep window.ui from clobbering mocha.ui.

[0.3.0] 2021-05-27

ADDED

  • Include chai.expect and chai.should to the testing context, so they can be used as an alternative to chai.assert. (thanks @cramt for the addition)

[0.2.0] 2021-02-05

ADDED

  • Some formatting improvements for the Quench window.
  • Add some new convenience settings:
    • collapseSuccessful: collapses suites for which all children passed
    • autoShowQuenchWindow: shows the quench results window immediately on startup
    • autoRun: runs all registered quench test batches immediately on startup

API

  • Add runAllBatches method on Quench
    • This will run all batches, regardless of what may or may not be selected in the quench UI

[0.1.0] 2021-02-03

Initial Release