How Components and Behavior-Driven Tests Overlap
How Components and Behavior-Driven Tests Overlap They are contracts of what and some other system works out how . I write my tests to expect observable behavior instead of mocking internal parts out. They test the what not the how . A component takes a similar lens, describing the what only. The how is left up to the engine. Some examples of engines are React, LiveView, HTML/CSS renderer, Terraform, even your printer’s driver is an engine: it works how vector graphics are transformed into targeted deposits
评论
?
参与讨论