allure-js-commons 3.7.1 → 3.8.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.
Files changed (57) hide show
  1. package/README.md +21 -0
  2. package/dist/cjs/facade.js +1 -1
  3. package/dist/cjs/facade.js.map +1 -1
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/model.js +1 -0
  6. package/dist/cjs/model.js.map +1 -1
  7. package/dist/cjs/sdk/reporter/utils.js +1 -1
  8. package/dist/cjs/sdk/reporter/utils.js.map +1 -1
  9. package/dist/cjs/sdk/runtime/MessageHolderTestRuntime.js +3 -0
  10. package/dist/cjs/sdk/runtime/MessageHolderTestRuntime.js.map +1 -1
  11. package/dist/cjs/sdk/runtime/MessageTestRuntime.js +220 -5
  12. package/dist/cjs/sdk/runtime/MessageTestRuntime.js.map +1 -1
  13. package/dist/cjs/sdk/runtime/NoopTestRuntime.js +83 -3
  14. package/dist/cjs/sdk/runtime/NoopTestRuntime.js.map +1 -1
  15. package/dist/cjs/sdk/runtime/index.js +6 -0
  16. package/dist/cjs/sdk/runtime/index.js.map +1 -1
  17. package/dist/cjs/sdk/runtime/runtime.js +42 -8
  18. package/dist/cjs/sdk/runtime/runtime.js.map +1 -1
  19. package/dist/cjs/sdk/runtime/types.js.map +1 -1
  20. package/dist/cjs/sync.js +242 -0
  21. package/dist/cjs/sync.js.map +1 -0
  22. package/dist/cjs/syncFacade.js +158 -0
  23. package/dist/cjs/syncFacade.js.map +1 -0
  24. package/dist/esm/facade.js +2 -1
  25. package/dist/esm/facade.js.map +1 -1
  26. package/dist/esm/index.js.map +1 -1
  27. package/dist/esm/model.js +1 -0
  28. package/dist/esm/model.js.map +1 -1
  29. package/dist/esm/sdk/reporter/utils.js +1 -1
  30. package/dist/esm/sdk/reporter/utils.js.map +1 -1
  31. package/dist/esm/sdk/runtime/MessageHolderTestRuntime.js +3 -0
  32. package/dist/esm/sdk/runtime/MessageHolderTestRuntime.js.map +1 -1
  33. package/dist/esm/sdk/runtime/MessageTestRuntime.js +220 -5
  34. package/dist/esm/sdk/runtime/MessageTestRuntime.js.map +1 -1
  35. package/dist/esm/sdk/runtime/NoopTestRuntime.js +81 -2
  36. package/dist/esm/sdk/runtime/NoopTestRuntime.js.map +1 -1
  37. package/dist/esm/sdk/runtime/index.js +1 -1
  38. package/dist/esm/sdk/runtime/index.js.map +1 -1
  39. package/dist/esm/sdk/runtime/runtime.js +40 -8
  40. package/dist/esm/sdk/runtime/runtime.js.map +1 -1
  41. package/dist/esm/sdk/runtime/types.js.map +1 -1
  42. package/dist/esm/sync.js +3 -0
  43. package/dist/esm/sync.js.map +1 -0
  44. package/dist/esm/syncFacade.js +123 -0
  45. package/dist/esm/syncFacade.js.map +1 -0
  46. package/dist/types/facade.d.ts +4 -6
  47. package/dist/types/index.d.ts +1 -1
  48. package/dist/types/model.d.ts +2 -1
  49. package/dist/types/sdk/runtime/MessageHolderTestRuntime.d.ts +1 -0
  50. package/dist/types/sdk/runtime/MessageTestRuntime.d.ts +10 -1
  51. package/dist/types/sdk/runtime/NoopTestRuntime.d.ts +51 -2
  52. package/dist/types/sdk/runtime/index.d.ts +2 -2
  53. package/dist/types/sdk/runtime/runtime.d.ts +3 -1
  54. package/dist/types/sdk/runtime/types.d.ts +28 -0
  55. package/dist/types/sync.d.ts +4 -0
  56. package/dist/types/syncFacade.d.ts +37 -0
  57. package/package.json +8 -2
@@ -1,6 +1,20 @@
1
1
  function _tsRewriteRelativeImportExtensions(t, e) { return "string" == typeof t && /^\.\.?\//.test(t) ? t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i, function (t, s, r, n, o) { return s ? e ? ".jsx" : ".js" : !r || n && o ? r + n + "." + o.toLowerCase() + "js" : t; }) : t; }
2
- import { noopRuntime } from "./NoopTestRuntime.js";
2
+ import { noopRuntime, noopSyncRuntime } from "./NoopTestRuntime.js";
3
3
  var ALLURE_TEST_RUNTIME_KEY = "allureTestRuntime";
4
+ var pwAutoconfigModuleName = "allure-playwright/autoconfig";
5
+ var getNodeCreateRequire = () => {
6
+ var _process$getBuiltinMo, _process$getBuiltinMo2, _process$getBuiltinMo3;
7
+ var process = globalThis.process;
8
+ return (_process$getBuiltinMo = process === null || process === void 0 || (_process$getBuiltinMo2 = process.getBuiltinModule) === null || _process$getBuiltinMo2 === void 0 || (_process$getBuiltinMo2 = _process$getBuiltinMo2.call(process, "node:module")) === null || _process$getBuiltinMo2 === void 0 ? void 0 : _process$getBuiltinMo2.createRequire) !== null && _process$getBuiltinMo !== void 0 ? _process$getBuiltinMo : process === null || process === void 0 || (_process$getBuiltinMo3 = process.getBuiltinModule) === null || _process$getBuiltinMo3 === void 0 || (_process$getBuiltinMo3 = _process$getBuiltinMo3.call(process, "module")) === null || _process$getBuiltinMo3 === void 0 ? void 0 : _process$getBuiltinMo3.createRequire;
9
+ };
10
+ var getNodeRequire = () => {
11
+ var _process$cwd;
12
+ var process = globalThis.process;
13
+ var cwd = process === null || process === void 0 || (_process$cwd = process.cwd) === null || _process$cwd === void 0 ? void 0 : _process$cwd.call(process);
14
+ var createRequire = getNodeCreateRequire();
15
+ return cwd && createRequire ? createRequire("".concat(cwd, "/package.json")) : undefined;
16
+ };
17
+ var localRequire = typeof require === "function" ? require : getNodeRequire();
4
18
  export var setGlobalTestRuntime = runtime => {
5
19
  globalThis[ALLURE_TEST_RUNTIME_KEY] = () => runtime;
6
20
  };
@@ -15,18 +29,36 @@ export var getGlobalTestRuntime = () => {
15
29
  }
16
30
  return noopRuntime;
17
31
  };
