0.9.3-alpha.0 • Published 5 months ago
@procore/hammer-test-jest v0.9.3-alpha.0
@procore/hammer-test-jest
The jest implementation of the test commands.
Quick Start
Run test commands from the hammer command. If this package is not already installed, or is out-of-date, you will be prompted to install/upgrade.
Alternatively, you can install it directly:
yarn add -D @procore/hammer-test-jestConfiguration
Custom configuration is done using the hammer configuration file. The customization key is jestOverride, and the configuration that should be returned should be compatible with the jest format.
export default {
testJest(originalConfig) {
const customizedConfig =
// ... mutations, transformations, etc.
return customizedConfig;
}
}NOTE: The default configuration should handle nearly all packages. If you find that you are doing a lot of customization, or the same change in multiple projects, consider reviewing your configuration with the UI Foundations team.
Development
This project uses yarn, and supports the following commands:
build: builds and bundles the project.clean: deletes the output directory and any built files.format: runsprettieron the project.format:check: usesprettierto validate code format.lint:code: useseslintto lint code.lint:types: usesTypeScriptto validate types.test: runs the unit test suite.test:ci: run the unit test suite, reporting coverage.