kempo-testing-framework 1.2.1 → 1.2.2

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.
package/index.js CHANGED
@@ -23,7 +23,7 @@ const remainingArgs = [];
23
23
 
24
24
  // Define which flags take values vs booleans
25
25
  const valueFlags = new Set(['log-level', 'delay', 'port']);
26
- const booleanFlags = new Set(['browser', 'node', 'gui', 'show-browser', 'help']);
26
+ const booleanFlags = new Set(['browser', 'node', 'gui', 'show-browser', 'help', 'debug-flags']);
27
27
 
28
28
  for (let i = 0; i < args.length; i++) {
29
29
  const arg = args[i];
@@ -144,6 +144,13 @@ EXAMPLES:
144
144
  process.exit(0);
145
145
  }
146
146
 
147
+ /*
148
+ * Debug Flags (for testing only)
149
+ */
150
+ if (flags['debug-flags']) {
151
+ console.log('kempo-test flags:', flags);
152
+ }
153
+
147
154
  /*
148
155
  * Mode Selection and Execution
149
156
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kempo-testing-framework",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "The Kempo Testing Framework is a simple testing framework built on the principle that code intended to be ran in the browser should be tested in the browser, code intended to be ran in Node should be tested in Node, and code intended to be ran in both should be tested in both. No mocking, no complexity—just testing.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  import { spawn } from 'child_process';
2
2
 
3
3
  const runWithArgs = (args, timeoutMs = 3000) => new Promise((resolve) => {
4
- const child = spawn(process.execPath, ['index.js', ...args], {
4
+ const child = spawn(process.execPath, ['index.js', ...args, '--debug-flags'], {
5
5
  cwd: process.cwd(),
6
6
  stdio: ['ignore', 'pipe', 'pipe']
7
7
  });