Skip to content

Tests: Remove empty QUnit.module scaffolding - #34409

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
samuel7james:tests/remove-empty-qunit-stubs
Aug 31, 2026
Merged

Tests: Remove empty QUnit.module scaffolding#34409
Mugen87 merged 1 commit into
mrdoob:devfrom
samuel7james:tests/remove-empty-qunit-stubs

Conversation

@samuel7james

Copy link
Copy Markdown
Contributor

Related Issue

Closes #34371

Description

28 files under test/unit/src contained only nested QUnit.module scaffolding with no QUnit.test calls inside them, and the import line at the top left commented out. They were still registered in test/unit/three.source.unit.js and ran as part of npm run test-unit, so the module tree in the test report reads as broader coverage than actually exists.

A previous PR filled in real tests for 17 of these, but was closed by its own author to get more familiar with the test framework first. @mrdoob's follow-up on the issue suggested the simpler alternative — removing them — so this PR does that for all 28 (both the group tractable without a live GL context and the group that would need one), rather than leave a partially-covered set of stubs behind.

Removed, with their corresponding import line in three.source.unit.js:

  • animation/AnimationUtils, animation/PropertyMixer
  • audio/AudioAnalyser
  • extras/Earcut, extras/ImageUtils, extras/PMREMGenerator, extras/ShapeUtils, extras/core/Interpolations
  • renderers/WebGLRenderer
  • renderers/webgl/WebGLAttributes, WebGLBackground, WebGLBufferRenderer, WebGLCapabilities, WebGLClipping, WebGLGeometries, WebGLIndexedBufferRenderer, WebGLLights, WebGLMorphtargets, WebGLObjects, WebGLProgram, WebGLPrograms, WebGLProperties, WebGLShader, WebGLShadowMap, WebGLState, WebGLTextures, WebGLUniforms, WebGLUtils

No source files are touched — this is test scaffolding only.

Verification

$ npm run test-unit
1..1316
# pass 1315
# skip 0
# todo 1
# fail 0

Same pass/todo/fail counts as before this change (the single todo is the pre-existing Mesh.raycast one) — expected, since none of the removed files had any QUnit.test calls to lose.

$ npm run lint-test

Clean on every file in this diff (lint-test reports pre-existing errors in a few unrelated addon test files that this PR doesn't touch).

28 files under test/unit/src contained only nested QUnit.module
scaffolding with no QUnit.test calls and the import line commented out.
They were still registered in three.source.unit.js and ran as part of
npm run test-unit, so the module tree read as broader coverage than
actually exists.

Removes the 28 empty stub files and their imports (mrdoob#34371).

npm run test-unit: 1315 pass, 1 todo (pre-existing), 0 fail — same as
before this change, since no QUnit.test calls existed in these files
to begin with. npm run lint-test is unaffected by this diff.
@Mugen87 Mugen87 added this to the r186 milestone Aug 31, 2026
@Mugen87
Mugen87 merged commit d041131 into mrdoob:dev Aug 31, 2026
9 checks passed
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.

Several unit test files are empty QUnit.module scaffolding

2 participants