Skip to content

feat(vitest): add layer lifecycle hooks - #1944

Closed
IMax153 wants to merge 3 commits into
mainfrom
feat/vitest-layer-hooks
Closed

feat(vitest): add layer lifecycle hooks#1944
IMax153 wants to merge 3 commits into
mainfrom
feat/vitest-layer-hooks

Conversation

@IMax153

@IMax153 IMax153 commented Mar 31, 2026

Copy link
Copy Markdown
Member

Summary

  • add effectful beforeEach, afterEach, beforeAll, and afterAll hooks to the it returned by layer(...) / it.layer(...)

@changeset-bot

changeset-bot Bot commented Mar 31, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 50e73c3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 26 packages
Name Type
@effect/vitest Patch
effect Patch
@effect/opentelemetry Patch
@effect/platform-browser Patch
@effect/platform-bun Patch
@effect/platform-node-shared Patch
@effect/platform-node Patch
@effect/ai-anthropic Patch
@effect/ai-openai-compat Patch
@effect/ai-openai Patch
@effect/ai-openrouter Patch
@effect/atom-react Patch
@effect/atom-solid Patch
@effect/atom-vue Patch
@effect/sql-clickhouse Patch
@effect/sql-d1 Patch
@effect/sql-libsql Patch
@effect/sql-mssql Patch
@effect/sql-mysql2 Patch
@effect/sql-pg Patch
@effect/sql-sqlite-bun Patch
@effect/sql-sqlite-do Patch
@effect/sql-sqlite-node Patch
@effect/sql-sqlite-react-native Patch
@effect/sql-sqlite-wasm Patch
@effect/openapi-generator Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@IMax153
IMax153 requested a review from tim-smart March 31, 2026 18:58
@github-actions

Copy link
Copy Markdown
Contributor

📊 JSDoc Documentation Analysis

📈 Current Analysis Results
Analyzing 135 TypeScript files in packages/effect/src/ (including schema and config subdirectories)...

============================================================
         EFFECT JSDOC ANALYSIS REPORT
============================================================

📊 SUMMARY STATISTICS
------------------------------
Total files analyzed: 135
Total exported members: 4286
Missing @example: 2150 (50.2%)
Missing @category: 406 (9.5%)

🎯 TOP FILES NEEDING ATTENTION
----------------------------------------
1. Schema.ts
   📝 501 missing examples, 🏷️  216 missing categories
   📦 501 total exports
2. Array.ts
   📝 135 missing examples, 🏷️  2 missing categories
   📦 140 total exports
3. SchemaRepresentation.ts
   📝 96 missing examples, 🏷️  12 missing categories
   📦 96 total exports
4. SchemaAST.ts
   📝 77 missing examples, 🏷️  21 missing categories
   📦 77 total exports
5. Cause.ts
   📝 79 missing examples, 🏷️  2 missing categories
   📦 79 total exports
6. Channel.ts
   📝 81 missing examples, 🏷️  0 missing categories
   📦 152 total exports
7. Option.ts
   📝 66 missing examples, 🏷️  3 missing categories
   📦 66 total exports
8. Sink.ts
   📝 64 missing examples, 🏷️  2 missing categories
   📦 81 total exports
9. SchemaTransformation.ts
   📝 38 missing examples, 🏷️  26 missing categories
   📦 38 total exports
10. Predicate.ts
   📝 57 missing examples, 🏷️  0 missing categories
   📦 57 total exports
11. SchemaGetter.ts
   📝 49 missing examples, 🏷️  0 missing categories
   📦 49 total exports
12. Result.ts
   📝 46 missing examples, 🏷️  0 missing categories
   📦 46 total exports
13. Config.ts
   📝 35 missing examples, 🏷️  6 missing categories
   📦 35 total exports
14. Types.ts
   📝 38 missing examples, 🏷️  0 missing categories
   📦 38 total exports
15. Effect.ts
   📝 31 missing examples, 🏷️  2 missing categories
   📦 253 total exports

✅ PERFECTLY DOCUMENTED FILES
-----------------------------------
   Chunk.ts (86 exports)
   Clock.ts (5 exports)
   FiberHandle.ts (15 exports)
   FiberMap.ts (19 exports)
   FiberSet.ts (14 exports)
   HKT.ts (4 exports)
   HashMap.ts (44 exports)
   HashSet.ts (21 exports)
   Match.ts (57 exports)
   MutableRef.ts (17 exports)
   NonEmptyIterable.ts (3 exports)
   Random.ts (9 exports)
   Redacted.ts (9 exports)
   RegExp.ts (3 exports)
   Symbol.ts (1 exports)
   Trie.ts (29 exports)
   TxChunk.ts (22 exports)
   TxDeferred.ts (7 exports)
   TxHashMap.ts (41 exports)
   TxHashSet.ts (24 exports)
   TxPriorityQueue.ts (19 exports)
   TxReentrantLock.ts (17 exports)
   TxRef.ts (7 exports)
   TxSemaphore.ts (14 exports)
   TxSubscriptionRef.ts (12 exports)
   Unify.ts (8 exports)
   index.ts (0 exports)

