16 questions for “Testing with Jest”

Found in 1 field. Select a question to see its full answer.

Information Technology

16 questions in 1 technology

#QuestionTechnologyTopicLevel
1How do you use the built-in 'debugger' statement together with Node's --inspect flag to set breakpoints in code? Node.js › Debugging & DiagnosticsNode.jsDebugging & DiagnosticsBeginner
2What does the node:assert module provide, and how does it differ in purpose from a full testing framework? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate
3How would you test that a Node.js application correctly sends emails without actually sending real emails during automated tests? Node.js › Email & NotificationsNode.jsEmail & NotificationsIntermediate
4How does Node.js's built-in test runner (node:test) compare to third-party frameworks like Jest or Mocha? Node.js › Advanced Node.jsNode.jsAdvanced Node.jsAdvanced
5How would you write automated tests for GraphQL resolvers in Node.js, testing them independently of the full HTTP/schema execution layer? Node.js › GraphQLNode.jsGraphQLAdvanced
6What is Mongoose, and what does it add on top of the raw MongoDB Node.js driver? Node.js › Databases & ORMs (MongoDB/Mongoose, SQL/Sequelize)Node.jsDatabases & ORMs (MongoDB/Mongoose, SQL/Sequelize)Beginner
7What is Dependency Injection, and how is it typically implemented in Node.js given the language has no built-in DI container? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsIntermediate
8What is a feature flag, and how would you implement one in a Node.js application to control a new feature's rollout? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
9What is email template rendering, and how might you use a templating engine to generate dynamic HTML emails in Node.js? Node.js › Email & NotificationsNode.jsEmail & NotificationsIntermediate
10What is a pull request template, and how does it help standardize code review in a Node.js team's Git workflow? Node.js › Git & Project ManagementNode.jsGit & Project ManagementIntermediate