Chapter 6

Advanced patterns for testing — quiz

5 questions · ~4 min

Chapter 6 quiz

Question 1 of 5

Your test framework supports three environments — dev, staging, prod — and `currentEnv` should only ever hold one of those values. Which declaration prevents typos like `"stagging"` at compile time?