🔍 SAMPLE MISSING ITEMS FROM Schema.ts
-----------------------------------
   Optionality (type, line 151): missing example, category
   Mutability (type, line 160): missing example, category
   ConstructorDefault (type, line 170): missing example, category
   MakeOptions (interface, line 184): missing example, category
   Bottom (interface, line 212): missing example, category
   declareConstructor (interface, line 271): missing example
   declareConstructor (function, line 335): missing example
   declare (interface, line 362): missing example
   declare (function, line 395): missing example
   revealBottom (function, line 435): missing example, category

📋 BREAKDOWN BY EXPORT TYPE
-----------------------------------
const: 1113 missing examples, 125 missing categories
interface: 335 missing examples, 90 missing categories
type: 250 missing examples, 79 missing categories
function: 346 missing examples, 92 missing categories
namespace: 48 missing examples, 20 missing categories
class: 58 missing examples, 0 missing categories

📈 DOCUMENTATION PROGRESS
------------------------------
Examples: 2136/4286 (49.8% complete)
Categories: 3880/4286 (90.5% complete)

============================================================
Analysis complete! 2556 items need attention.
============================================================

📄 Detailed results saved to: jsdoc-analysis-results.json

This comment is automatically updated on each push. View the analysis script for details.

@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Analysis

File Name Current Size Previous Size Difference
basic.ts 6.69 KB 6.69 KB 0.00 KB (0.00%)
batching.ts 8.86 KB 8.86 KB 0.00 KB (0.00%)
brand.ts 6.32 KB 6.32 KB 0.00 KB (0.00%)
cache.ts 9.94 KB 9.94 KB 0.00 KB (0.00%)
config.ts 17.07 KB 17.07 KB 0.00 KB (0.00%)
differ.ts 15.52 KB 15.52 KB 0.00 KB (0.00%)
http-client.ts 19.77 KB 19.77 KB 0.00 KB (0.00%)
logger.ts 9.15 KB 9.15 KB 0.00 KB (0.00%)
metric.ts 8.54 KB 8.54 KB 0.00 KB (0.00%)
optic.ts 7.57 KB 7.57 KB 0.00 KB (0.00%)
pubsub.ts 13.76 KB 13.76 KB 0.00 KB (0.00%)
queue.ts 11.03 KB 11.03 KB 0.00 KB (0.00%)
schedule.ts 10.22 KB 10.22 KB 0.00 KB (0.00%)
schema-representation-roundtrip.ts 24.88 KB 24.88 KB 0.00 KB (0.00%)
schema-string-transformation.ts 12.00 KB 12.00 KB 0.00 KB (0.00%)
schema-string.ts 10.31 KB 10.31 KB 0.00 KB (0.00%)
schema-template-literal.ts 12.92 KB 12.92 KB 0.00 KB (0.00%)
schema-toArbitraryLazy.ts 17.20 KB 17.20 KB 0.00 KB (0.00%)
schema-toCodeDocument.ts 19.89 KB 19.89 KB 0.00 KB (0.00%)
schema-toCodecJson.ts 16.38 KB 16.38 KB 0.00 KB (0.00%)
schema-toEquivalence.ts 16.37 KB 16.37 KB 0.00 KB (0.00%)
schema-toFormatter.ts 16.20 KB 16.20 KB 0.00 KB (0.00%)
schema-toJsonSchemaDocument.ts 18.73 KB 18.73 KB 0.00 KB (0.00%)
schema-toRepresentation.ts 16.77 KB 16.77 KB 0.00 KB (0.00%)
schema.ts 15.78 KB 15.78 KB 0.00 KB (0.00%)
stm.ts 11.89 KB 11.89 KB 0.00 KB (0.00%)
stream.ts 9.23 KB 9.23 KB 0.00 KB (0.00%)

@IMax153

IMax153 commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

Hi @IMax153,

The Effect V4 codebase has been merged back into Effect-TS/effect, where V4 development now continues on the main branch.

GitHub cannot transfer pull requests between repositories. If you would like to continue this contribution, please open a replacement pull request against Effect-TS/effect:main and include a link to this PR for its existing discussion and review history.

After opening the replacement, please reply here with its URL so maintainers can verify the migration and close this source PR.

@fubhy fubhy closed this Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants