refactor(core): simplify integration test fixtures (#33292)

This commit is contained in:
Dax 2026-06-22 00:15:34 -04:00 committed by GitHub
commit 2bb4311042
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
76 changed files with 2865 additions and 1600 deletions

View file

@ -24,11 +24,7 @@ const locationLayer = Layer.succeed(
)
const plugins = PluginV2.layer.pipe(Layer.provide(events))
const policy = Policy.layer.pipe(Layer.provide(locationLayer))
const connections = Credential.layer.pipe(
Layer.fresh,
Layer.provide(Database.layerFromPath(":memory:").pipe(Layer.fresh)),
Layer.provide(events),
)
const connections = Credential.defaultLayer.pipe(Layer.fresh)
const integrations = Integration.locationLayer.pipe(Layer.provide(events), Layer.provide(connections))
const catalog = Catalog.layer.pipe(
Layer.provide(Layer.mergeAll(events, locationLayer, plugins, policy, connections, integrations)),