build-raptor-jest-reporter 0.32.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/main.js +117 -0
- package/package.json +21 -0
package/main.js
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
3
|
+
* This devtool is neither made for production nor for readable output files.
|
|
4
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
5
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
6
|
+
* or disable the default devtool with "devtool: false".
|
|
7
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
|
+
*/
|
|
9
|
+
/******/ (() => { // webpackBootstrap
|
|
10
|
+
/******/ "use strict";
|
|
11
|
+
/******/ var __webpack_modules__ = ({
|
|
12
|
+
|
|
13
|
+
/***/ "./dist/src/build-raptor-jest-reporter.js":
|
|
14
|
+
/*!************************************************!*\
|
|
15
|
+
!*** ./dist/src/build-raptor-jest-reporter.js ***!
|
|
16
|
+
\************************************************/
|
|
17
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
18
|
+
|
|
19
|
+
eval("\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.BuildRaptorJestReporter = void 0;\nconst fs = __importStar(__webpack_require__(/*! fs */ \"fs\"));\nconst path_1 = __importDefault(__webpack_require__(/*! path */ \"path\"));\nconst reporter_output_1 = __webpack_require__(/*! reporter-output */ \"../reporter-output/dist/src/index.js\");\nclass BuildRaptorJestReporter {\n constructor(config) {\n this.cases = [];\n if (!config.outputFile) {\n throw new Error(`outputFile is missing (must be specified in the config)`);\n }\n this.file = path_1.default.isAbsolute(config.outputFile) ? config.outputFile : path_1.default.join(config.rootDir, config.outputFile);\n }\n getLastError() { }\n onRunStart() { }\n onTestCaseResult(test, testCaseResult) {\n this.cases.push({ testFile: test.path, testCaseResult });\n }\n onRunComplete() {\n const cases = this.cases.map(at => ({\n testCaseFullName: at.testCaseResult.fullName,\n fileName: at.testFile,\n ancestorTitles: at.testCaseResult.ancestorTitles,\n title: at.testCaseResult.title,\n status: at.testCaseResult.status,\n duration: at.testCaseResult.duration ?? undefined,\n }));\n const output = { cases };\n fs.writeFileSync(this.file, JSON.stringify(reporter_output_1.ReporterOutput.parse(output)));\n }\n}\nexports.BuildRaptorJestReporter = BuildRaptorJestReporter;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQtcmFwdG9yLWplc3QtcmVwb3J0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYnVpbGQtcmFwdG9yLWplc3QtcmVwb3J0ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUdBLHVDQUF3QjtBQUN4QixnREFBdUI7QUFDdkIscURBQWdEO0FBRWhELE1BQWEsdUJBQ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aEMsUUFBUSxFQUFFLEVBQUUsQ0FBQyxjQUFjLENBQUMsUUFBUSxJQUFJLFNBQVM7U0FDbEQsQ0FBQyxDQUFDLENBQUE7UUFDSCxNQUFNLE1BQU0sR0FBbUIsRUFBRSxLQUFLLEVBQUUsQ0FBQTtRQUN4QyxFQUFFLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDLFNBQVMsQ0FBQyxnQ0FBYyxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUE7SUFDM0UsQ0FBQztDQUNGO0FBN0JELDBEQTZCQyJ9\n\n//# sourceURL=webpack://build-raptor-jest-reporter/./dist/src/build-raptor-jest-reporter.js?");
|
|
20
|
+
|
|
21
|
+
/***/ }),
|
|
22
|
+
|
|
23
|
+
/***/ "./dist/src/index.js":
|
|
24
|
+
/*!***************************!*\
|
|
25
|
+
!*** ./dist/src/index.js ***!
|
|
26
|
+
\***************************/
|
|
27
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
28
|
+
|
|
29
|
+
eval("\nconst build_raptor_jest_reporter_1 = __webpack_require__(/*! ./build-raptor-jest-reporter */ \"./dist/src/build-raptor-jest-reporter.js\");\nmodule.exports = build_raptor_jest_reporter_1.BuildRaptorJestReporter;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDZFQUFvRTtBQUNwRSxpQkFBUyxvREFBdUIsQ0FBQSJ9\n\n//# sourceURL=webpack://build-raptor-jest-reporter/./dist/src/index.js?");
|
|
30
|
+
|
|
31
|
+
/***/ }),
|
|
32
|
+
|
|
33
|
+
/***/ "../reporter-output/dist/src/index.js":
|
|
34
|
+
/*!********************************************!*\
|
|
35
|
+
!*** ../reporter-output/dist/src/index.js ***!
|
|
36
|
+
\********************************************/
|
|
37
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
38
|
+
|
|
39
|
+
eval("\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./reporter-output */ \"../reporter-output/dist/src/reporter-output.js\"), exports);\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsb0RBQWlDIn0=\n\n//# sourceURL=webpack://build-raptor-jest-reporter/../reporter-output/dist/src/index.js?");
|
|
40
|
+
|
|
41
|
+
/***/ }),
|
|
42
|
+
|
|
43
|
+
/***/ "../reporter-output/dist/src/reporter-output.js":
|
|
44
|
+
/*!******************************************************!*\
|
|
45
|
+
!*** ../reporter-output/dist/src/reporter-output.js ***!
|
|
46
|
+
\******************************************************/
|
|
47
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
48
|
+
|
|
49
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.ReporterOutput = void 0;\nconst zod_1 = __webpack_require__(/*! zod */ \"zod\");\nexports.ReporterOutput = zod_1.z.object({\n cases: zod_1.z\n .object({\n fileName: zod_1.z.string(),\n testCaseFullName: zod_1.z.string(),\n ancestorTitles: zod_1.z.string().array(),\n title: zod_1.z.string(),\n status: zod_1.z.union([\n zod_1.z.literal('passed'),\n zod_1.z.literal('failed'),\n zod_1.z.literal('skipped'),\n zod_1.z.literal('pending'),\n zod_1.z.literal('todo'),\n zod_1.z.literal('disabled'),\n ]),\n duration: zod_1.z.number().optional(),\n })\n .array(),\n});\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0ZXItb3V0cHV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JlcG9ydGVyLW91dHB1dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2QkFBdUI7QUFFVixRQUFBLGNBQWMsR0FBRyxPQUFDLENBQUMsTUFBTSxDQUFDO0lBQ3JDLEtBQUssRUFBRSxPQUFDO1NBQ0wsTUFBTSxDQUFDO1FBQ04sUUFBUSxFQUFFLE9BQUMsQ0FBQyxNQUFNLEVBQUU7UUFDcEIsZ0JBQWdCLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRTtRQUM1QixjQUFjLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLEtBQUssRUFBRTtRQUNsQyxLQUFLLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRTtRQUNqQixNQUFNLEVBQUUsT0FBQyxDQUFDLEtBQUssQ0FBQztZQUNkLE9BQUMsQ0FBQyxPQUFPLENBQUMsUUFBUSxDQUFDO1lBQ25CLE9BQUMsQ0FBQyxPQUFPLENBQUMsUUFBUSxDQUFDO1lBQ25CLE9BQUMsQ0FBQyxPQUFPLENBQUMsU0FBUyxDQUFDO1lBQ3BCLE9BQUMsQ0FBQyxPQUFPLENBQUMsU0FBUyxDQUFDO1lBQ3BCLE9BQUMsQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDO1lBQ2pCLE9BQUMsQ0FBQyxPQUFPLENBQUMsVUFBVSxDQUFDO1NBQ3RCLENBQUM7UUFDRixRQUFRLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLFFBQVEsRUFBRTtLQUNoQyxDQUFDO1NBQ0QsS0FBSyxFQUFFO0NBQ1gsQ0FBQyxDQUFBIn0=\n\n//# sourceURL=webpack://build-raptor-jest-reporter/../reporter-output/dist/src/reporter-output.js?");
|
|
50
|
+
|
|
51
|
+
/***/ }),
|
|
52
|
+
|
|
53
|
+
/***/ "fs":
|
|
54
|
+
/*!*********************!*\
|
|
55
|
+
!*** external "fs" ***!
|
|
56
|
+
\*********************/
|
|
57
|
+
/***/ ((module) => {
|
|
58
|
+
|
|
59
|
+
module.exports = require("fs");
|
|
60
|
+
|
|
61
|
+
/***/ }),
|
|
62
|
+
|
|
63
|
+
/***/ "path":
|
|
64
|
+
/*!***********************!*\
|
|
65
|
+
!*** external "path" ***!
|
|
66
|
+
\***********************/
|
|
67
|
+
/***/ ((module) => {
|
|
68
|
+
|
|
69
|
+
module.exports = require("path");
|
|
70
|
+
|
|
71
|
+
/***/ }),
|
|
72
|
+
|
|
73
|
+
/***/ "zod":
|
|
74
|
+
/*!**********************!*\
|
|
75
|
+
!*** external "zod" ***!
|
|
76
|
+
\**********************/
|
|
77
|
+
/***/ ((module) => {
|
|
78
|
+
|
|
79
|
+
module.exports = require("zod");
|
|
80
|
+
|
|
81
|
+
/***/ })
|
|
82
|
+
|
|
83
|
+
/******/ });
|
|
84
|
+
/************************************************************************/
|
|
85
|
+
/******/ // The module cache
|
|
86
|
+
/******/ var __webpack_module_cache__ = {};
|
|
87
|
+
/******/
|
|
88
|
+
/******/ // The require function
|
|
89
|
+
/******/ function __webpack_require__(moduleId) {
|
|
90
|
+
/******/ // Check if module is in cache
|
|
91
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
92
|
+
/******/ if (cachedModule !== undefined) {
|
|
93
|
+
/******/ return cachedModule.exports;
|
|
94
|
+
/******/ }
|
|
95
|
+
/******/ // Create a new module (and put it into the cache)
|
|
96
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
97
|
+
/******/ // no module.id needed
|
|
98
|
+
/******/ // no module.loaded needed
|
|
99
|
+
/******/ exports: {}
|
|
100
|
+
/******/ };
|
|
101
|
+
/******/
|
|
102
|
+
/******/ // Execute the module function
|
|
103
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
104
|
+
/******/
|
|
105
|
+
/******/ // Return the exports of the module
|
|
106
|
+
/******/ return module.exports;
|
|
107
|
+
/******/ }
|
|
108
|
+
/******/
|
|
109
|
+
/************************************************************************/
|
|
110
|
+
/******/
|
|
111
|
+
/******/ // startup
|
|
112
|
+
/******/ // Load entry module and return exports
|
|
113
|
+
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
114
|
+
/******/ var __webpack_exports__ = __webpack_require__("./dist/src/index.js");
|
|
115
|
+
/******/
|
|
116
|
+
/******/ })()
|
|
117
|
+
;
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "build-raptor-jest-reporter",
|
|
3
|
+
"version": "0.32.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"author": "",
|
|
7
|
+
"main": "main.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/src"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc -b",
|
|
13
|
+
"test": "jest"
|
|
14
|
+
},
|
|
15
|
+
"jest": {
|
|
16
|
+
"preset": "../../jest.preset.js"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"zod": "^3.11.6"
|
|
20
|
+
}
|
|
21
|
+
}
|