digidem / mapeo-core-next

The upcoming version of Mapeo Core
MIT License
7 stars 1 forks source link

test: move basic manager tests to `node:test` #662

Closed EvanHahn closed 1 month ago

EvanHahn commented 1 month ago

This test-only change drops Brittle from our basic manager tests and replaces them with node:test and node:assert.

Two notable things about this change:

  1. There was a test that was commented out because of a Brittle bug. This uncomments it and sets the skip: true option.
  2. Brittle has an (undocumented) t.snapshot() method which we can't use. I replaced it with a custom snapshot assertion.

The rest was just mechanical stuff.