does it make sense to test mongoose models? does it make sense to test mongoose models? mongoose mongoose

does it make sense to test mongoose models?


I think it still makes sense to test basic model construction if only to reveal potential breaking changes should someone attempt to merge in work which messes with models. If your application assumes that certain models exist… it is good to find out right away if that changes, no? And if the change is deliberate, then it is the onus of the author to make sure all tests will pass post-merge.