Jest Unit Test
Pre environment
Need to install jest
first
Install
- Create a folder name
.arc-extensions
under the root directory of project - Put
arc-jest
into.arc-extensions
arcconfig example
{
"load": [
".arc-extensions/arc-jest"
],
"unit.engine": "JestUnitTestEngine",
"unit.engine.jest.command": "NODE_ENV=test node scripts/test.js --env=jsdom --config jest.config.json"
}
Usage
arc unit
Source
Forked from jest-phabricator and customized by Cagen