What
Remove the stale legacy test infrastructure that was left over from the Vue CLI era: the tests/ directory contents and the two unused test-related devDependencies (@types/jest and @vue/test-utils).
Why
The unit and e2e test files in tests/ have not been runnable since the Vite migration:
tests/unit/example.spec.ts — imports shallowMount from @vue/test-utils and references a msg prop that no longer exists on HelloWorld.vue. There is no npm run test:unit script in package.json and no jest configuration.
tests/e2e/ — a Nightwatch e2e test suite with no corresponding npm script or Nightwatch dependency installed.
Because these tests can never be executed, the two devDependencies they require serve no purpose:
| Package |
Size |
Why unused |
@types/jest |
~2 MB of types |
No jest config, no test runner |
@vue/test-utils |
~1 MB |
Only referenced by stale spec file |
Keeping them adds unnecessary weight to npm install, bloats package-lock.json, and expands the surface area for npm audit security advisories.
Note: jest.config.js removal is already proposed in issues #126 / #133. This issue addresses the complementary changes: removing the actual test files and their devDependencies.
Files to change
tests/unit/example.spec.ts — delete (stale, non-functional)
tests/e2e/ directory — delete entirely (no npm script, no installed runner)
package.json — npm uninstall --save-dev @types/jest @vue/test-utils``
package-lock.json — updated automatically by npm
Impact
Verification
Generated by Continuous Improvement — Portfolio Site · ● 14.6M · ◷
What
Remove the stale legacy test infrastructure that was left over from the Vue CLI era: the
tests/directory contents and the two unused test-related devDependencies (@types/jestand@vue/test-utils).Why
The unit and e2e test files in
tests/have not been runnable since the Vite migration:tests/unit/example.spec.ts— importsshallowMountfrom@vue/test-utilsand references amsgprop that no longer exists onHelloWorld.vue. There is nonpm run test:unitscript inpackage.jsonand no jest configuration.tests/e2e/— a Nightwatch e2e test suite with no corresponding npm script or Nightwatch dependency installed.Because these tests can never be executed, the two devDependencies they require serve no purpose:
@types/jest@vue/test-utilsKeeping them adds unnecessary weight to
npm install, bloatspackage-lock.json, and expands the surface area fornpm auditsecurity advisories.Files to change
tests/unit/example.spec.ts— delete (stale, non-functional)tests/e2e/directory — delete entirely (no npm script, no installed runner)package.json—npm uninstall --save-dev@types/jest@vue/test-utils``package-lock.json— updated automatically by npmImpact
npm install(removes ~3 MB of unused type definitions and test utilities)npm auditsecurity scan surfaceVerification
npm run buildpassesnpm run lintpassesnpm installno longer installs@types/jestor@vue/test-utils