Skip to content

Commit

Permalink
test: we actually need the env.config.js file for the example app
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
davidjoy committed May 23, 2023
1 parent 7cc7155 commit e44f959
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions env.config.js
Original file line number Diff line number Diff line change
@@ -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;
1 change: 0 additions & 1 deletion src/initialize.const.config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ describe('initialize with constant js file config', () => {

expect(config.JS_FILE_VAR).toEqual('JS_FILE_VAR_VALUE_CONSTANT');
});

});

0 comments on commit e44f959

Please sign in to comment.