@everyonesoftware/common 8.0.0 → 9.0.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/outputs/tests.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  TestAction,
7
7
  TreeConsoleTestRunnerUI,
8
8
  assertTestTests_exports
9
- } from "./chunk-FEQPKLDH.js";
9
+ } from "./chunk-HMQKVFIP.js";
10
10
  import {
11
11
  ByteListStream,
12
12
  Bytes,
@@ -9650,6 +9650,34 @@ function test54(runner) {
9650
9650
  const result = BasicTestError.removeNonProjectPaths(errorStringLines.join("\n"), currentFolderPath);
9651
9651
  test55.assertEqual(expectedLines, result.split("\n"));
9652
9652
  });
9653
+ runner.test("with Windows file paths and 'node_modules' references in stack trace", (test55) => {
9654
+ const errorStringLines = [
9655
+ "AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:",
9656
+ "",
9657
+ " 1 !== 2",
9658
+ "",
9659
+ " at _AssertTest.assertEqual (C:\\my\\code\\cli-typescript\\node_modules\\@everyonesoftware\\common\\tests\\assertTest.ts:76:16)",
9660
+ " at C:\\my\\code\\cli-typescript\\tests\\mainTests.ts:9:18",
9661
+ " at C:\\my\\code\\cli-typescript\\node_modules\\@everyonesoftware\\common\\tests\\consoleTestRunner.ts:498:31",
9662
+ " at processTicksAndRejections (node:internal/process/task_queues:104:5)",
9663
+ " at _TestAction.action (C:\\my\\code\\cli-typescript\\node_modules\\@everyonesoftware\\common\\tests\\consoleTestRunner.ts:178:17)",
9664
+ " at _ConsoleTestRunner.runAsync (C:\\my\\code\\cli-typescript\\node_modules\\@everyonesoftware\\common\\tests\\consoleTestRunner.ts:531:17)",
9665
+ " at C:\\my\\code\\cli-typescript\\node_modules\\@everyonesoftware\\common\\tests\\consoleTestRunner.ts:112:13",
9666
+ " at _CurrentProcess.run (C:\\my\\code\\cli-typescript\\node_modules\\@everyonesoftware\\common\\sources\\currentProcess.ts:39:43)",
9667
+ " at test2 (C:\\my\\code\\cli-typescript\\tests\\tests.ts:6:5)"
9668
+ ];
9669
+ const currentFolderPath = "C:/my/code/cli-typescript/";
9670
+ const expectedLines = [
9671
+ "AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:",
9672
+ "",
9673
+ " 1 !== 2",
9674
+ "",
9675
+ " at C:\\my\\code\\cli-typescript\\tests\\mainTests.ts:9:18",
9676
+ " at test2 (C:\\my\\code\\cli-typescript\\tests\\tests.ts:6:5)"
9677
+ ];
9678
+ const result = BasicTestError.removeNonProjectPaths(errorStringLines.join("\n"), currentFolderPath);
9679
+ test55.assertEqual(expectedLines, result.split("\n"));
9680
+ });
9653
9681
  });
9654
9682
  runner.testFunction("makeFilePathsRelative()", () => {
9655
9683
  runner.test("with 'file:///' URLs and a 'node:internal' path", (test55) => {