@jsenv/test 3.2.0 → 3.3.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/js/exception.js +2 -4
- package/dist/jsenv_test.js +476 -162
- package/package.json +7 -7
- package/src/execution/exception.js +2 -4
- package/src/execution/execute_test_plan.js +156 -64
- package/src/execution/format_error_for_terminal.js +2 -51
- package/src/execution/github_annotation_from_error.js +1 -1
- package/src/execution/is_inside_fragment.js +32 -0
- package/src/execution/junit_xml_file/report_as_junit_xml.js +10 -6
- package/src/execution/replace_urls.js +50 -0
- package/src/execution/report_as_json.js +121 -0
- package/src/execution/reporters/reporter_list.js +91 -24
- package/src/main.js +1 -0
- package/src/runtime_browsers/firefox.js +2 -1
- package/src/runtime_node/node_child_process.js +3 -7
- package/src/runtime_node/node_worker_thread.js +3 -6
package/dist/js/exception.js
CHANGED
|
@@ -910,9 +910,7 @@ const getErrorName = (value) => {
|
|
|
910
910
|
|
|
911
911
|
const getPropertiesFromEvalOrigin = (origin) => {
|
|
912
912
|
// Most eval() calls are in this format
|
|
913
|
-
const topLevelEvalMatch = /^eval at
|
|
914
|
-
origin,
|
|
915
|
-
);
|
|
913
|
+
const topLevelEvalMatch = /^eval at [^(]+ \(.+:\d+:\d+\)$/.exec(origin);
|
|
916
914
|
if (topLevelEvalMatch) {
|
|
917
915
|
const source = topLevelEvalMatch[2];
|
|
918
916
|
const line = Number(topLevelEvalMatch[3]);
|
|
@@ -924,7 +922,7 @@ const getPropertiesFromEvalOrigin = (origin) => {
|
|
|
924
922
|
};
|
|
925
923
|
}
|
|
926
924
|
// Parse nested eval() calls using recursion
|
|
927
|
-
const nestedEvalMatch = /^eval at
|
|
925
|
+
const nestedEvalMatch = /^eval at [^(]+ \(.+\)$/.exec(origin);
|
|
928
926
|
if (nestedEvalMatch) {
|
|
929
927
|
return getPropertiesFromEvalOrigin(nestedEvalMatch[2]);
|
|
930
928
|
}
|