@suffolklitlab/alkiln 5.15.0-feat-random-7 → 5.15.0-feat-random-8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -272,6 +272,13 @@ function break_the_news({
272
272
  },
273
273
  ];
274
274
 
275
+ // Front page
276
+ let banner_text = `<div class="banner"><span class="smaller_right">BREA</span><span>K</span><span class='bigger_left bigger_right'>I</span><span class="bigger_left">N</span><span class="smaller_left">G</span> <span class="bigger_right">N</span>E<span>W</span><span class="smallest_left">S!!!</span></div>`;
277
+ if ( alkiln_desired_version ) {
278
+ // Insert (is that the name of a last-minute page?)
279
+ banner_text = `<div class="banner">Extra! Extra!</div>`;
280
+ }
281
+
275
282
  let {
276
283
  articles_section,
277
284
  publication_volume,
@@ -287,7 +294,7 @@ function break_the_news({
287
294
  `<h2 class="flag nameplate">The Furnace</h2>`,
288
295
  ...get_flag_masthead_parts({ publication_volume, version, date }),
289
296
  // BREAKING NEWS!!! with kerning adjustments
290
- `<div class="banner"><span class="smaller_right">BREA</span><span>K</span><span class='bigger_left bigger_right'>I</span><span class="bigger_left">N</span><span class="smaller_left">G</span> <span class="bigger_right">N</span>E<span>W</span><span class="smallest_left">S!!!</span></div>`,
297
+ banner_text,
291
298
  ...articles_section,
292
299
  `<footer class="footer">~ Every person, a universe ~</footer>`,
293
300
  ], `</div>`,
@@ -111,8 +111,8 @@ async function main() {
111
111
  */
112
112
 
113
113
  if ( success ) {
114
- log.success({ code: `ALK0054`, context: `post_run`, },
115
- `Tests succeeded!`
114
+ log.info({ code: `ALK0054`, context: `post_run`, },
115
+ `Test process exited without error.`
116
116
  );
117
117
  } else {
118
118
  // Don't want to throw error here, so don't pass error object
@@ -103,13 +103,13 @@ module.exports = class TestGenerator {
103
103
  }
104
104
  }
105
105
 
106
- log.debug({ code: `ALK0267`, context: `generating files`, }, `Constrained random answers tests:`, new_files_strings );
106
+ log.debug({ code: `ALK0267`, context: `generating files`, }, `Constrained random answers tests:\n`, new_files_strings );
107
107
 
108
108
  let tests_path = `${ sources_path }/${ FOLDER_NAME }`;
109
109
  let artifacts_path = `${ session_vars.get_artifacts_path_name() }/${ FOLDER_NAME }`;
110
110
  save_files({ tests_path, artifacts_path, file_strings: new_files_strings });
111
111
 
112
- log.info({ code: `ALK0271`, context: `generating files`, }, `Tried to save generated files to ${ artifacts_path }` );
112
+ log.debug({ code: `ALK0271`, context: `generating files`, }, `Tried to save generated files to ${ artifacts_path }` );
113
113
 
114
114
  return { new_strings: new_files_strings, errors: all_errors };
115
115
  }
@@ -1517,7 +1517,7 @@ function save_files({ tests_path, artifacts_path, file_strings }) {
1517
1517
  fs.mkdirSync( artifacts_path, { recursive: true });
1518
1518
 
1519
1519
  log.debug({ code: `ALK0269`, context: `generating files`, },
1520
- `Saving ${ file_strings.length } newly generated files in "${ tests_path }"`
1520
+ `Saving ${ file_strings.length } newly generated files in "${ tests_path }" and "${ artifacts_path }"`
1521
1521
  );
1522
1522
 
1523
1523
  let count = 1;
@@ -1529,8 +1529,8 @@ function save_files({ tests_path, artifacts_path, file_strings }) {
1529
1529
  fs.appendFileSync( `${ artifacts_path }/${ filename }`, file_str );
1530
1530
  }
1531
1531
 
1532
- log.debug({ code: `ALK0270`, context: `generating files`, },
1533
- `Saved new generated files:`, fs.readdirSync( tests_path )
1532
+ log.info({ code: `ALK0270`, context: `generating files`, },
1533
+ `Saved new generated files in "${ artifacts_path }"`
1534
1534
  );
1535
1535
  }
1536
1536
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suffolklitlab/alkiln",
3
- "version": "5.15.0-feat-random-7",
3
+ "version": "5.15.0-feat-random-8",
4
4
  "description": "Integrated automated end-to-end testing with docassemble, puppeteer, and cucumber.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {