Changelog

@ogygia/testing

Every release of @ogygia/testing, newest first.

Latest
0.16.0
Versions
6
  1. 0.16.0 minor

    Dependency updates only @ogygia/testing

  2. 0.15.0 minor

    Dependency updates only @ogygia/testing

  3. 0.14.0 minor

    Minor Changes

    • OgygiaDriver gains an optional addInitScript(source): new Ogygia(driver) hands it the testing engine as it is made, so a custom driver (Puppeteer's evaluateOnNewDocument, for one) gets the engine in every page it loads after that. playwrightDriver and withOgygia use it.
    • - @ogygia/testing: withOgygia injects its own copy of the testing engine into each page before it loads (one bundled script, Playwright's addInitScript), so the engine always matches the package's version. page().self.bytes is 0 then (the page downloads none of it), and page().self.phases.engine is the engine's own start. - @ogygia/devtools: the dock's realm lends the injected engine what only the app's build knows (dev or not, the regions' names, the props lookup), and the leftovers watch keeps one record per page that any copy of the readers can read.
    • - @ogygia/testing: testing() from @ogygia/testing/vite, listed beside ogygia(), feeds the testing engine a test injects, so page(), hydration(), record() and settled() work without devtools in the app. A visitor runs nothing of it. profile() still needs devtools({ profiler }). - @ogygia/testing: the injected engine starts the page beacon itself, so a page without the devtools server is measured too. - @ogygia/devtools: with both the dock and testing() in an app, each runtime hook call is recorded and measured once.

    Patch Changes

    • Durations are measured on the monotonic clock: the memory store's TTLs, a federation deploy check's retry wait, the profiler's recording window, deadlines and busy waits, the testing API's wait, and the perf CLI's waits. A wall-clock step no longer moves them.
    • profile() asks the profiler with a POST (the driver's post), as the profiler's /page now takes a POST only.

    Dependencies: @ogygia/core@0.14.0, @ogygia/compiler@0.14.0, @ogygia/machine@0.14.0, @ogygia/insights@0.14.0

  4. 0.13.0 minor

    Minor Changes

    • The testing primitives over any driver are a class: new Ogygia(driver, options) replaces createOgygia(driver, options), and a driver's own get, post and wait are now called as its methods.

    Patch Changes

    • Every ogygia error and warning has a code and a page at ogygiajs.dev/e/<code>: dev prints the wording and the link, a production build prints the link alone ([ogygia] https://ogygiajs.dev/e/<code>?<args>), so the wording stays out of the client and server bundles.
    • record() whose actions fail throws their error even when an undo (the navigation blocker's or the server window's stop) fails after them, instead of the undo's (#372).
    • Packages declare sideEffects (only their .css files run on import), so bundlers drop the modules an app never uses.
    • record() that fails early stops its server window, untags the requests and lifts the navigation blocker, so the next record() starts at once (#291).

    Dependencies: @ogygia/core@0.13.0, @ogygia/machine@0.13.0

  5. 0.12.0 minor

    Dependency updates only @ogygia/testing

  6. 0.11.0 minor

    Dependency updates only @ogygia/testing