Skip to main content

Example solution: Find, Fix, Verify

Instructor reference; attempt the student worksheet before opening the answer key.

Use the corrected application and its REMEDIATION.md to explain the dependency changes, then compare the tests and before/after reports. The application code is unchanged; the exercise repairs its dependencies.

Choose one package-manager track​

The links point to the existing runnable solutions, rather than duplicate copies. Each solution includes the corrected manifest, lockfile, application, tests, and a worked remediation explanation. Use the track instructions for installation and scanning commands.

TrackCorrected applicationExplanationRun instructionsCaptured reports
npmSolutionRemediationInstructionsBefore/after
pnpmSolutionRemediationInstructionsBefore/after
Yarn ClassicSolutionRemediationInstructionsBefore/after
Yarn BerrySolutionRemediationInstructionsBefore/after
BunSolutionRemediationInstructionsBefore/after

Verify and teach the example​

  1. Read the selected track's instructions and remediation explanation.
  2. Run the supplied tests and application, then scan using that track's documented commands.
  3. Compare actual results with the captured reports and explain any differences. Advisory data changes; do not grade against a permanently fixed finding count.
  4. Use the walkthrough and rubric when evaluating students' reasoning. Other justified and verified repairs can be valid.

Sharing with students​

These solutions are public. For assignments where you want to withhold answers, distribute a student-only export, not the full repository. The export excludes instructor solutions and captured reports. Students may still find the public repository, so adapt graded tasks accordingly.

Screenshot preview