File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88## Code conventions
99
10- - Always run ` npx prettier ` before committing
10+ - Always run ` npm run format-fix ` after making changes to the code
1111
1212## Testing
1313
1414- Unit tests use Mocha/Chai framework with ` .unit.test.ts ` extension
1515- Test files should be placed alongside the source files they test
16+ - Tests run against compiled JavaScript files in ` out/ ` directory — build first with ` npm run compile-tsc `
1617- Run all tests: ` npm test ` or ` npm run test:unittests `
18+ - Run tests matching a pattern: ` npm run test:unittests -- --grep "SuiteName" ` (forwards ` --grep ` to mocha, matches suite and test names)
1719- Run single test file: ` npx mocha --config ./build/.mocha.unittests.js.json ./out/path/to/file.unit.test.js `
18- - Tests run against compiled JavaScript files in ` out/ ` directory
1920- Use ` assert.deepStrictEqual() ` for object comparisons instead of checking individual properties
2021
2122## Project Structure
You can’t perform that action at this time.
0 commit comments