跳到主要内容
Sébastien Lorber
Docusaurus 维护者、React 周刊编者

一个自由职业者,React/React-Native 开发者和 Docusaurus 维护者,生活在巴黎附近。同时在维护一个网站,ThisWeekInReact.com 。它是有关于 React 生态最新动态的通讯简报。

查看所有作者

Upgrading frontend dependencies with confidence

· 阅读需 10 分钟
Sébastien Lorber
Docusaurus 维护者、React 周刊编者

Frontend developers often need to upgrade npm dependencies, but those upgrades can feel scary and lead to subtle UI side effects not caught by your regular test suite.

Upgrading Docusaurus is a good example: without reviewing all the pages one by one, it's hard to be sure there's no visual regression. Docusaurus v3 is around the corner (currently in beta), and we would like to help you do this upgrade with confidence.

This article introduces a visual regression testing workflow based on GitHub Actions, Playwright, and Argos. It is not directly coupled to Docusaurus or React, and can be adapted to work with other frontend applications and frameworks.

Upgrading frontend dependencies with confidence - social card