In the major release, the browser mode is stable, which recently offers Visual Regression Testing to uncover optical changes.
Vitest is available in the new main version 4.0. Updates are available for, among others, the browser mode, handling the end-to-end testing framework Playwright, and debugging with the Visual Studio Code extension.
Vitest is a testing framework based on the frontend build tool Vite.js, which focuses on speed. Both are available as open source, but the Vite team is currently also working on the commercial offering Vite+, which is intended to representon June 16 and 17 in Mannheim: The organizers are looking for talks and workshops on JavaScript and TypeScript, frameworks, tools and libraries, security, UX, and more. DiscountedThe browser mode is a feature of the Vitest API that was previously marked as experimental and has now reached stable status. This allows tests to be executed natively in the browser.The browser mode also receives a new function: Visual Regression Testing. This means Vitest creates screenshots of UI components and pages and compares them with reference images to detect unintended visual changes. Visual Regression Testing can be performed using the assertionimport { expect, test } from 'vitest' import { page } from 'vitest/browser' test=>{ // ...the rest of the test // capture and compare screenshot await expect).toMatchScreenshot })Vitest 4.0 brings an update for use with the end-to-end testing framework Playwright: It can now generate Playwright traces if thecan also be set. The created trace file can be opened with the Playwright Trace Viewer. There is also a new feature in the extension for Visual Studio Code: The "Debug Test" button can now be used when running browser tests.Dieser Link ist leider nicht mehr gültig. Links zu verschenkten Artikeln werden ungültig, wenn diese älter als 7 Tage sind oder zu oft aufgerufen wurden.
Javascript Softwaretest Test Vite.Js Vitest Web-Frontend
Deutschland Neuesten Nachrichten, Deutschland Schlagzeilen
Similar News:Sie können auch ähnliche Nachrichten wie diese lesen, die wir aus anderen Nachrichtenquellen gesammelt haben.
JavaScript: Testing-Framework Vitest 4.0 bringt visuelles RegressionstestingIm Major Release ist der Browser Mode stabil, der neuerdings Visual Regression Testing bietet, um optische Änderungen aufzudecken.
Weiterlesen »
Developer Snapshots: Kleinere News der WocheDie Übersicht enthält kleine, aber interessante Meldungen zu Grafana Tempo, Visual Studio 2026, Accessibility, GitHub, Valkey, PyTorch, Slint und Django.
Weiterlesen »
Triathletin Imogen Simmonds von Dopingverdacht freigesprochenDie Schweizer Triathletin Imogen Simmonds wurde von der International Testing Agency (ITA) freigesprochen. Die Dopingbehörde folgte der Argumentation der Athletin, dass die verbotene Substanz durch Sex mit ihrem Freund in ihren Körper gelangt sei.
Weiterlesen »
European Darts Championship: Historischer Darts-Titel in DortmundGian van Veen gewinnt seinen ersten Major-Titel - und lässt sich nicht von Problemen mit seiner Wurfhand beirren. Der Niederländer löst Michael van Gerwen als jüngsten Sieger der European Championship ab.
Weiterlesen »




