13 lines
523 B
TypeScript
13 lines
523 B
TypeScript
|
|
import { describe, expect, it } from 'vitest'
|
||
|
|
import { Context } from 'cordis'
|
||
|
|
import * as TestRuntimeInvariant from '@deepseek-ai/dsh-client-test-runtime/invariant'
|
||
|
|
import InvariantService from '@deepseek-ai/dsh-invariants'
|
||
|
|
|
||
|
|
describe('invariant companion', () => {
|
||
|
|
it('registers under the package name with an empty installer', async () => {
|
||
|
|
const ctx = new Context()
|
||
|
|
await ctx.plugin(InvariantService, { enabled: true })
|
||
|
|
await expect(ctx.plugin(TestRuntimeInvariant).await()).resolves.toBeDefined()
|
||
|
|
})
|
||
|
|
})
|