32
+ export var getGlobalSyncTestRuntime = () => {
33
+ var _getGlobalTestRuntime;
34
+ return (_getGlobalTestRuntime = getGlobalTestRuntime().sync) !== null && _getGlobalTestRuntime !== void 0 ? _getGlobalTestRuntime : noopSyncRuntime;
35
+ };
36
+ export var getGlobalSyncTestRuntimeWithAutoconfig = () => {
37
+ var _getGlobalTestRuntime2, _getGlobalTestRuntime3;
38
+ var testRuntime = getGlobalTestRuntimeFunction();
39
+ if (testRuntime) {
40
+ var _testRuntime$sync, _testRuntime2;
41
+ return (_testRuntime$sync = (_testRuntime2 = testRuntime()) === null || _testRuntime2 === void 0 ? void 0 : _testRuntime2.sync) !== null && _testRuntime$sync !== void 0 ? _testRuntime$sync : noopSyncRuntime;
42
+ }
43
+ if (!localRequire) {
44
+ return noopSyncRuntime;
45
+ }
46
+ try {
47
+ localRequire(pwAutoconfigModuleName);
48
+ } catch (_unused) {
49
+ return noopSyncRuntime;
50
+ }
51
+ return (_getGlobalTestRuntime2 = (_getGlobalTestRuntime3 = getGlobalTestRuntimeFunction()) === null || _getGlobalTestRuntime3 === void 0 || (_getGlobalTestRuntime3 = _getGlobalTestRuntime3()) === null || _getGlobalTestRuntime3 === void 0 ? void 0 : _getGlobalTestRuntime3.sync) !== null && _getGlobalTestRuntime2 !== void 0 ? _getGlobalTestRuntime2 : noopSyncRuntime;
52
+ };
18
53
  export var getGlobalTestRuntimeWithAutoconfig = () => {
19
54
  var testRuntime = getGlobalTestRuntimeFunction();
20
55
  if (testRuntime) {
21
- var _testRuntime2;
22
- return (_testRuntime2 = testRuntime()) !== null && _testRuntime2 !== void 0 ? _testRuntime2 : noopRuntime;
56
+ var _testRuntime3;
57
+ return (_testRuntime3 = testRuntime()) !== null && _testRuntime3 !== void 0 ? _testRuntime3 : noopRuntime;
23
58
  }
24
-
25
- // protection from bundlers tree-shaking visiting (webpack, rollup)
26
- var pwAutoconfigModuleName = "allure-playwright/autoconfig";
27
59
  return import(/* @vite-ignore */_tsRewriteRelativeImportExtensions(pwAutoconfigModuleName)).then(() => {
28
- var _getGlobalTestRuntime, _getGlobalTestRuntime2;
29
- return (_getGlobalTestRuntime = (_getGlobalTestRuntime2 = getGlobalTestRuntimeFunction()) === null || _getGlobalTestRuntime2 === void 0 ? void 0 : _getGlobalTestRuntime2()) !== null && _getGlobalTestRuntime !== void 0 ? _getGlobalTestRuntime : noopRuntime;
60
+ var _getGlobalTestRuntime4, _getGlobalTestRuntime5;
61
+ return (_getGlobalTestRuntime4 = (_getGlobalTestRuntime5 = getGlobalTestRuntimeFunction()) === null || _getGlobalTestRuntime5 === void 0 ? void 0 : _getGlobalTestRuntime5()) !== null && _getGlobalTestRuntime4 !== void 0 ? _getGlobalTestRuntime4 : noopRuntime;
30
62
  }).catch(() => noopRuntime);
31
63
  };
32
64
  //# sourceMappingURL=runtime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.js","names":["noopRuntime","ALLURE_TEST_RUNTIME_KEY","setGlobalTestRuntime","runtime","globalThis","getGlobalTestRuntimeFunction","getGlobalTestRuntime","testRuntime","_testRuntime","getGlobalTestRuntimeWithAutoconfig","_testRuntime2","pwAutoconfigModuleName","_tsRewriteRelativeImportExtensions","then","_getGlobalTestRuntime","_getGlobalTestRuntime2","catch"],"sources":["../../../../src/sdk/runtime/runtime.ts"],"sourcesContent":["import { noopRuntime } from \"./NoopTestRuntime.js\";\nimport type { TestRuntime } from \"./types.js\";\n\nconst ALLURE_TEST_RUNTIME_KEY = \"allureTestRuntime\";\n\nexport const setGlobalTestRuntime = (runtime: TestRuntime) => {\n (globalThis as any)[ALLURE_TEST_RUNTIME_KEY] = () => runtime;\n};\n\nconst getGlobalTestRuntimeFunction = () => {\n return (globalThis as any)?.[ALLURE_TEST_RUNTIME_KEY] as (() => TestRuntime | undefined) | undefined;\n};\n\nexport const getGlobalTestRuntime = (): TestRuntime => {\n const testRuntime = getGlobalTestRuntimeFunction();\n\n if (testRuntime) {\n return testRuntime() ?? noopRuntime;\n }\n\n return noopRuntime;\n};\n\nexport const getGlobalTestRuntimeWithAutoconfig = (): TestRuntime | Promise<TestRuntime> => {\n const testRuntime = getGlobalTestRuntimeFunction();\n\n if (testRuntime) {\n return testRuntime() ?? noopRuntime;\n }\n\n // protection from bundlers tree-shaking visiting (webpack, rollup)\n const pwAutoconfigModuleName = \"allure-playwright/autoconfig\";\n\n return import(\n /* @vite-ignore */\n pwAutoconfigModuleName\n )\n .then(() =>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CAAC","ignoreList":[]}
