@peerigon/configs 14.8.0 → 14.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/ai/coding-styleguide-testing.mdc +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# [14.9.0](https://github.com/peerigon/configs/compare/v14.8.0...v14.9.0) (2026-03-18)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **ai:** Improve testing styleguide ([cc07dfd](https://github.com/peerigon/configs/commit/cc07dfd46e24f747ad06b3fc2f79e923872f6c94))
|
|
6
|
+
|
|
1
7
|
# [14.8.0](https://github.com/peerigon/configs/compare/v14.7.0...v14.8.0) (2026-03-16)
|
|
2
8
|
|
|
3
9
|
### Features
|
|
@@ -11,6 +11,8 @@ globs: **/*.test.js, **/*.test.ts, **/*.test.tsx
|
|
|
11
11
|
|
|
12
12
|
## Structure & Organization
|
|
13
13
|
|
|
14
|
+
- Order of tests: Match the order of tests to the order of symbols in the source file
|
|
15
|
+
- One describe per export: Provide a describe block for each exported symbol (function, class, constant)
|
|
14
16
|
- Hierarchical grouping: Use nested describe() blocks - outer for function/class, inner for scenarios
|
|
15
17
|
- Logical categorization: Group by behavior, input type, or state (e.g., "with valid input", "error handling")
|
|
16
18
|
- Each it() should test a single behavior
|
|
@@ -27,6 +29,7 @@ globs: **/*.test.js, **/*.test.ts, **/*.test.tsx
|
|
|
27
29
|
|
|
28
30
|
- Type annotations: Include explicit types in test variables to verify inference
|
|
29
31
|
- Compile-time checks: Some tests exist just to verify type compatibility
|
|
32
|
+
- Type tests for generics: Add type tests for generic functions, classes, etc. Use the test runner's type testing tool when available (e.g. with Vitest: `expectTypeOf`)
|
|
30
33
|
|
|
31
34
|
## Best Practices
|
|
32
35
|
|