Changelog
@ogygia/testing
Every release of @ogygia/testing, newest first.
- Latest
- 0.16.0
- Versions
- 7
0.16.0 minor
Dependency updates only @ogygia/testing
0.15.1 patch
Dependency updates only @ogygia/testing
0.15.0 minor
Dependency updates only @ogygia/testing
0.14.0 minor
Minor Changes
OgygiaDrivergains an optionaladdInitScript(source):new Ogygia(driver)hands it the testing engine as it is made, so a custom driver (Puppeteer'sevaluateOnNewDocument, for one) gets the engine in every page it loads after that.playwrightDriverandwithOgygiause it.- -
@ogygia/testing:withOgygiainjects its own copy of the testing engine into each page before it loads (one bundled script, Playwright'saddInitScript), so the engine always matches the package's version.page().self.bytesis 0 then (the page downloads none of it), andpage().self.phases.engineis 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 besideogygia(), feeds the testing engine a test injects, sopage(),hydration(),record()andsettled()work without devtools in the app. A visitor runs nothing of it.profile()still needsdevtools({ 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 andtesting()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'spost), as the profiler's/pagenow 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
0.13.0 minor
Minor Changes
- The testing primitives over any driver are a class:
new Ogygia(driver, options)replacescreateOgygia(driver, options), and a driver's ownget,postandwaitare 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.cssfiles 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 nextrecord()starts at once (#291).
Dependencies: @ogygia/core@0.13.0, @ogygia/machine@0.13.0
0.12.0 minor
Dependency updates only @ogygia/testing
0.11.0 minor
Dependency updates only @ogygia/testing