diff --git a/examples/HelloWorld/apps/Hello/bos.config.json b/examples/HelloWorld/apps/Hello/bos.config.json index 1a32ac8..c263e2b 100644 --- a/examples/HelloWorld/apps/Hello/bos.config.json +++ b/examples/HelloWorld/apps/Hello/bos.config.json @@ -1,5 +1,10 @@ { "appAccount": "dummy.near", + "overrides": { + "testnet": { + "appAccount": "testing.testnet" + } + }, "aliases": { "hello": "

Hello, world! Have a nice day!

" } diff --git a/examples/Typescript/apps/Metadata/bos.config.json b/examples/Typescript/apps/Metadata/bos.config.json index 159b22e..365d06c 100644 --- a/examples/Typescript/apps/Metadata/bos.config.json +++ b/examples/Typescript/apps/Metadata/bos.config.json @@ -1,3 +1,8 @@ { - "appAccount": "dummy.near" + "appAccount": "dummy.near", + "overrides": { + "testnet": { + "appAccount": "testing.testnet" + } + } } diff --git a/tests/config.unit.test.js b/tests/config.unit.test.js index a1beeb8..db30a79 100644 --- a/tests/config.unit.test.js +++ b/tests/config.unit.test.js @@ -12,6 +12,11 @@ test("reads the bos.config.json file correctly", () => { const config = read_bos_config("testAppFolder"); expect(config).toEqual({ appAccount: "test", + overrides: { + testnet: { + appAccount: "testing.testnet" + } + }, aliases: { test: "testAlias", nui: "nui.near" }, }); }); diff --git a/tests/helpers.js b/tests/helpers.js index 0aba328..27ce784 100644 --- a/tests/helpers.js +++ b/tests/helpers.js @@ -6,6 +6,11 @@ const folders = { "./apps/testAppFolder": { "bos.config.json": JSON.stringify({ appAccount: "test", + overrides: { + testnet: { + appAccount: "testing.testnet" + } + }, aliases: { test: "testAlias", nui: "nui.near",