The typescript object model for CDM.
npm install cdm.objectmodelC:\Windows\System32\WindowsPowerShell\v1.0
json
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Jest Tests",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--inspect-brk",
"--trace-uncaught",
"${workspaceRoot}/node_modules/jest/bin/jest.js",
"--runInBand"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"port": 9229
}
]
}
`
You can optionally install Jest Test Explorer to run the tests using an extensible user interface - Test Explorer UI.
Build
1. To download packages and their dependencies type npm ci.
> __Note:__ Use npm ci instead of npm install. One of the biggest downside of the npm install command is its unexpected behavior that it may mutate the package-lock.json, whereas npm ci only uses the version in the lockfile and produces an error if the package-lock.json and package.json are out of sync.
1. To build the project type npm run build
Unit tests
1. To run the unit tests type npm run test`