All fields

“Testing with Jest” in Information Technology

16 questions across 1 technology.

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
11What is the purpose of an npm 'scripts' section in package.json, and how do custom scripts standardize common project tasks across a team? Node.js › Git & Project ManagementNode.jsGit & Project ManagementIntermediate
12What is a layered (n-tier) architecture in a Node.js/Express application, and what are its typical layers? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
13What is the Repository pattern, and how does it help decouple business logic from a specific database technology? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
14What is a Hexagonal Architecture (Ports and Adapters), and what specific benefit does it provide for a Node.js API? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
15How would you use Git hooks (like a pre-commit hook via Husky) to enforce code quality checks before code is committed in a Node.js project? Node.js › Git & Project ManagementNode.jsGit & Project ManagementAdvanced
16How would you use Git bisect to find the specific commit that introduced a regression in a Node.js application's behavior? Node.js › Git & Project ManagementNode.jsGit & Project ManagementAdvanced