1
+ {"version":3,"file":"runtime.js","names":["noopRuntime","noopSyncRuntime","ALLURE_TEST_RUNTIME_KEY","pwAutoconfigModuleName","getNodeCreateRequire","_process$getBuiltinMo","_process$getBuiltinMo2","_process$getBuiltinMo3","process","globalThis","getBuiltinModule","call","createRequire","getNodeRequire","_process$cwd","cwd","concat","undefined","localRequire","require","setGlobalTestRuntime","runtime","getGlobalTestRuntimeFunction","getGlobalTestRuntime","testRuntime","_testRuntime","getGlobalSyncTestRuntime","_getGlobalTestRuntime","sync","getGlobalSyncTestRuntimeWithAutoconfig","_getGlobalTestRuntime2","_getGlobalTestRuntime3","_testRuntime$sync","_testRuntime2","_unused","getGlobalTestRuntimeWithAutoconfig","_testRuntime3","_tsRewriteRelativeImportExtensions","then","_getGlobalTestRuntime4","_getGlobalTestRuntime5","catch"],"sources":["../../../../src/sdk/runtime/runtime.ts"],"sourcesContent":["import { noopRuntime, noopSyncRuntime } from \"./NoopTestRuntime.js\";\nimport type { SyncTestRuntime, TestRuntime } from \"./types.js\";\n\nconst ALLURE_TEST_RUNTIME_KEY = \"allureTestRuntime\";\nconst pwAutoconfigModuleName = \"allure-playwright/autoconfig\";\n\ntype NodeCreateRequire = (filename: string | URL) => NodeRequire;\n\ntype NodeProcessWithBuiltins = {\n cwd?: () => string;\n getBuiltinModule?: (id: string) => { createRequire?: NodeCreateRequire } | undefined;\n};\n\nconst getNodeCreateRequire = (): NodeCreateRequire | undefined => {\n const process = (globalThis as { process?: NodeProcessWithBuiltins }).process;\n\n return (\n process?.getBuiltinModule?.(\"node:module\")?.createRequire ?? process?.getBuiltinModule?.(\"module\")?.createRequire\n );\n};\n\nconst getNodeRequire = (): NodeRequire | undefined => {\n const process = (globalThis as { process?: NodeProcessWithBuiltins }).process;\n const cwd = process?.cwd?.();\n const createRequire = getNodeCreateRequire();\n\n return cwd && createRequire ? createRequire(`${cwd}/package.json`) : undefined;\n};\n\nconst localRequire = typeof require === \"function\" ? require : getNodeRequire();\n\nexport const setGlobalTestRuntime = (runtime: TestRuntime) => {\n (globalThis as any)[ALLURE_TEST_RUNTIME_KEY] = () => runtime;\n};\n\nconst getGlobalTestRuntimeFunction = () => {\n return (globalThis as any)?.[ALLURE_TEST_RUNTIME_KEY] as (() => TestRuntime | undefined) | undefined;\n};\n\nexport const getGlobalTestRuntime = (): TestRuntime => {\n const testRuntime = getGlobalTestRuntimeFunction();\n\n if (testRuntime) {\n return testRuntime() ?? noopRuntime;\n }\n\n return noopRuntime;\n};\n\nexport const getGlobalSyncTestRuntime = (): SyncTestRuntime => {\n return getGlobalTestRuntime().sync ?? noopSyncRuntime;\n};\n\nexport const getGlobalSyncTestRuntimeWithAutoconfig = (): SyncTestRuntime => {\n const testRuntime = getGlobalTestRuntimeFunction();\n\n if (testRuntime) {\n return testRuntime()?.sync ?? noopSyncRuntime;\n }\n\n if (!localRequire) {\n return noopSyncRuntime;\n }\n\n try {\n localRequire(pwAutoconfigModuleName);\n } catch {\n return noopSyncRuntime;\n }\n\n return getGlobalTestRuntimeFunction()?.()?.sync ?? noopSyncRuntime;\n};\n\nexport const getGlobalTestRuntimeWithAutoconfig = (): TestRuntime | Promise<TestRuntime> => {\n const testRuntime = getGlobalTestRuntimeFunction();\n\n if (testRuntime) {\n return testRuntime() ?? noopRuntime;\n }\n return import(\n /* @vite-ignore */\n pwAutoconfigModuleName\n )\n .then(() => getGlobalTestRuntimeFunction()?.() ?? noopRuntime)\n .catch(() => noopRuntime);\n};\n"],"mappings":";AAAA,SAASA,WAAW,EAAEC,eAAe,QAAQ,sBAAsB;AAGnE,IAAMC,uBAAuB,GAAG,mBAAmB;AACnD,IAAMC,sBAAsB,GAAG,8BAA8B;AAS7D,IAAMC,oBAAoB,GAAGA,CAAA,KAAqC;EAAA,IAAAC,qBAAA,EAAAC,sBAAA,EAAAC,sBAAA;EAChE,IAAMC,OAAO,GAAIC,UAAU,CAA2CD,OAAO;EAE7E,QAAAH,qBAAA,GACEG,OAAO,aAAPA,OAAO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W,EAAE;IAAA,IAAAY,aAAA;IACf,QAAAA,aAAA,GAAOZ,WAAW,CAAC,CAAC,cAAAY,aAAA,cAAAA,aAAA,GAAIpC,WAAW;EACrC;EACA,OAAO,MAAM,CACX,kBAAAqC,kCAAA,CACAlC,sBAAsB,CACxB,CAAC,CACEmC,IAAI,CAAC;IAAA,IAAAC,sBAAA,EAAAC,sBAAA;IAAA,QAAAD,sBAAA,IAAAC,sBAAA,GAAMlB,4BAA4B,CAAC,CAAC,cAAAkB,sBAAA,uBAA9BA,sBAAA,CAAiC,CAAC,cAAAD,sBAAA,cAAAA,sBAAA,GAAIvC,WAAW;EAAA,EAAC,CAC7DyC,KAAK,CAAC,MAAMzC,WAAW,CAAC;AAC7B,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../../../src/sdk/runtime/types.ts"],"sourcesContent":["import type {\n AttachmentOptions,\n Label,\n Link,\n ParameterMode,\n ParameterOptions,\n Status,\n StatusDetails,\n} from \"../../model.js\";\n\nexport interface TestRuntime {\n labels: (...labels: Label[]) => PromiseLike<void>;\n\n links: (...links: Link[]) => PromiseLike<void>;\n\n parameter: (name: string, value: string, options?: ParameterOptions) => PromiseLike<void>;\n\n description: (markdown: string) => PromiseLike<void>;\n\n descriptionHtml: (html: string) => PromiseLike<void>;\n\n displayName: (name: string) => PromiseLike<void>;\n\n historyId: (value: string) => PromiseLike<void>;\n\n testCaseId: (value: string) => PromiseLike<void>;\n\n attachment: (name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions) => PromiseLike<void>;\n\n globalAttachment: (\n name: string,\n content: Buffer | Uint8Array | string,\n options: AttachmentOptions,\n ) => PromiseLike<void>;\n\n globalAttachmentFromPath: (\n name: string,\n path: string,\n options: Omit<AttachmentOptions, \"encoding\">,\n ) => PromiseLike<void>;\n\n globalError: (details: StatusDetails) => PromiseLike<void>;\n\n attachmentFromPath: (name: string, path: string, options: Omit<AttachmentOptions, \"encoding\">) => PromiseLike<void>;\n\n logStep: (name: string, status?: Status, error?: Error) => PromiseLike<void>;\n\n step: <T = void>(name: string, body: () => T | PromiseLike<T>) => PromiseLike<T>;\n\n stepDisplayName: (name: string) => PromiseLike<void>;\n\n stepParameter: (name: string, value: string, mode?: ParameterMode) => PromiseLike<void>;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../../src/sdk/runtime/types.ts"],"sourcesContent":["import type {\n AttachmentOptions,\n Label,\n Link,\n ParameterMode,\n ParameterOptions,\n Status,\n StatusDetails,\n} from \"../../model.js\";\n\nexport interface StepContext {\n displayName: (name: string) => void | PromiseLike<void>;\n\n parameter: (name: string, value: string, mode?: ParameterMode) => void | PromiseLike<void>;\n}\n\nexport interface SyncStepContext {\n displayName: (name: string) => void;\n\n parameter: (name: string, value: string, mode?: ParameterMode) => void;\n}\n\nexport interface SyncTestRuntime {\n labels: (...labels: Label[]) => void;\n\n links: (...links: Link[]) => void;\n\n parameter: (name: string, value: string, options?: ParameterOptions) => void;\n\n description: (markdown: string) => void;\n\n descriptionHtml: (html: string) => void;\n\n displayName: (name: string) => void;\n\n historyId: (value: string) => void;\n\n testCaseId: (value: string) => void;\n\n attachment: (name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions) => void;\n\n globalAttachment: (name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions) => void;\n\n globalAttachmentFromPath: (name: string, path: string, options: Omit<AttachmentOptions, \"encoding\">) => void;\n\n globalError: (details: StatusDetails) => void;\n\n attachmentFromPath: (name: string, path: string, options: Omit<AttachmentOptions, \"encoding\">) => void;\n\n logStep: (name: string, status?: Status, error?: Error) => void;\n\n step: <T = void>(name: string, body: () => T) => T;\n\n stepDisplayName: (name: string) => void;\n\n stepParameter: (name: string, value: string, mode?: ParameterMode) => void;\n}\n\nexport interface TestRuntime {\n labels: (...labels: Label[]) => PromiseLike<void>;\n\n links: (...links: Link[]) => PromiseLike<void>;\n\n parameter: (name: string, value: string, options?: ParameterOptions) => PromiseLike<void>;\n\n description: (markdown: string) => PromiseLike<void>;\n\n descriptionHtml: (html: string) => PromiseLike<void>;\n\n displayName: (name: string) => PromiseLike<void>;\n\n historyId: (value: string) => PromiseLike<void>;\n\n testCaseId: (value: string) => PromiseLike<void>;\n\n attachment: (name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions) => PromiseLike<void>;\n\n globalAttachment: (\n name: string,\n content: Buffer | Uint8Array | string,\n options: AttachmentOptions,\n ) => PromiseLike<void>;\n\n globalAttachmentFromPath: (\n name: string,\n path: string,\n options: Omit<AttachmentOptions, \"encoding\">,\n ) => PromiseLike<void>;\n\n globalError: (details: StatusDetails) => PromiseLike<void>;\n\n attachmentFromPath: (name: string, path: string, options: Omit<AttachmentOptions, \"encoding\">) => PromiseLike<void>;\n\n logStep: (name: string, status?: Status, error?: Error) => PromiseLike<void>;\n\n step: <T = void>(name: string, body: () => T | PromiseLike<T>) => PromiseLike<T>;\n\n stepDisplayName: (name: string) => PromiseLike<void>;\n\n stepParameter: (name: string, value: string, mode?: ParameterMode) => PromiseLike<void>;\n\n sync?: SyncTestRuntime;\n}\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ export { allureId, attachment, attachmentPath, attachTrace, description, descriptionHtml, displayName, epic, feature, globalAttachment, globalAttachmentPath, globalError, historyId, issue, label, labels, layer, link, links, logStep, owner, parameter, parentSuite, severity, step, story, subSuite, suite, tag, tags, testCaseId, tms } from "./syncFacade.js";
2
+ export { ContentType, LabelName, LinkType, Severity, Stage, Status, StatusByPriority } from "./model.js";
3
+ //# sourceMappingURL=sync.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.js","names":["allureId","attachment","attachmentPath","attachTrace","description","descriptionHtml","displayName","epic","feature","globalAttachment","globalAttachmentPath","globalError","historyId","issue","label","labels","layer","link","links","logStep","owner","parameter","parentSuite","severity","step","story","subSuite","suite","tag","tags","testCaseId","tms","ContentType","LabelName","LinkType","Severity","Stage","Status","StatusByPriority"],"sources":["../../src/sync.ts"],"sourcesContent":["export {\n allureId,\n attachment,\n attachmentPath,\n attachTrace,\n description,\n descriptionHtml,\n displayName,\n epic,\n feature,\n globalAttachment,\n globalAttachmentPath,\n globalError,\n historyId,\n issue,\n label,\n labels,\n layer,\n link,\n links,\n logStep,\n owner,\n parameter,\n parentSuite,\n severity,\n step,\n story,\n subSuite,\n suite,\n tag,\n tags,\n testCaseId,\n tms,\n} from \"./syncFacade.js\";\nexport type { SyncStepContext } from \"./sdk/runtime/types.js\";\nexport type {\n Attachment,\n AttachmentOptions,\n FixtureResult,\n Globals,\n ImageDiffAttachment,\n Label,\n Link,\n Parameter,\n ParameterMode,\n ParameterOptions,\n StatusDetails,\n StepResult,\n TestOrStepResult,\n TestResult,\n TestResultContainer,\n} from \"./model.js\";\nexport { ContentType, LabelName, LinkType, Severity, Stage, Status, StatusByPriority } from \"./model.js\";\n"],"mappings":"AAAA,SACEA,QAAQ,EACRC,UAAU,EACVC,cAAc,EACdC,WAAW,EACXC,WAAW,EACXC,eAAe,EACfC,WAAW,EACXC,IAAI,EACJC,OAAO,EACPC,gBAAgB,EAChBC,oBAAoB,EACpBC,WAAW,EACXC,SAAS,EACTC,KAAK,EACLC,KAAK,EACLC,MAAM,EACNC,KAAK,EACLC,IAAI,EACJC,KAAK,EACLC,OAAO,EACPC,KAAK,EACLC,SAAS,EACTC,WAAW,EACXC,QAAQ,EACRC,IAAI,EACJC,KAAK,EACLC,QAAQ,EACRC,KAAK,EACLC,GAAG,EACHC,IAAI,EACJC,UAAU,EACVC,GAAG,QACE,iBAAiB;AAmBxB,SAASC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,MAAM,EAAEC,gBAAgB,QAAQ,YAAY","ignoreList":[]}
@@ -0,0 +1,123 @@
1
+ import { LabelName, LinkType } from "./model.js";
2
+ import { getGlobalSyncTestRuntimeWithAutoconfig } from "./sdk/runtime/runtime.js";
3
+ var callRuntimeMethod = function callRuntimeMethod(method) {
4
+ var runtime = getGlobalSyncTestRuntimeWithAutoconfig();
5
+
6
+ // @ts-ignore
7
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
8
+ args[_key - 1] = arguments[_key];
9
+ }
10
+ return runtime[method](...args);
11
+ };
12
+ export var label = (name, value) => {
13
+ return callRuntimeMethod("labels", {
14
+ name,
15
+ value
16
+ });
17
+ };
18
+ export var labels = function labels() {
19
+ for (var _len2 = arguments.length, labelsList = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
20
+ labelsList[_key2] = arguments[_key2];
21
+ }
22
+ return callRuntimeMethod("labels", ...labelsList);
23
+ };
24
+ export var link = (url, name, type) => {
25
+ return callRuntimeMethod("links", {
26
+ url,
27
+ type,
28
+ name
29
+ });
30
+ };
31
+ export var links = function links() {
32
+ for (var _len3 = arguments.length, linksList = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
33
+ linksList[_key3] = arguments[_key3];
34
+ }
35
+ return callRuntimeMethod("links", ...linksList);
36
+ };
37
+ export var parameter = (name, value, options) => {
38
+ return callRuntimeMethod("parameter", name, value, options);
39
+ };
40
+ export var description = markdown => {
41
+ return callRuntimeMethod("description", markdown);
42
+ };
43
+ export var descriptionHtml = html => {
44
+ return callRuntimeMethod("descriptionHtml", html);
45
+ };
46
+ export var displayName = name => {
47
+ return callRuntimeMethod("displayName", name);
48
+ };
49
+ export var historyId = value => {
50
+ return callRuntimeMethod("historyId", value);
51
+ };
52
+ export var testCaseId = value => {
53
+ return callRuntimeMethod("testCaseId", value);
54
+ };
55
+ export var attachment = (name, content, options) => {
56
+ var opts = typeof options === "string" ? {
57
+ contentType: options
58
+ } : options;
59
+ return callRuntimeMethod("attachment", name, content, opts);
60
+ };
61
+ export var globalAttachment = (name, content, options) => {
62
+ var opts = typeof options === "string" ? {
63
+ contentType: options
64
+ } : options;
65
+ return callRuntimeMethod("globalAttachment", name, content, opts);
66
+ };
67
+ export var globalAttachmentPath = (name, path, options) => {
68
+ var opts = typeof options === "string" ? {
69
+ contentType: options
70
+ } : options;
71
+ return callRuntimeMethod("globalAttachmentFromPath", name, path, opts);
72
+ };
73
+ export var globalError = details => {
74
+ return callRuntimeMethod("globalError", details);
75
+ };
76
+ export var attachTrace = (name, path) => {
77
+ return callRuntimeMethod("attachmentFromPath", name, path, {
78
+ contentType: "application/vnd.allure.playwright-trace"
79
+ });
80
+ };
81
+ export var attachmentPath = (name, path, options) => {
82
+ var opts = typeof options === "string" ? {
83
+ contentType: options
84
+ } : options;
85
+ return callRuntimeMethod("attachmentFromPath", name, path, opts);
86
+ };
87
+ var stepContext = () => ({
88
+ displayName: name => {
89
+ return callRuntimeMethod("stepDisplayName", name);
90
+ },
91
+ parameter: (name, value, mode) => {
92
+ return callRuntimeMethod("stepParameter", name, value, mode);
93
+ }
94
+ });
95
+ export var logStep = (name, status, error) => {
96
+ return callRuntimeMethod("logStep", name, status, error);
97
+ };
98
+ export var step = (name, body) => {
99
+ return callRuntimeMethod("step", name, () => body(stepContext()));
100
+ };
101
+ export var issue = (url, name) => link(url, name, LinkType.ISSUE);
102
+ export var tms = (url, name) => link(url, name, LinkType.TMS);
103
+ export var allureId = value => label(LabelName.ALLURE_ID, value);
104
+ export var epic = name => label(LabelName.EPIC, name);
105
+ export var feature = name => label(LabelName.FEATURE, name);
106
+ export var story = name => label(LabelName.STORY, name);
107
+ export var suite = name => label(LabelName.SUITE, name);
108
+ export var parentSuite = name => label(LabelName.PARENT_SUITE, name);
109
+ export var subSuite = name => label(LabelName.SUB_SUITE, name);
110
+ export var owner = name => label(LabelName.OWNER, name);
111
+ export var severity = name => label(LabelName.SEVERITY, name);
112
+ export var layer = name => label(LabelName.LAYER, name);
113
+ export var tag = name => label(LabelName.TAG, name);
114
+ export var tags = function tags() {
115
+ for (var _len4 = arguments.length, tagsList = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
116
+ tagsList[_key4] = arguments[_key4];
117
+ }
118
+ return callRuntimeMethod("labels", ...tagsList.map(value => ({
119
+ name: LabelName.TAG,
120
+ value
121
+ })));
122
+ };
123
+ //# sourceMappingURL=syncFacade.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syncFacade.js","names":["LabelName","LinkType","getGlobalSyncTestRuntimeWithAutoconfig","callRuntimeMethod","method","runtime","_len","arguments","length","args","Array","_key","label","name","value","labels","_len2","labelsList","_key2","link","url","type","links","_len3","linksList","_key3","parameter","options","description","markdown","descriptionHtml","html","displayName","historyId","testCaseId","attachment","content","opts","contentType","globalAttachment","globalAttachmentPath","path","globalError","details","attachTrace","attachmentPath","stepContext","mode","logStep","status","error","step","body","issue","ISSUE","tms","TMS","allureId","ALLURE_ID","epic","EPIC","feature","FEATURE","story","STORY","suite","SUITE","parentSuite","PARENT_SUITE","subSuite","SUB_SUITE","owner","OWNER","severity","SEVERITY","layer","LAYER","tag","TAG","tags","_len4","tagsList","_key4","map"],"sources":["../../src/syncFacade.ts"],"sourcesContent":["import type {\n AttachmentOptions,\n Label,\n Link,\n ParameterMode,\n ParameterOptions,\n Status,\n StatusDetails,\n} from \"./model.js\";\nimport { type ContentType, LabelName, LinkType } from \"./model.js\";\nimport { getGlobalSyncTestRuntimeWithAutoconfig } from \"./sdk/runtime/runtime.js\";\nimport type { SyncStepContext, SyncTestRuntime } from \"./sdk/runtime/types.js\";\n\nconst callRuntimeMethod = <\n T extends keyof SyncTestRuntime,\n S extends Parameters<SyncTestRuntime[T]>,\n R extends ReturnType<SyncTestRuntime[T]>,\n>(\n method: T,\n ...args: S\n): R => {\n const runtime = getGlobalSyncTestRuntimeWithAutoconfig();\n\n // @ts-ignore\n return runtime[method](...args);\n};\n\nexport const label = (name: LabelName | string, value: string) => {\n return callRuntimeMethod(\"labels\", { name, value });\n};\n\nexport const labels = (...labelsList: Label[]) => {\n return callRuntimeMethod(\"labels\", ...labelsList);\n};\n\nexport const link = (url: string, name?: string, type?: LinkType | string) => {\n return callRuntimeMethod(\"links\", { url, type, name });\n};\n\nexport const links = (...linksList: Link[]) => {\n return callRuntimeMethod(\"links\", ...linksList);\n};\n\nexport const parameter = (name: string, value: string, options?: ParameterOptions) => {\n return callRuntimeMethod(\"parameter\", name, value, options);\n};\n\nexport const description = (markdown: string) => {\n return callRuntimeMethod(\"description\", markdown);\n};\n\nexport const descriptionHtml = (html: string) => {\n return callRuntimeMethod(\"descriptionHtml\", html);\n};\n\nexport const displayName = (name: string) => {\n return callRuntimeMethod(\"displayName\", name);\n};\n\nexport const historyId = (value: string) => {\n return callRuntimeMethod(\"historyId\", value);\n};\n\nexport const testCaseId = (value: string) => {\n return callRuntimeMethod(\"testCaseId\", value);\n};\n\nexport const attachment = (\n name: string,\n content: Buffer | Uint8Array | string,\n options: ContentType | string | AttachmentOptions,\n) => {\n const opts = typeof options === \"string\" ? { contentType: options } : options;\n return callRuntimeMethod(\"attachment\", name, content, opts);\n};\n\nexport const globalAttachment = (\n name: string,\n content: Buffer | Uint8Array | string,\n options: ContentType | string | AttachmentOptions,\n) => {\n const opts = typeof options === \"string\" ? { contentType: options } : options;\n return callRuntimeMethod(\"globalAttachment\", name, content, opts);\n};\n\nexport const globalAttachmentPath = (\n name: string,\n path: string,\n options: ContentType | string | Omit<AttachmentOptions, \"encoding\">,\n) => {\n const opts = typeof options === \"string\" ? { contentType: options } : options;\n return callRuntimeMethod(\"globalAttachmentFromPath\", name, path, opts);\n};\n\nexport const globalError = (details: StatusDetails) => {\n return callRuntimeMethod(\"globalError\", details);\n};\n\nexport const attachTrace = (name: string, path: string) => {\n return callRuntimeMethod(\"attachmentFromPath\", name, path, {\n contentType: \"application/vnd.allure.playwright-trace\",\n });\n};\n\nexport const attachmentPath = (\n name: string,\n path: string,\n options: ContentType | string | Omit<AttachmentOptions, \"encoding\">,\n) => {\n const opts = typeof options === \"string\" ? { contentType: options } : options;\n return callRuntimeMethod(\"attachmentFromPath\", name, path, opts);\n};\n\nconst stepContext = (): SyncStepContext => ({\n displayName: (name: string) => {\n return callRuntimeMethod(\"stepDisplayName\", name);\n },\n parameter: (name, value, mode?: ParameterMode) => {\n return callRuntimeMethod(\"stepParameter\", name, value, mode);\n },\n});\n\nexport const logStep = (name: string, status?: Status, error?: Error): void => {\n return callRuntimeMethod(\"logStep\", name, status, error);\n};\n\nexport const step = <T = void>(name: string, body: (context: SyncStepContext) => T): T => {\n return callRuntimeMethod(\"step\", name, () => body(stepContext()));\n};\n\nexport const issue = (url: string, name?: string) => link(url, name, LinkType.ISSUE);\n\nexport const tms = (url: string, name?: string) => link(url, name, LinkType.TMS);\n\nexport const allureId = (value: string) => label(LabelName.ALLURE_ID, value);\n\nexport const epic = (name: string) => label(LabelName.EPIC, name);\n\nexport const feature = (name: string) => label(LabelName.FEATURE, name);\n\nexport const story = (name: string) => label(LabelName.STORY, name);\n\nexport const suite = (name: string) => label(LabelName.SUITE, name);\n\nexport const parentSuite = (name: string) => label(LabelName.PARENT_SUITE, name);\n\nexport const subSuite = (name: string) => label(LabelName.SUB_SUITE, name);\n\nexport const owner = (name: string) => label(LabelName.OWNER, name);\n\nexport const severity = (name: string) => label(LabelName.SEVERITY, name);\n\nexport const layer = (name: string) => label(LabelName.LAYER, name);\n\nexport const tag = (name: string) => label(LabelName.TAG, name);\n\nexport const tags = (...tagsList: string[]) => {\n return callRuntimeMethod(\n \"labels\",\n ...tagsList.map((value) => ({\n name: LabelName.TAG,\n value,\n })),\n );\n};\n"],"mappings":"AASA,SAA2BA,SAAS,EAAEC,QAAQ,QAAQ,YAAY;AAClE,SAASC,sCAAsC,QAAQ,0BAA0B;AAGjF,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAKrBC,MAAS,EAEH;EACN,IAAMC,OAAO,GAAGH,sCAAsC,CAAC,CAAC;;EAExD;EAAA,SAAAI,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAJGC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GA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AAK,CAACZ,SAAS,CAACsE,SAAS,EAAEzD,IAAI,CAAC;AAE1E,OAAO,IAAM0D,KAAK,GAAI1D,IAAY,IAAKD,KAAK,CAACZ,SAAS,CAACwE,KAAK,EAAE3D,IAAI,CAAC;AAEnE,OAAO,IAAM4D,QAAQ,GAAI5D,IAAY,IAAKD,KAAK,CAACZ,SAAS,CAAC0E,QAAQ,EAAE7D,IAAI,CAAC;AAEzE,OAAO,IAAM8D,KAAK,GAAI9D,IAAY,IAAKD,KAAK,CAACZ,SAAS,CAAC4E,KAAK,EAAE/D,IAAI,CAAC;AAEnE,OAAO,IAAMgE,GAAG,GAAIhE,IAAY,IAAKD,KAAK,CAACZ,SAAS,CAAC8E,GAAG,EAAEjE,IAAI,CAAC;AAE/D,OAAO,IAAMkE,IAAI,GAAG,SAAPA,IAAIA,CAAA,EAA8B;EAAA,SAAAC,KAAA,GAAAzE,SAAA,CAAAC,MAAA,EAAvByE,QAAQ,OAAAvE,KAAA,CAAAsE,KAAA,GAAAE,KAAA,MAAAA,KAAA,GAAAF,KAAA,EAAAE,KAAA;IAARD,QAAQ,CAAAC,KAAA,IAAA3E,SAAA,CAAA2E,KAAA;EAAA;EAC9B,OAAO/E,iBAAiB,CACtB,QAAQ,EACR,GAAG8E,QAAQ,CAACE,GAAG,CAAErE,KAAK,KAAM;IAC1BD,IAAI,EAAEb,SAAS,CAAC8E,GAAG;IACnBhE;EACF,CAAC,CAAC,CACJ,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1,9 +1,11 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
3
  import type { Status, StatusDetails } from "./model.js";
