processing / processing/p5.js-web-editor

Test-only packages are in production dependencies

Open
#3,937 2 comments 0 reactions 1 assignee View on GitHub

@avinxshKD is already working on this.

Since Mar 10, 2026.

Bug
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

A few test libraries are listed under runtime dependencies instead of devDependencies, so they get installed in production builds unnecessarily.

Packages currently in runtime deps:

  • sinon
  • sinon-mongoose
  • jest-express
  • mongodb-memory-server

mongodb-memory-server is especially heavy and unnecessary for production installs.

Actual behavior:
Test tooling is shipped in runtime dependencies.

Expected behavior:
Test tooling should be in devDependencies only.

Steps to reproduce:

  1. Open package.json.
  2. Check the dependencies section.
  3. Confirm the above test packages are listed there.

Why this matters:
Larger production install/build footprint.
Slower CI/build pipelines.
Unnecessary runtime dependency surface.

Environment:
Repo: processing/p5.js-web-editor
Date observed: 2026-02-21
Local dev setup on Windows

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.