@ogygia/testing

AllMajorMinorPatch Hide pre-releases
0.14.0 minor

@ogygia/testing

Minor Changes

  • #603 cb841aa Thanks @PuruVJ! - 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.
  • #531 dc985cf Thanks @PuruVJ! - - @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.
  • #605 ec75d61 Thanks @PuruVJ! - - @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

  • #475 81a40ea Thanks @PuruVJ! - 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.
  • #1192 b8d8cf0 Thanks @PuruVJ! - profile() asks the profiler with a POST (the driver's post), as the profiler's /page now takes a POST only.

Updated dependencies: @ogygia/[email protected], @ogygia/[email protected], @ogygia/[email protected], @ogygia/[email protected]

0.13.0 minor

@ogygia/testing

Minor Changes

  • #177 d9e8e2f Thanks @PuruVJ! - 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

  • #175 a99a49a Thanks @PuruVJ! - 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.
  • #306 8b33368 Thanks @PuruVJ! - 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).
  • #184 1767110 Thanks @PuruVJ! - Packages declare sideEffects (only their .css files run on import), so bundlers drop the modules an app never uses.
  • #306 8b33368 Thanks @PuruVJ! - record() that fails early stops its server window, untags the requests and lifts the navigation blocker, so the next record() starts at once (#291).

Updated dependencies: @ogygia/[email protected], @ogygia/[email protected]

0.12.0 minor

@ogygia/testing

Updated dependencies: @ogygia/[email protected]

0.11.0 minor

@ogygia/testing

Updated dependencies: @ogygia/[email protected]

0.0.0 minor

@ogygia/testing