The official Dojo unit test command. This package uses Intern to run unit tests against your Dojo project.
This project is a command for the Dojo CLI. Please visit the Dojo CLI project for information about the project and how to install.
The use @dojo/cli-test-unit
in a project, install the package:
npm install @dojo/cli-test-unit
dojo test unit
We appreciate your interest! Please see the Dojo Meta Repository for the Contributing Guidelines.
This repository uses prettier
for code styling rules and formatting. A pre-commit hook is installed automatically and configured to run prettier
against all staged files as per the configuration in the projects package.json
.
An additional npm script to run prettier
(with write set to true
) against all src
and test
project files is available by running:
npm run prettier
Test cases MUST be written using Intern using the "bdd" test interface and "assert" assertion interface.
90% branch coverage MUST be provided for all code submitted to this repository, as reported by Istanbul’s combined coverage results for all supported platforms.
To test locally in node run:
npm test
© 2018 JS Foundation & contributors. New BSD license.
Initial repo skeleton