@appsurify-testmap/rrweb-cypress-plugin 2.1.2-alpha.5 → 2.1.3-alpha.1
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/reporter.js +1 -1
- package/dist/reporter.js.map +1 -1
- package/dist/reporter.mjs +1 -1
- package/dist/reporter.mjs.map +1 -1
- package/package.json +7 -8
package/dist/index.js
CHANGED
|
@@ -13031,7 +13031,7 @@ class VisibilityManager {
|
|
|
13031
13031
|
}
|
|
13032
13032
|
}
|
|
13033
13033
|
}
|
|
13034
|
-
const version$1 = "2.1.
|
|
13034
|
+
const version$1 = "2.1.3-alpha.1";
|
|
13035
13035
|
let wrappedEmit;
|
|
13036
13036
|
let takeFullSnapshot$1;
|
|
13037
13037
|
let canvasManager;
|
package/dist/index.mjs
CHANGED
|
@@ -13031,7 +13031,7 @@ class VisibilityManager {
|
|
|
13031
13031
|
}
|
|
13032
13032
|
}
|
|
13033
13033
|
}
|
|
13034
|
-
const version$1 = "2.1.
|
|
13034
|
+
const version$1 = "2.1.3-alpha.1";
|
|
13035
13035
|
let wrappedEmit;
|
|
13036
13036
|
let takeFullSnapshot$1;
|
|
13037
13037
|
let canvasManager;
|
package/dist/reporter.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var w=Object.create;var o=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var h=(t,e)=>{for(var r in e)o(t,r,{get:e[r],enumerable:!0})},R=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of N(e))!T.call(t,n)&&n!==r&&o(t,n,{get:()=>e[n],enumerable:!(s=b(e,n))||s.enumerable});return t};var m=(t,e,r)=>(r=t!=null?w(S(t)):{},R(e||!t||!t.__esModule?o(r,"default",{value:t,enumerable:!0}):r,t)),j=t=>R(o({},"__esModule",{value:!0}),t);var k={};h(k,{default:()=>f});module.exports=j(k);var p=m(require("path")),i=m(require("fs")),u={outputReportDir:"test-results/cypress/ui"};function l(t){return(t??"").trim().replace(/[\s:/\\<>|"'?*]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}function f(t,e){u={...u,...e},t("task",{saveRRWebReport(r){let{testRunResult:s}=r,n=l(s.spec.name),c=l(s.test.suite?.title),g=l(s.test.title),d=s.browser.name,y=`${c?c+"-":""}${g}.json`,a=p.join(u.outputReportDir,n,d,y),v={events:s.recorderEvents,metadata:{runner:s.runner,spec:s.spec,suite:s.test.suite,test:s.test,browser:s.browser}};return i.mkdirSync(u.outputReportDir,{recursive:!0}),i.mkdirSync(p.dirname(a),{recursive:!0}),i.writeFileSync(a,JSON.stringify(v,null,2),"utf-8"),console.log(`[ui-coverage] Saved report to ${a}`),null}})}
|
|
2
2
|
//# sourceMappingURL=reporter.js.map
|
package/dist/reporter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/reporter.ts"],"sourcesContent":["import * as path from 'path';\nimport * as fs from 'fs';\nimport type { TestRunResult } from './types';\n\nlet pluginConfig: {\n outputReportDir: string;\n} = {\n outputReportDir: 'test-results/cypress/ui'\n};\n\nfunction sanitizeFileNamePart(name: string | undefined): string {\n return (name ?? '')\n .trim()\n .replace(/[\\s:/\\\\<>|\"'?*]+/g, '-')\n .replace(/-+/g, '-')\n .replace(/^-|-$/g, '');\n}\n\nexport default function registerRRWebReportTasks(on: Cypress.PluginEvents, config?: Partial<typeof pluginConfig>) {\n pluginConfig = { ...pluginConfig, ...config };\n\n on('task', {\n saveRRWebReport(reportData: {testRunResult: TestRunResult}) {\n const { testRunResult } = reportData;\n\n const specName = sanitizeFileNamePart(testRunResult.spec.name);\n const suiteTitle = sanitizeFileNamePart(testRunResult.test.suite?.title);\n const testTitle = sanitizeFileNamePart(testRunResult.test.title);\n\n const jsonFileNameRaw = `${suiteTitle ? suiteTitle + '-' : ''}${testTitle}.json`;\n const jsonFilePathRaw = path.join(pluginConfig.outputReportDir, specName, jsonFileNameRaw);\n const reportRaw = {\n events: testRunResult.recorderEvents,\n metadata: {\n runner: testRunResult.runner,\n spec: testRunResult.spec,\n suite: testRunResult.test.suite,\n test: testRunResult.test,\n browser: testRunResult.browser,\n }\n };\n fs.mkdirSync(pluginConfig.outputReportDir, { recursive: true });\n fs.mkdirSync(path.dirname(jsonFilePathRaw), { recursive: true });\n fs.writeFileSync(jsonFilePathRaw, JSON.stringify(reportRaw, null, 2), 'utf-8');\n console.log(`[ui-coverage] Saved report to ${jsonFilePathRaw}`);\n\n return null;\n }\n });\n}\n"],"mappings":"0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAsB,mBACtBC,EAAoB,iBAGhBC,EAEA,CACF,gBAAiB,yBACnB,EAEA,SAASC,EAAqBC,EAAkC,CAC9D,OAAQA,GAAQ,IACb,KAAK,EACL,QAAQ,oBAAqB,GAAG,EAChC,QAAQ,MAAO,GAAG,EAClB,QAAQ,SAAU,EAAE,CACzB,CAEe,SAARN,EAA0CO,EAA0BC,EAAuC,CAChHJ,EAAe,CAAE,GAAGA,EAAc,GAAGI,CAAO,EAE5CD,EAAG,OAAQ,CACT,gBAAgBE,EAA4C,CAC1D,GAAM,CAAE,cAAAC,CAAc,EAAID,EAEpBE,EAAWN,EAAqBK,EAAc,KAAK,IAAI,EACvDE,EAAaP,EAAqBK,EAAc,KAAK,OAAO,KAAK,EACjEG,EAAYR,EAAqBK,EAAc,KAAK,KAAK,
|
|
1
|
+
{"version":3,"sources":["../src/reporter.ts"],"sourcesContent":["import * as path from 'path';\nimport * as fs from 'fs';\nimport type { TestRunResult } from './types';\n\nlet pluginConfig: {\n outputReportDir: string;\n} = {\n outputReportDir: 'test-results/cypress/ui'\n};\n\nfunction sanitizeFileNamePart(name: string | undefined): string {\n return (name ?? '')\n .trim()\n .replace(/[\\s:/\\\\<>|\"'?*]+/g, '-')\n .replace(/-+/g, '-')\n .replace(/^-|-$/g, '');\n}\n\nexport default function registerRRWebReportTasks(on: Cypress.PluginEvents, config?: Partial<typeof pluginConfig>) {\n pluginConfig = { ...pluginConfig, ...config };\n\n on('task', {\n saveRRWebReport(reportData: {testRunResult: TestRunResult}) {\n const { testRunResult } = reportData;\n\n const specName = sanitizeFileNamePart(testRunResult.spec.name);\n const suiteTitle = sanitizeFileNamePart(testRunResult.test.suite?.title);\n const testTitle = sanitizeFileNamePart(testRunResult.test.title);\n const browserName = testRunResult.browser.name;\n\n const jsonFileNameRaw = `${suiteTitle ? suiteTitle + '-' : ''}${testTitle}.json`;\n const jsonFilePathRaw = path.join(pluginConfig.outputReportDir, specName, browserName, jsonFileNameRaw);\n const reportRaw = {\n events: testRunResult.recorderEvents,\n metadata: {\n runner: testRunResult.runner,\n spec: testRunResult.spec,\n suite: testRunResult.test.suite,\n test: testRunResult.test,\n browser: testRunResult.browser,\n }\n };\n fs.mkdirSync(pluginConfig.outputReportDir, { recursive: true });\n fs.mkdirSync(path.dirname(jsonFilePathRaw), { recursive: true });\n fs.writeFileSync(jsonFilePathRaw, JSON.stringify(reportRaw, null, 2), 'utf-8');\n console.log(`[ui-coverage] Saved report to ${jsonFilePathRaw}`);\n\n return null;\n }\n });\n}\n"],"mappings":"0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAsB,mBACtBC,EAAoB,iBAGhBC,EAEA,CACF,gBAAiB,yBACnB,EAEA,SAASC,EAAqBC,EAAkC,CAC9D,OAAQA,GAAQ,IACb,KAAK,EACL,QAAQ,oBAAqB,GAAG,EAChC,QAAQ,MAAO,GAAG,EAClB,QAAQ,SAAU,EAAE,CACzB,CAEe,SAARN,EAA0CO,EAA0BC,EAAuC,CAChHJ,EAAe,CAAE,GAAGA,EAAc,GAAGI,CAAO,EAE5CD,EAAG,OAAQ,CACT,gBAAgBE,EAA4C,CAC1D,GAAM,CAAE,cAAAC,CAAc,EAAID,EAEpBE,EAAWN,EAAqBK,EAAc,KAAK,IAAI,EACvDE,EAAaP,EAAqBK,EAAc,KAAK,OAAO,KAAK,EACjEG,EAAYR,EAAqBK,EAAc,KAAK,KAAK,EACzDI,EAAcJ,EAAc,QAAQ,KAEpCK,EAAkB,GAAGH,EAAaA,EAAa,IAAM,KAAKC,SAC1DG,EAAuB,OAAKZ,EAAa,gBAAiBO,EAAUG,EAAaC,CAAe,EAChGE,EAAY,CAChB,OAAQP,EAAc,eACtB,SAAU,CACR,OAAQA,EAAc,OACtB,KAAMA,EAAc,KACpB,MAAOA,EAAc,KAAK,MAC1B,KAAMA,EAAc,KACpB,QAASA,EAAc,OACzB,CACF,EACA,OAAG,YAAUN,EAAa,gBAAiB,CAAE,UAAW,EAAK,CAAC,EAC3D,YAAe,UAAQY,CAAe,EAAG,CAAE,UAAW,EAAK,CAAC,EAC5D,gBAAcA,EAAiB,KAAK,UAAUC,EAAW,KAAM,CAAC,EAAG,OAAO,EAC7E,QAAQ,IAAI,iCAAiCD,GAAiB,EAEvD,IACT,CACF,CAAC,CACH","names":["reporter_exports","__export","registerRRWebReportTasks","__toCommonJS","path","fs","pluginConfig","sanitizeFileNamePart","name","on","config","reportData","testRunResult","specName","suiteTitle","testTitle","browserName","jsonFileNameRaw","jsonFilePathRaw","reportRaw"]}
|
package/dist/reporter.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as r from"path";import*as e from"fs";var s={outputReportDir:"test-results/cypress/ui"};function o(n){return(n??"").trim().replace(/[\s:/\\<>|"'?*]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}function g(n,p){s={...s,...p},n("task",{saveRRWebReport(a){let{testRunResult:t}=a,l=o(t.spec.name),u=o(t.test.suite?.title),c=o(t.test.title),R=`${u?u+"-":""}${c}.json`,i=r.join(s.outputReportDir,l,R),f={events:t.recorderEvents,metadata:{runner:t.runner,spec:t.spec,suite:t.test.suite,test:t.test,browser:t.browser}};return e.mkdirSync(s.outputReportDir,{recursive:!0}),e.mkdirSync(r.dirname(i),{recursive:!0}),e.writeFileSync(i,JSON.stringify(f,null,2),"utf-8"),console.log(`[ui-coverage] Saved report to ${i}`),null}})}export{g as default};
|
|
1
|
+
import*as r from"path";import*as e from"fs";var s={outputReportDir:"test-results/cypress/ui"};function o(n){return(n??"").trim().replace(/[\s:/\\<>|"'?*]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}function g(n,p){s={...s,...p},n("task",{saveRRWebReport(a){let{testRunResult:t}=a,l=o(t.spec.name),u=o(t.test.suite?.title),c=o(t.test.title),R=t.browser.name,m=`${u?u+"-":""}${c}.json`,i=r.join(s.outputReportDir,l,R,m),f={events:t.recorderEvents,metadata:{runner:t.runner,spec:t.spec,suite:t.test.suite,test:t.test,browser:t.browser}};return e.mkdirSync(s.outputReportDir,{recursive:!0}),e.mkdirSync(r.dirname(i),{recursive:!0}),e.writeFileSync(i,JSON.stringify(f,null,2),"utf-8"),console.log(`[ui-coverage] Saved report to ${i}`),null}})}export{g as default};
|
|
2
2
|
//# sourceMappingURL=reporter.mjs.map
|
package/dist/reporter.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/reporter.ts"],"sourcesContent":["import * as path from 'path';\nimport * as fs from 'fs';\nimport type { TestRunResult } from './types';\n\nlet pluginConfig: {\n outputReportDir: string;\n} = {\n outputReportDir: 'test-results/cypress/ui'\n};\n\nfunction sanitizeFileNamePart(name: string | undefined): string {\n return (name ?? '')\n .trim()\n .replace(/[\\s:/\\\\<>|\"'?*]+/g, '-')\n .replace(/-+/g, '-')\n .replace(/^-|-$/g, '');\n}\n\nexport default function registerRRWebReportTasks(on: Cypress.PluginEvents, config?: Partial<typeof pluginConfig>) {\n pluginConfig = { ...pluginConfig, ...config };\n\n on('task', {\n saveRRWebReport(reportData: {testRunResult: TestRunResult}) {\n const { testRunResult } = reportData;\n\n const specName = sanitizeFileNamePart(testRunResult.spec.name);\n const suiteTitle = sanitizeFileNamePart(testRunResult.test.suite?.title);\n const testTitle = sanitizeFileNamePart(testRunResult.test.title);\n\n const jsonFileNameRaw = `${suiteTitle ? suiteTitle + '-' : ''}${testTitle}.json`;\n const jsonFilePathRaw = path.join(pluginConfig.outputReportDir, specName, jsonFileNameRaw);\n const reportRaw = {\n events: testRunResult.recorderEvents,\n metadata: {\n runner: testRunResult.runner,\n spec: testRunResult.spec,\n suite: testRunResult.test.suite,\n test: testRunResult.test,\n browser: testRunResult.browser,\n }\n };\n fs.mkdirSync(pluginConfig.outputReportDir, { recursive: true });\n fs.mkdirSync(path.dirname(jsonFilePathRaw), { recursive: true });\n fs.writeFileSync(jsonFilePathRaw, JSON.stringify(reportRaw, null, 2), 'utf-8');\n console.log(`[ui-coverage] Saved report to ${jsonFilePathRaw}`);\n\n return null;\n }\n });\n}\n"],"mappings":"AAAA,UAAYA,MAAU,OACtB,UAAYC,MAAQ,KAGpB,IAAIC,EAEA,CACF,gBAAiB,yBACnB,EAEA,SAASC,EAAqBC,EAAkC,CAC9D,OAAQA,GAAQ,IACb,KAAK,EACL,QAAQ,oBAAqB,GAAG,EAChC,QAAQ,MAAO,GAAG,EAClB,QAAQ,SAAU,EAAE,CACzB,CAEe,SAARC,EAA0CC,EAA0BC,EAAuC,CAChHL,EAAe,CAAE,GAAGA,EAAc,GAAGK,CAAO,EAE5CD,EAAG,OAAQ,CACT,gBAAgBE,EAA4C,CAC1D,GAAM,CAAE,cAAAC,CAAc,EAAID,EAEpBE,EAAWP,EAAqBM,EAAc,KAAK,IAAI,EACvDE,EAAaR,EAAqBM,EAAc,KAAK,OAAO,KAAK,EACjEG,EAAYT,EAAqBM,EAAc,KAAK,KAAK,
|
|
1
|
+
{"version":3,"sources":["../src/reporter.ts"],"sourcesContent":["import * as path from 'path';\nimport * as fs from 'fs';\nimport type { TestRunResult } from './types';\n\nlet pluginConfig: {\n outputReportDir: string;\n} = {\n outputReportDir: 'test-results/cypress/ui'\n};\n\nfunction sanitizeFileNamePart(name: string | undefined): string {\n return (name ?? '')\n .trim()\n .replace(/[\\s:/\\\\<>|\"'?*]+/g, '-')\n .replace(/-+/g, '-')\n .replace(/^-|-$/g, '');\n}\n\nexport default function registerRRWebReportTasks(on: Cypress.PluginEvents, config?: Partial<typeof pluginConfig>) {\n pluginConfig = { ...pluginConfig, ...config };\n\n on('task', {\n saveRRWebReport(reportData: {testRunResult: TestRunResult}) {\n const { testRunResult } = reportData;\n\n const specName = sanitizeFileNamePart(testRunResult.spec.name);\n const suiteTitle = sanitizeFileNamePart(testRunResult.test.suite?.title);\n const testTitle = sanitizeFileNamePart(testRunResult.test.title);\n const browserName = testRunResult.browser.name;\n\n const jsonFileNameRaw = `${suiteTitle ? suiteTitle + '-' : ''}${testTitle}.json`;\n const jsonFilePathRaw = path.join(pluginConfig.outputReportDir, specName, browserName, jsonFileNameRaw);\n const reportRaw = {\n events: testRunResult.recorderEvents,\n metadata: {\n runner: testRunResult.runner,\n spec: testRunResult.spec,\n suite: testRunResult.test.suite,\n test: testRunResult.test,\n browser: testRunResult.browser,\n }\n };\n fs.mkdirSync(pluginConfig.outputReportDir, { recursive: true });\n fs.mkdirSync(path.dirname(jsonFilePathRaw), { recursive: true });\n fs.writeFileSync(jsonFilePathRaw, JSON.stringify(reportRaw, null, 2), 'utf-8');\n console.log(`[ui-coverage] Saved report to ${jsonFilePathRaw}`);\n\n return null;\n }\n });\n}\n"],"mappings":"AAAA,UAAYA,MAAU,OACtB,UAAYC,MAAQ,KAGpB,IAAIC,EAEA,CACF,gBAAiB,yBACnB,EAEA,SAASC,EAAqBC,EAAkC,CAC9D,OAAQA,GAAQ,IACb,KAAK,EACL,QAAQ,oBAAqB,GAAG,EAChC,QAAQ,MAAO,GAAG,EAClB,QAAQ,SAAU,EAAE,CACzB,CAEe,SAARC,EAA0CC,EAA0BC,EAAuC,CAChHL,EAAe,CAAE,GAAGA,EAAc,GAAGK,CAAO,EAE5CD,EAAG,OAAQ,CACT,gBAAgBE,EAA4C,CAC1D,GAAM,CAAE,cAAAC,CAAc,EAAID,EAEpBE,EAAWP,EAAqBM,EAAc,KAAK,IAAI,EACvDE,EAAaR,EAAqBM,EAAc,KAAK,OAAO,KAAK,EACjEG,EAAYT,EAAqBM,EAAc,KAAK,KAAK,EACzDI,EAAcJ,EAAc,QAAQ,KAEpCK,EAAkB,GAAGH,EAAaA,EAAa,IAAM,KAAKC,SAC1DG,EAAuB,OAAKb,EAAa,gBAAiBQ,EAAUG,EAAaC,CAAe,EAChGE,EAAY,CAChB,OAAQP,EAAc,eACtB,SAAU,CACR,OAAQA,EAAc,OACtB,KAAMA,EAAc,KACpB,MAAOA,EAAc,KAAK,MAC1B,KAAMA,EAAc,KACpB,QAASA,EAAc,OACzB,CACF,EACA,OAAG,YAAUP,EAAa,gBAAiB,CAAE,UAAW,EAAK,CAAC,EAC3D,YAAe,UAAQa,CAAe,EAAG,CAAE,UAAW,EAAK,CAAC,EAC5D,gBAAcA,EAAiB,KAAK,UAAUC,EAAW,KAAM,CAAC,EAAG,OAAO,EAC7E,QAAQ,IAAI,iCAAiCD,GAAiB,EAEvD,IACT,CACF,CAAC,CACH","names":["path","fs","pluginConfig","sanitizeFileNamePart","name","registerRRWebReportTasks","on","config","reportData","testRunResult","specName","suiteTitle","testTitle","browserName","jsonFileNameRaw","jsonFilePathRaw","reportRaw"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsurify-testmap/rrweb-cypress-plugin",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3-alpha.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
11
|
"prebuild": "yarn workspace @appsurify-testmap/rrweb-record run build",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"prepublish": "yarn run build"
|
|
12
|
+
"build": "yarn turbo run prepublish",
|
|
13
|
+
"prepublish": "yarn prebuild && tsup-node"
|
|
15
14
|
},
|
|
16
15
|
"homepage": "https://github.com/rrweb-io/rrweb/tree/main/packages/@rrweb/utils#readme",
|
|
17
16
|
"bugs": {
|
|
@@ -49,9 +48,9 @@
|
|
|
49
48
|
"typescript": "^5.8.3"
|
|
50
49
|
},
|
|
51
50
|
"dependencies": {
|
|
52
|
-
"@appsurify-testmap/rrweb": "^2.1.
|
|
53
|
-
"@appsurify-testmap/rrweb-plugin-sequential-id-record": "^2.1.
|
|
54
|
-
"@appsurify-testmap/rrweb-snapshot": "^2.1.
|
|
55
|
-
"@appsurify-testmap/rrweb-types": "^2.1.
|
|
51
|
+
"@appsurify-testmap/rrweb": "^2.1.3-alpha.1",
|
|
52
|
+
"@appsurify-testmap/rrweb-plugin-sequential-id-record": "^2.1.3-alpha.1",
|
|
53
|
+
"@appsurify-testmap/rrweb-snapshot": "^2.1.3-alpha.1",
|
|
54
|
+
"@appsurify-testmap/rrweb-types": "^2.1.3-alpha.1"
|
|
56
55
|
}
|
|
57
56
|
}
|