@lumjs/tests 2.1.1 → 2.2.0

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/CHANGELOG.md CHANGED
@@ -11,6 +11,11 @@ and a reference to a property of a module will be in `@tests.propName` format.
11
11
 
12
12
  ## [Unreleased]
13
13
 
14
+ ## [2.2.0] - 2026-01-30
15
+ ### Changed
16
+ - Updated to reflect several changes in `@lumjs/core` in regards to deprecated
17
+ functions, etc. There's more to do yet, but it's a start!
18
+
14
19
  ## [2.1.1] - 2025-11-26
15
20
  ### Fixed / Changed
16
21
  - The Harness (and `lumtest.js` script) can now handle ES Module test files.
package/TODO.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # TODO
2
2
 
3
+ - Update the `peggy` package to the v5.x releases.
4
+
3
5
  - Write tests for:
4
6
  - `call()`
5
7
  - `diesWith()`
@@ -8,7 +8,7 @@ const fs = require('node:fs');
8
8
  const path = require('node:path');
9
9
  const RE = /[\/\(\[]+/;
10
10
  const WS = /\s+/g;
11
- const MJS_EXPS = ['default','test'];
11
+ const MJS_EXPS = ['default','test','t'];
12
12
 
13
13
  /**
14
14
  * Node.js Harness plugin
package/lib/index.js CHANGED
@@ -2,9 +2,8 @@
2
2
  * Several test related classes.
3
3
  * @module @lumjs/tests
4
4
  */
5
- const {def,lazy} = require('@lumjs/core/types');
6
-
7
- const E = def.e;
5
+ const {df,lazy} = require('@lumjs/core');
6
+ const E = {enumerable: true};
8
7
 
9
8
  /**
10
9
  * The main Test class
@@ -13,7 +12,7 @@ const E = def.e;
13
12
  * @class
14
13
  * @see module:@lumjs/tests/test
15
14
  */
16
- def(exports, 'Test', require('./test'), E);
15
+ df(exports, 'Test', require('./test'), E);
17
16
 
18
17
  /**
19
18
  * Test Harness class (lazy loaded)
package/lib/test/stats.js CHANGED
@@ -1,5 +1,6 @@
1
1
  const core = require('@lumjs/core');
2
2
  const mods = require('@lumjs/core/modules');
3
+ const describe = require('@lumjs/describe');
3
4
  const {types} = core;
4
5
  const {S,N,F,isObj,def} = types;
5
6
  const Log = require('./log');
@@ -144,7 +145,7 @@ class LumTestStats
144
145
 
145
146
  stringify(what)
146
147
  {
147
- return types.stringify(what, this.stringifyOpts);
148
+ return describe(what, this.stringifyOpts);
148
149
  }
149
150
 
150
151
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumjs/tests",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "main": "lib/index.js",
5
5
  "bin":
6
6
  {
@@ -27,7 +27,8 @@
27
27
  },
28
28
  "dependencies":
29
29
  {
30
- "@lumjs/core": "^1.38.4"
30
+ "@lumjs/core": "^1.38.6",
31
+ "@lumjs/describe": "^1.0.0"
31
32
  },
32
33
  "scripts": {
33
34
  "test": "./bin/lumtest.js -e '\\.[mc]?js$'",