Chapter 12
- Correct Answer: b
a. The attribute --save-dev is used to indicate to npm to install the package as a dev dependency.
b. This is correct as --save-exact means to save the exact version of the package getting installed. This ensures every machine the project is loaded on always has the same version of that package.
- Correct Answer: b
a. An attribute with this name does not exist.
b. Yes, this is correct. The attribute testMatch contains expression that helps Jest identify the location of test case files in the project.
- Correct Answer: a
a. Yes, this is correct. Whenever using React in the PCF project, install the eslint-plugin-react package and modify the ESLint configuration file to include settings for linting React code.
b. Such a package does not exist. We need to use eslint-plugin-react as the package when extending the lint for React files.