mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
chore: Update to the new dependencyConfig
This commit is contained in:
27
lib/test/setupDependencyConfig.test.ts
Normal file
27
lib/test/setupDependencyConfig.test.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { sdk } from "./output.sdk"
|
||||
|
||||
describe("setupDependencyConfig", () => {
|
||||
test("test", () => {
|
||||
const testConfig = sdk.Config.of({
|
||||
test: sdk.Value.text({
|
||||
name: "testValue",
|
||||
required: false,
|
||||
}),
|
||||
})
|
||||
|
||||
const testConfig2 = sdk.Config.of({
|
||||
test2: sdk.Value.text({
|
||||
name: "testValue2",
|
||||
required: false,
|
||||
}),
|
||||
})
|
||||
const remoteTest = sdk.DependencyConfig.of({
|
||||
localConfig: testConfig,
|
||||
remoteConfig: testConfig2,
|
||||
dependencyConfig: async ({}) => {},
|
||||
})
|
||||
sdk.setupDependencyConfig(testConfig, {
|
||||
remoteTest,
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user