This is a small TDD Project NOT ready for production.
The purpose of the project is to implement small functions with TDD, Typescript and Node.
Write a generic routine that accepts as input:
original document
a mutation
that describes only what needs updating in the original document
and outputs
an update statement
.
This project uses node and yarn. Go check them out if you don't have them locally installed.
yarn install
To simple check functions output, you can:
yarn execute
To run the tests, you can:
yarn test
You can also run in the watch mode:
yarn test --watch
- Implement tests for each function.
- Integration tests with Mongo.
- Check by unexistent attributes.
- Refactor to reduce the code and improve quality.