Joi: checking against multiple values in conditional()
Published on in JavaScript, Joi and Testing
Last updated on
Use { is: Joi.any().valid(...values) }
to check if a value is included in an array.
conditional()
Published on in JavaScript, Joi and Testing
Last updated on
Use { is: Joi.any().valid(...values) }
to check if a value is included in an array.
Published on in Testing
Last updated on
Smoke testing is cursory or "quick and dirty" testing to see that the software works correctly.
Published on in JavaScript, React and Testing
React context is normally updated inside the React app. Here's a hacky way how I circumvented that restriction in a test file.
The NSubstitute package simplifies how mock implementations are created and how mocks are used.
The Fluent Assertions package makes unit test assertions read like English and also improves the error messages.
YouTube recommended me a two-part video series that was fun to watch and gave me a few lightbulb thoughts.
Published on in JavaScript, React and Testing
Such naming helps you create tests that resemble the way your users use your app.
Published on in Accessibility, JavaScript, React and Testing
Accessible queries take into account the semantic meaning of HTML elements. Such queries help you write more accessible apps.