From 52084d52e92c8a0d27580ecbd0a40cff4f128c77 Mon Sep 17 00:00:00 2001
From: Elliot Braem <16282460+elliotBraem@users.noreply.github.com>
Date: Mon, 12 Feb 2024 19:34:13 -0800
Subject: [PATCH] wip
---
examples/HelloWorld/apps/Hello/bos.config.json | 5 +++++
examples/Typescript/apps/Metadata/bos.config.json | 7 ++++++-
tests/config.unit.test.js | 5 +++++
tests/helpers.js | 5 +++++
4 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/examples/HelloWorld/apps/Hello/bos.config.json b/examples/HelloWorld/apps/Hello/bos.config.json
index 1a32ac86..c263e2b5 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 159b22e1..365d06c3 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 a1beeb8b..db30a79e 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 0aba328f..27ce7842 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",