Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CD-539] Example to upgrade jest-puppeteer #395

Merged
merged 2 commits into from
Feb 26, 2024
Merged

[CD-539] Example to upgrade jest-puppeteer #395

merged 2 commits into from
Feb 26, 2024

Conversation

rupl
Copy link
Contributor

@rupl rupl commented Feb 21, 2024

This branch is the result of:

npm uninstall axios --save-dev
npm i jest-puppeteer@10 --save-dev
npm audit fix

We went from 5.0.3 to 10.0.1 — the CHANGELOG mentions version 7 having the only breaking change aside from node.js minimum version support: changing toMatch to be toMatchTextContent

When I tried to manually change all instances of toMatch to be toMatchTextContent it resulted in errors. Leaving the tests in their previous state using toMatch still works. I'm unsure why, but I did verify that I'm using the newest version of jest-puppeteer when running commands.

rupl added 2 commits February 21, 2024 14:38
Strangely the 7 breaking-change involved changing all
instances of toMatch() to toMatchTextContent() but it
only created errors when that change was implemented
and leaving the tests as they were seemed to work fine.

Refs: CD-539
Copy link

Coverage Report

Totals Coverage

Copy link

Build output

Composer Validate success

PHP Lint success

Docker Build success

Environment Setup success

Site Install success

PHP Code Sniffer success

Software Versions PHP 8.2.15 (cli) (built: Jan 20 2024 14:17:05) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.15, Copyright (c) Zend Technologies with Zend OPcache v8.2.15, Copyright (c), by Zend Technologies with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans Composer version 2.7.1 2024-02-09 15:26:28
Drupal Logs

Pusher: @rupl, Action: pull_request, Workflow: Run tests

Base automatically changed from CD-537 to develop February 26, 2024 12:10
@rupl rupl marked this pull request as ready for review February 26, 2024 12:12
@rupl rupl merged commit 6f4e79a into develop Feb 26, 2024
3 checks passed
@rupl rupl deleted the CD-539 branch February 26, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant