feat: Making the auto config

This commit is contained in:
BluJ
2023-05-10 16:30:42 -06:00
parent 33da2322b0
commit cdf42ca3b6
7 changed files with 126 additions and 69 deletions

View File

@@ -0,0 +1,27 @@
import { sdk } from "./output.sdk"
describe("setupAutoConfig", () => {
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.AutoConfig.of({
localConfig: testConfig,
remoteConfig: testConfig2,
autoconfig: async ({}) => {},
})
sdk.setupAutoConfig(testConfig, {
remoteTest,
})
})
})