@virmator/plugin-testing 14.37.1 → 14.38.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/dist/test-plugin.js +12 -2
- package/package.json +7 -7
package/dist/test-plugin.js
CHANGED
|
@@ -5,8 +5,18 @@ import { executeVirmatorCommand, findClosestPackageDir, hideNoTraceTraces, Virma
|
|
|
5
5
|
import { relative, sep } from 'node:path';
|
|
6
6
|
import { monoRepoDir } from './file-paths.js';
|
|
7
7
|
function handleWrite(logs, logType, text) {
|
|
8
|
-
const fixed = removeColor(text)
|
|
9
|
-
|
|
8
|
+
const fixed = removeColor(text)
|
|
9
|
+
.split('\n')
|
|
10
|
+
/** Newer npm versions (installed on the Windows CI runner) log these to stderr. */
|
|
11
|
+
.filter((line) => !/^(\[[^\]]+\] *)?npm notice /.test(line))
|
|
12
|
+
.join('\n')
|
|
13
|
+
/**
|
|
14
|
+
* Windows paths show up with single, escaped (`D:\\\\a`), or forward slashes, so normalize
|
|
15
|
+
* them all before stripping the repo dir. `toPosixPath` does the same to the final logs.
|
|
16
|
+
*/
|
|
17
|
+
.replaceAll(/\\+/g, '/')
|
|
18
|
+
.replaceAll(addSuffix({
|
|
19
|
+
value: monoRepoDir.replaceAll(/\\+/g, '/'),
|
|
10
20
|
suffix: '/',
|
|
11
21
|
}), '');
|
|
12
22
|
if (fixed.length) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/plugin-testing",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.38.0",
|
|
4
4
|
"description": "Testing for virmator plugins.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"virmator",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"test:update": "npm test update"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@augment-vir/assert": "^32.
|
|
35
|
-
"@augment-vir/common": "^32.
|
|
36
|
-
"@augment-vir/node": "^32.
|
|
37
|
-
"@augment-vir/test": "^32.
|
|
38
|
-
"@virmator/core": "^14.
|
|
34
|
+
"@augment-vir/assert": "^32.5.0",
|
|
35
|
+
"@augment-vir/common": "^32.5.0",
|
|
36
|
+
"@augment-vir/node": "^32.5.0",
|
|
37
|
+
"@augment-vir/test": "^32.5.0",
|
|
38
|
+
"@virmator/core": "^14.38.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/node": "^26.6.
|
|
41
|
+
"@types/node": "^26.6.5",
|
|
42
42
|
"c8": "^12.0.0",
|
|
43
43
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
44
44
|
"tsx": "^4.23.15",
|