@virmator/plugin-testing 13.3.9 → 13.3.11

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.
@@ -5,7 +5,7 @@ import { join } from 'node:path';
5
5
  import { isRunTimeType } from 'run-time-assertions';
6
6
  /** Read all contents within a directory and store them in an object. Optionally recursive. */
7
7
  export async function readAllDirContents(dir, { recursive = false, excludeList, }) {
8
- const fileNames = await readdir(dir);
8
+ const fileNames = (await readdir(dir)).sort();
9
9
  const allFileContents = await Promise.all(fileNames.map(async (fileName) => {
10
10
  const filePath = join(dir, fileName);
11
11
  if (excludeList?.some((excludeItem) => {
@@ -76,7 +76,7 @@ export async function testPlugin(shouldPass, context, plugin, cliCommand, cwd, {
76
76
  const contentsDiff = diffObjects(contentsBefore, contentsAfter)[1];
77
77
  const result = {
78
78
  logs: mapObjectValues(logs, (logType, logs) => {
79
- return toPosixPath(logTransform(logType, logs.join('\n')));
79
+ return toPosixPath(logTransform(logType, logs.join('\n'))).replaceAll('\r', '');
80
80
  }),
81
81
  cwd: toPosixPath(relative(monoRepoDir, cwd)),
82
82
  contentsDiff,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/plugin-testing",
3
- "version": "13.3.9",
3
+ "version": "13.3.11",
4
4
  "description": "Testing for virmator plugins.",
5
5
  "keywords": [
6
6
  "virmator",
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@augment-vir/common": "^29.3.0",
34
34
  "@augment-vir/node-js": "^29.3.0",
35
- "@virmator/core": "^13.3.9",
35
+ "@virmator/core": "^13.3.11",
36
36
  "cli-args-vir": "^0.0.3",
37
37
  "run-time-assertions": "^1.5.2",
38
38
  "type-fest": "^4.26.1"