monocart-reporter 2.0.2 → 2.0.3
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/lib/packages/monocart-reporter.js +1 -1
- package/lib/utils/util.js +6 -5
- package/package.json +11 -11
package/lib/utils/util.js
CHANGED
|
@@ -152,11 +152,6 @@ const Util = {
|
|
|
152
152
|
},
|
|
153
153
|
|
|
154
154
|
resolveNodeModule: (p) => {
|
|
155
|
-
// same level dep
|
|
156
|
-
const dep = path.resolve(__dirname, '../../../', p);
|
|
157
|
-
if (fs.existsSync(dep)) {
|
|
158
|
-
return dep;
|
|
159
|
-
}
|
|
160
155
|
|
|
161
156
|
// root
|
|
162
157
|
const cwd = path.resolve('node_modules', p);
|
|
@@ -170,6 +165,12 @@ const Util = {
|
|
|
170
165
|
return sub;
|
|
171
166
|
}
|
|
172
167
|
|
|
168
|
+
// same level dep
|
|
169
|
+
const dep = path.resolve(__dirname, '../../../', p);
|
|
170
|
+
if (fs.existsSync(dep)) {
|
|
171
|
+
return dep;
|
|
172
|
+
}
|
|
173
|
+
|
|
173
174
|
Util.logError(`Not found module: ${p}`);
|
|
174
175
|
|
|
175
176
|
return cwd;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monocart-reporter",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "A playwright test reporter. Shows suites/cases/steps with tree style, markdown annotations, custom columns/formatters/data collection visitors, console logs, style tags, send email.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"url": "git+https://github.com/cenfun/monocart-reporter.git"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"console-grid": "
|
|
46
|
-
"eight-colors": "
|
|
47
|
-
"istanbul-reports": "
|
|
48
|
-
"koa": "
|
|
49
|
-
"koa-static-resolver": "
|
|
50
|
-
"lz-utils": "
|
|
51
|
-
"monocart-coverage-reports": "
|
|
52
|
-
"nodemailer": "
|
|
53
|
-
"open": "
|
|
54
|
-
"turbogrid": "
|
|
45
|
+
"console-grid": "~2.0.1",
|
|
46
|
+
"eight-colors": "~1.0.3",
|
|
47
|
+
"istanbul-reports": "~3.1.6",
|
|
48
|
+
"koa": "~2.14.2",
|
|
49
|
+
"koa-static-resolver": "~1.0.4",
|
|
50
|
+
"lz-utils": "~2.0.1",
|
|
51
|
+
"monocart-coverage-reports": "~1.1.0",
|
|
52
|
+
"nodemailer": "~6.9.7",
|
|
53
|
+
"open": "~9.1.0",
|
|
54
|
+
"turbogrid": "~3.0.10"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@playwright/test": "^1.40.1",
|