From e44f959d5fb6f5c157f84b7dbc56db4943f7e67e Mon Sep 17 00:00:00 2001 From: David Joy Date: Tue, 23 May 2023 15:54:18 -0400 Subject: [PATCH] test: we actually need the env.config.js file for the example app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previous commit removed this file, forgetting that it’s also necessary for the example app. Reinstated it here with a value specific to the example app so we can still prove the test suite works. --- env.config.js | 8 ++++++++ src/initialize.const.config.test.js | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 env.config.js diff --git a/env.config.js b/env.config.js new file mode 100644 index 000000000..f4585f66d --- /dev/null +++ b/env.config.js @@ -0,0 +1,8 @@ +// NOTE: This file is used by the example app. frontend-build expects the file +// to be in the root of the repository. This is not used by the actual frontend-platform library. +// Also note that in an actual application this file would be added to .gitignore. +const config = { + JS_FILE_VAR: 'JS_FILE_VAR_VALUE_FOR_EXAMPLE_APP', +}; + +export default config; diff --git a/src/initialize.const.config.test.js b/src/initialize.const.config.test.js index 3c9117260..12091328f 100644 --- a/src/initialize.const.config.test.js +++ b/src/initialize.const.config.test.js @@ -39,5 +39,4 @@ describe('initialize with constant js file config', () => { expect(config.JS_FILE_VAR).toEqual('JS_FILE_VAR_VALUE_CONSTANT'); }); - });