Skip to content

Commit 23a447b

Browse files
authored
Add glossary terms for Vitest in Volto (#1937)
1 parent d7c6348 commit 23a447b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/glossary.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,4 +895,28 @@ Higher-Order Component
895895
https://legacy.reactjs.org/docs/higher-order-components.html
896896
```
897897
898+
Mocha
899+
[Mocha](https://mochajs.org/) is a feature-rich JavaScript test framework running on {term}`Node.js` and in the browser, making asynchronous testing simple and fun.
900+
901+
Chai
902+
[Chai](https://www.chaijs.com/) Chai is a {term}`BDD` and {term}`TDD` assertion library for {term}`Node.js` and the browser that can be delightfully paired with any JavaScript testing framework.
903+
904+
Behavior-Driven Development
905+
BDD
906+
Behavior-Driven Development (BDD) is a software development approach that originated from Test-Driven Development (TDD).
907+
It emphasizes collaboration among developers, testers, and non-technical stakeholders to ensure the developed software meets the desired behavior (or functionality).
908+
909+
In BDD, the focus is on defining the behavior of a system in a human-readable language, often using a domain-specific language.
910+
This language is typically structured in a way that allows it to serve as both documentation and executable tests.
911+
BDD scenarios are written in plain language that describe how the system should behave in different situations.
912+
913+
Test-Driven Development
914+
TDD
915+
Test-Driven Development (TDD) is a technique for building software that guides software development by writing tests.
916+
It follows three steps repeatedly:
917+
918+
- Write a test for the next bit of functionality you want to add.
919+
- Write the functional code until the test passes.
920+
- Refactor both new and old code to make it well structured.
921+
898922
```

0 commit comments

Comments
 (0)