fix: make optional services non-blocking

This commit is contained in:
owo
2026-09-15 21:37:16 +08:00
parent f3f6a3ebaf
commit e748132541
6 changed files with 48 additions and 8 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import { apply } from '../src/index.ts'
import { apply, inject } from '../src/index.ts'
test('optional host services are not hard Cordis dependencies', () => {
assert.deepEqual(inject, ['agents'])
})
test('apply without token does not throw and does not start effect', () => {
const effects: string[] = []