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

Upgrade mochawesome-merge to latest version to avoid deprecated inflight and glob package #209

Open
rearrange opened this issue Feb 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@rearrange
Copy link

Environment

- OS: Windows
- Node: 23.6.0
- cypress-mochawesome-reporter: 3.8.2
- cypress: 14.0.1

What happened?

Steps to Reproduce:

  • Create an empty repository and use npm init to initialize package.json.
  • Install cypress-mochawesome-reporter
  • Observe that there's npm warning about deprecated inflight and glob.

If you install the cypress-mochawesome-reporter version 3.8.2, you will get npm warning as such:

_npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported_

Upon further investigation, it comes from mochawesome-merge package which utilize old glob package. Now, mochawesome-merge has update the version to latest v5.0.0. This package should update the dependencies too so that the warning will no longer appear.

Config file

{
  "name": "test-cypress-mochawesome-reporter",
  "version": "1.0.0",
  "description": "test cypress-mochawesome-reporter",
  "license": "ISC",
  "author": "",
  "type": "commonjs",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "dependencies": {
    "cypress-mochawesome-reporter": "^3.8.2"
  }
}

Relevant log output

Anything else?

Example warning:
Image

@rearrange rearrange added the bug Something isn't working label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant