Yeoman (YN) Practice Test

Session length

1 / 20

How should a generator handle updates to the user's existing project files?

Overwrite files immediately to ensure consistency

Be cautious; avoid overwriting without prompt; use conflicts; merge JSON; respect existing files

When updating a user’s existing project files, the priority is to protect the user’s work and avoid surprising changes. A generator should be cautious and avoid overwriting files without a clear prompt or a defined conflict-resolution path. It should surface what would change, offer options, and resolve conflicts in a predictable way. Merging when possible is preferable to replacing a file outright, especially for configuration files like JSON where new keys can be added while preserving the user’s existing values. This approach respects what the user has already built, minimizes data loss, and provides a transparent flow for applying updates.

Overwriting immediately risks losing user edits and customizations, which is why it’s not suitable. Ignoring updates until a restart delays important improvements and can leave projects out of date. Deleting conflicting files automatically is destructive and can break projects, so it’s also not a good strategy.

Ignore any changes unless the user restarts the generator

Delete conflicting files automatically

Next Question

Find the option that is right for you!

All options are one-time payments.

$25.99

30 day premium pass

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
👑$59.99 $171.99 usd

6 month DELUXE pass (most popular)

Everything with the 30 day premium pass FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • Everything included in the premium pass
  • $171.99 usd value for $59.99! You save $106!
  • + Access to the ultimate digital PDF study guide
  • + 6 months of premium pass access
  • + Priority support
$15.99 $24.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy