@ogygia/testing
0.14.0 minor
@ogygia/testing
Minor Changes
- #603
cb841aaThanks @PuruVJ! -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. - #531
dc985cfThanks @PuruVJ! - -@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. - #605
ec75d61Thanks @PuruVJ! - -@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
- #475
81a40eaThanks @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
b8d8cf0Thanks @PuruVJ! -profile()asks the profiler with a POST (the driver'spost), as the profiler's/pagenow 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
d9e8e2fThanks @PuruVJ! - 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
- #175
a99a49aThanks @PuruVJ! - Every ogygia error and warning has a code and a page atogygiajs.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
8b33368Thanks @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
1767110Thanks @PuruVJ! - Packages declaresideEffects(only their.cssfiles run on import), so bundlers drop the modules an app never uses. - #306
8b33368Thanks @PuruVJ! -record()that fails early stops its server window, untags the requests and lifts the navigation blocker, so the nextrecord()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]