4
- import { type ContentType } from "./model.js";
5
- import { type AttachmentOptions, type Label, type Link, type ParameterMode, type ParameterOptions } from "./model.js";
4
+ import { ContentType } from "./model.js";
5
+ import { type AttachmentOptions, type Label, type Link, type ParameterOptions } from "./model.js";
6
6
  import { LabelName, LinkType } from "./model.js";
7
+ import type { StepContext } from "./sdk/runtime/types.js";
8
+ export type { StepContext } from "./sdk/runtime/types.js";
7
9
  export declare const label: (name: LabelName | string, value: string) => PromiseLike<void>;
8
10
  export declare const labels: (...labelsList: Label[]) => PromiseLike<void>;
9
11
  export declare const link: (url: string, name?: string, type?: LinkType | string) => PromiseLike<void>;
@@ -20,10 +22,6 @@ export declare const globalAttachmentPath: (name: string, path: string, options:
20
22
  export declare const globalError: (details: StatusDetails) => PromiseLike<void>;
21
23
  export declare const attachTrace: (name: string, path: string) => PromiseLike<void>;
22
24
  export declare const attachmentPath: (name: string, path: string, options: ContentType | string | Omit<AttachmentOptions, "encoding">) => PromiseLike<void>;
23
- export type StepContext = {
24
- displayName: (name: string) => void | PromiseLike<void>;
25
- parameter: (name: string, value: string, mode?: ParameterMode) => void | PromiseLike<void>;
26
- };
27
25
  export declare const logStep: (name: string, status?: Status, error?: Error) => PromiseLike<void>;
28
26
  export declare const step: <T = void>(name: string, body: (context: StepContext) => T | PromiseLike<T>) => PromiseLike<T>;
29
27
  export declare const issue: (url: string, name?: string) => PromiseLike<void>;
@@ -1,4 +1,4 @@
1
1
  export { allureId, attachment, attachmentPath, attachTrace, description, descriptionHtml, displayName, epic, feature, globalAttachment, globalAttachmentPath, globalError, historyId, issue, label, labels, layer, link, links, logStep, owner, parameter, parentSuite, severity, step, story, subSuite, suite, tag, tags, testCaseId, tms, } from "./facade.js";
2
- export type { StepContext } from "./facade.js";
2
+ export type { StepContext } from "./sdk/runtime/types.js";
3
3
  export type { Attachment, AttachmentOptions, FixtureResult, ImageDiffAttachment, Label, Link, Globals, Parameter, ParameterMode, ParameterOptions, StatusDetails, StepResult, TestOrStepResult, TestResult, TestResultContainer, } from "./model.js";
4
4
  export { ContentType, LinkType, LabelName, Severity, Stage, Status, StatusByPriority } from "./model.js";
@@ -142,7 +142,8 @@ export declare enum ContentType {
142
142
  WEBM = "video/webm",
143
143
  JPEG = "image/jpeg",
144
144
  MP4 = "video/mp4",
145
- IMAGEDIFF = "application/vnd.allure.image.diff"
145
+ IMAGEDIFF = "application/vnd.allure.image.diff",
146
+ PLAYWRIGHT_TRACE = "application/vnd.allure.playwright-trace"
146
147
  }
147
148
  export declare enum LinkType {
148
149
  DEFAULT = "link",
@@ -3,5 +3,6 @@ import { MessageTestRuntime } from "./MessageTestRuntime.js";
3
3
  export declare class MessageHolderTestRuntime extends MessageTestRuntime {
4
4
  private messagesHolder;
5
5
  sendMessage(message: RuntimeMessage): Promise<void>;
6
+ sendMessageSync(message: RuntimeMessage): void;
6
7
  messages(): RuntimeMessage[];
7
8
  }
@@ -2,8 +2,10 @@
2
2
  /// <reference types="node" />
3
3
  import { type AttachmentOptions, type Label, type LabelName, type Link, type LinkType, type ParameterMode, type ParameterOptions, Status, type StatusDetails } from "../../model.js";
4
4
  import type { RuntimeMessage } from "../types.js";
5
- import type { TestRuntime } from "./types.js";
5
+ import type { SyncTestRuntime, TestRuntime } from "./types.js";
6
6
  export declare abstract class BaseMessageTestRuntime implements TestRuntime {
7
+ private cachedSyncRuntime?;
8
+ get sync(): SyncTestRuntime | undefined;
7
9
  label(name: LabelName | string, value: string): Promise<void>;
8
10
  labels(...labels: Label[]): Promise<void>;
9
11
  link(url: string, type?: LinkType | string, name?: string): Promise<void>;
@@ -23,9 +25,16 @@ export declare abstract class BaseMessageTestRuntime implements TestRuntime {
23
25
  step<T = void>(name: string, body: () => T | PromiseLike<T>): Promise<T>;
24
26
  stepDisplayName(name: string): Promise<void>;
25
27
  stepParameter(name: string, value: string, mode?: ParameterMode): Promise<void>;
28
+ protected createSyncPromiseError(): Error;
29
+ protected createSyncRuntime(sendMessageSync: (message: RuntimeMessage) => void): SyncTestRuntime;
30
+ protected syncAttachment(_: (message: RuntimeMessage) => void, name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions): void;
31
+ protected syncGlobalAttachment(_: (message: RuntimeMessage) => void, name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions): void;
32
+ sendMessageSync?(message: RuntimeMessage): void;
26
33
  abstract sendMessage(message: RuntimeMessage): Promise<void>;
27
34
  }
28
35
  export declare abstract class MessageTestRuntime extends BaseMessageTestRuntime {
29
36
  attachment(name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions): Promise<void>;
30
37
  globalAttachment(name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions): Promise<void>;
38
+ protected syncAttachment(sendMessageSync: (message: RuntimeMessage) => void, name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions): void;
39
+ protected syncGlobalAttachment(sendMessageSync: (message: RuntimeMessage) => void, name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions): void;
31
40
  }
@@ -1,5 +1,54 @@
1
- import type { TestRuntime } from "./types.js";
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import type { SyncTestRuntime, TestRuntime } from "./types.js";
4
+ export declare const NOOP_RUNTIME_WARNING = "no test runtime is found. Please check test framework configuration";
5
+ export declare const NOOP_SYNC_RUNTIME_WARNING = "no sync test runtime is found. Please check test framework configuration and adapter sync support";
6
+ export declare const SYNC_STEP_PURE_FUNCTION_ERROR = "allure-js-commons/sync step body must be synchronous and must not return a Promise";
7
+ export declare class NoopSyncTestRuntime implements SyncTestRuntime {
8
+ attachment(_: string, __: Buffer | Uint8Array | string, ___: {
9
+ contentType: string;
10
+ }): void;
11
+ attachmentFromPath(_: string, __: string, ___: {
12
+ contentType: string;
13
+ }): void;
14
+ globalAttachment(_: string, __: Buffer | Uint8Array | string, ___: {
15
+ contentType: string;
16
+ }): void;
17
+ globalAttachmentFromPath(_: string, __: string, ___: {
18
+ contentType: string;
19
+ }): void;
20
+ globalError(_: {
21
+ message?: string;
22
+ trace?: string;
23
+ }): void;
24
+ description(_: string): void;
25
+ descriptionHtml(_: string): void;
26
+ displayName(_: string): void;
27
+ historyId(_: string): void;
28
+ labels(..._: {
29
+ name: string;
30
+ value: string;
31
+ }[]): void;
32
+ links(..._: {
33
+ url: string;
34
+ type?: string;
35
+ name?: string;
36
+ }[]): void;
37
+ parameter(_: string, __: string, ___?: {
38
+ excluded?: boolean;
39
+ mode?: string;
40
+ }): void;
41
+ logStep(_: string, __?: string, ___?: Error): void;
42
+ step<T>(_: string, body: () => T): T;
43
+ stepDisplayName(_: string): void;
44
+ stepParameter(_: string, __: string, ___?: string): void;
45
+ testCaseId(_: string): void;
46
+ warning(): void;
47
+ warnAboutPromiseStep(): void;
48
+ }
49
+ export declare const noopSyncRuntime: NoopSyncTestRuntime;
2
50
  export declare class NoopTestRuntime implements TestRuntime {
51
+ sync: NoopSyncTestRuntime;
3
52
  attachment(): Promise<void>;
4
53
  attachmentFromPath(): Promise<void>;
5
54
  globalAttachment(): Promise<void>;
@@ -13,7 +62,7 @@ export declare class NoopTestRuntime implements TestRuntime {
13
62
  links(): Promise<void>;
14
63
  parameter(): Promise<void>;
15
64
  logStep(): Promise<void>;
16
- step<T>(name: string, body: () => T | PromiseLike<T>): Promise<T>;
65
+ step<T>(_: string, body: () => T | PromiseLike<T>): Promise<T>;
17
66
  stepDisplayName(): Promise<void>;
18
67
  stepParameter(): Promise<void>;
19
68
  testCaseId(): Promise<void>;
@@ -1,4 +1,4 @@
1
- export { setGlobalTestRuntime, getGlobalTestRuntime, getGlobalTestRuntimeWithAutoconfig } from "./runtime.js";
2
- export type { TestRuntime } from "./types.js";
1
+ export { setGlobalTestRuntime, getGlobalTestRuntime, getGlobalSyncTestRuntime, getGlobalTestRuntimeWithAutoconfig, } from "./runtime.js";
2
+ export type { StepContext, SyncStepContext, SyncTestRuntime, TestRuntime } from "./types.js";
3
3
  export { BaseMessageTestRuntime, MessageTestRuntime } from "./MessageTestRuntime.js";
4
4
  export { MessageHolderTestRuntime } from "./MessageHolderTestRuntime.js";
@@ -1,4 +1,6 @@
1
- import type { TestRuntime } from "./types.js";
1
+ import type { SyncTestRuntime, TestRuntime } from "./types.js";
2
2
  export declare const setGlobalTestRuntime: (runtime: TestRuntime) => void;
3
3
  export declare const getGlobalTestRuntime: () => TestRuntime;
4
+ export declare const getGlobalSyncTestRuntime: () => SyncTestRuntime;
5
+ export declare const getGlobalSyncTestRuntimeWithAutoconfig: () => SyncTestRuntime;
4
6
  export declare const getGlobalTestRuntimeWithAutoconfig: () => TestRuntime | Promise<TestRuntime>;
@@ -1,6 +1,33 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
3
  import type { AttachmentOptions, Label, Link, ParameterMode, ParameterOptions, Status, StatusDetails } from "../../model.js";
4
+ export interface StepContext {
5
+ displayName: (name: string) => void | PromiseLike<void>;
6
+ parameter: (name: string, value: string, mode?: ParameterMode) => void | PromiseLike<void>;
7
+ }
8
+ export interface SyncStepContext {
9
+ displayName: (name: string) => void;
10
+ parameter: (name: string, value: string, mode?: ParameterMode) => void;
11
+ }
12
+ export interface SyncTestRuntime {
13
+ labels: (...labels: Label[]) => void;
14
+ links: (...links: Link[]) => void;
15
+ parameter: (name: string, value: string, options?: ParameterOptions) => void;
16
+ description: (markdown: string) => void;
17
+ descriptionHtml: (html: string) => void;
18
+ displayName: (name: string) => void;
19
+ historyId: (value: string) => void;
20
+ testCaseId: (value: string) => void;
21
+ attachment: (name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions) => void;
22
+ globalAttachment: (name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions) => void;
23
+ globalAttachmentFromPath: (name: string, path: string, options: Omit<AttachmentOptions, "encoding">) => void;
24
+ globalError: (details: StatusDetails) => void;
25
+ attachmentFromPath: (name: string, path: string, options: Omit<AttachmentOptions, "encoding">) => void;
26
+ logStep: (name: string, status?: Status, error?: Error) => void;
27
+ step: <T = void>(name: string, body: () => T) => T;
28
+ stepDisplayName: (name: string) => void;
29
+ stepParameter: (name: string, value: string, mode?: ParameterMode) => void;
30
+ }
4
31
  export interface TestRuntime {
5
32
  labels: (...labels: Label[]) => PromiseLike<void>;
6
33
  links: (...links: Link[]) => PromiseLike<void>;
@@ -19,4 +46,5 @@ export interface TestRuntime {
19
46
  step: <T = void>(name: string, body: () => T | PromiseLike<T>) => PromiseLike<T>;
20
47
  stepDisplayName: (name: string) => PromiseLike<void>;
21
48
  stepParameter: (name: string, value: string, mode?: ParameterMode) => PromiseLike<void>;
49
+ sync?: SyncTestRuntime;
22
50
  }
@@ -0,0 +1,4 @@
1
+ export { allureId, attachment, attachmentPath, attachTrace, description, descriptionHtml, displayName, epic, feature, globalAttachment, globalAttachmentPath, globalError, historyId, issue, label, labels, layer, link, links, logStep, owner, parameter, parentSuite, severity, step, story, subSuite, suite, tag, tags, testCaseId, tms, } from "./syncFacade.js";
2
+ export type { SyncStepContext } from "./sdk/runtime/types.js";
3
+ export type { Attachment, AttachmentOptions, FixtureResult, Globals, ImageDiffAttachment, Label, Link, Parameter, ParameterMode, ParameterOptions, StatusDetails, StepResult, TestOrStepResult, TestResult, TestResultContainer, } from "./model.js";
4
+ export { ContentType, LabelName, LinkType, Severity, Stage, Status, StatusByPriority } from "./model.js";
@@ -0,0 +1,37 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import type { AttachmentOptions, Label, Link, ParameterOptions, Status, StatusDetails } from "./model.js";
4
+ import { type ContentType, LabelName, LinkType } from "./model.js";
5
+ import type { SyncStepContext } from "./sdk/runtime/types.js";
6
+ export declare const label: (name: LabelName | string, value: string) => void;
7
+ export declare const labels: (...labelsList: Label[]) => void;
8
+ export declare const link: (url: string, name?: string, type?: LinkType | string) => void;
9
+ export declare const links: (...linksList: Link[]) => void;
10
+ export declare const parameter: (name: string, value: string, options?: ParameterOptions) => void;
11
+ export declare const description: (markdown: string) => void;
12
+ export declare const descriptionHtml: (html: string) => void;
13
+ export declare const displayName: (name: string) => void;
14
+ export declare const historyId: (value: string) => void;
15
+ export declare const testCaseId: (value: string) => void;
16
+ export declare const attachment: (name: string, content: Buffer | Uint8Array | string, options: ContentType | string | AttachmentOptions) => void;
17
+ export declare const globalAttachment: (name: string, content: Buffer | Uint8Array | string, options: ContentType | string | AttachmentOptions) => void;
18
+ export declare const globalAttachmentPath: (name: string, path: string, options: ContentType | string | Omit<AttachmentOptions, "encoding">) => void;
19
+ export declare const globalError: (details: StatusDetails) => void;
20
+ export declare const attachTrace: (name: string, path: string) => void;
21
+ export declare const attachmentPath: (name: string, path: string, options: ContentType | string | Omit<AttachmentOptions, "encoding">) => void;
22
+ export declare const logStep: (name: string, status?: Status, error?: Error) => void;
23
+ export declare const step: <T = void>(name: string, body: (context: SyncStepContext) => T) => T;
24
+ export declare const issue: (url: string, name?: string) => void;
25
+ export declare const tms: (url: string, name?: string) => void;
26
+ export declare const allureId: (value: string) => void;
27
+ export declare const epic: (name: string) => void;
28
+ export declare const feature: (name: string) => void;
29
+ export declare const story: (name: string) => void;
30
+ export declare const suite: (name: string) => void;
31
+ export declare const parentSuite: (name: string) => void;
32
+ export declare const subSuite: (name: string) => void;
33
+ export declare const owner: (name: string) => void;
34
+ export declare const severity: (name: string) => void;
35
+ export declare const layer: (name: string) => void;
36
+ export declare const tag: (name: string) => void;
37
+ export declare const tags: (...tagsList: string[]) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allure-js-commons",
3
- "version": "3.7.1",
3
+ "version": "3.8.0",
4
4
  "description": "Allure JS Commons",
5
5
  "keywords": [
6
6
  "allure",
@@ -45,6 +45,12 @@
45
45
  "require": "./dist/cjs/index.js",
46
46
  "default": "./dist/cjs/index.js"
47
47
  },
48
+ "./sync": {
49
+ "types": "./dist/types/sync.d.ts",
50
+ "import": "./dist/esm/sync.js",
51
+ "require": "./dist/cjs/sync.js",
52
+ "default": "./dist/cjs/sync.js"
53
+ },
48
54
  "./sdk": {
49
55
  "types": "./dist/types/sdk/index.d.ts",
50
56
  "import": "./dist/esm/sdk/index.js",
@@ -94,7 +100,7 @@
94
100
  "vitest": "^4.0.18"
95
101
  },
96
102
  "peerDependencies": {
97
- "allure-playwright": "3.7.1"
103
+ "allure-playwright": "3.8.0"
98
104
  },
99
105
  "peerDependenciesMeta": {
100
106
  "allure-playwright": {