@teambit/multi-tester 1.0.257 → 1.0.259

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.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.defender/multi-tester@1.0.257" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.defender/multi-tester@1.0.259" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.defender/multi-tester-preview"]=t():e["teambit.defender/multi-tester-preview"]=t()}(self,(()=>(()=>{"use strict";var e={3403:(e,t,n)=>{Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return r.default}});var r=o(n(2555));function o(e){return e&&e.__esModule?e:{default:e}}o.__bit_component={id:"teambit.defender/content/tester-overview@1.95.0",homepage:"https://bit.dev/teambit/defender/content/tester-overview",exported:!0}},2555:(e,t,n)=>{var r={id:"teambit.defender/content/tester-overview@1.95.0",homepage:"https://bit.dev/teambit/defender/content/tester-overview",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=u,s(n(41594));var o=n(5016),i=n(65682),a=["components"];function s(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,o=l(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}s.__bit_component=r,p.__bit_component=r,d.__bit_component=r,l.__bit_component=r;var m={},c="wrapper";function u(e){var t=e.components,n=d(e,a);return(0,o.mdx)(c,p({},m,n,{components:t,mdxType:"MDXLayout"}),(0,o.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,o.mdx)("h1",null,"Tester Overview"),(0,o.mdx)("p",null,"The ",(0,o.mdx)("em",{parentName:"p"},"Tester")," provides a unified interface for testing components regardless of the specific tester they use."),(0,o.mdx)("p",null,"Software testing is a way to validate that an application or a module of it, behaves as expected."),(0,o.mdx)("p",null,"Web applications and services are often tested using a set of testing tools, where each tool plays a different role. For example, ",(0,o.mdx)("a",{parentName:"p",href:"https://jestjs.io/"},"Jest")," can be used as a test runner and as an assertion library, while ",(0,o.mdx)("a",{parentName:"p",href:"https://testing-library.com/"},"React Testing Library")," can be used for testing utilities."),(0,o.mdx)("p",null,"The Tester aspect is responsible for standardizing test execution for components; That is, it standardizes the way test runners are used. Other testing libraries used for utils, mocks, etc., are irrelevant, in that sense."),(0,o.mdx)("p",null,"Standardization is done for component testing during development (in the workspace) as well as for distribution (in a capsule ",", as part of the component ",(0,o.mdx)("a",{parentName:"p",href:"/builder/build-pipelines"},"build pipeline"),")."),(0,o.mdx)("h2",null,"Testing in development"),(0,o.mdx)("p",null,"Bit tests all components in the ",(0,o.mdx)("a",{parentName:"p",href:"/workspace/overview"},"Workspace")," using just a single command. That is true for components of all types, regardless of their specific ",(0,o.mdx)("a",{parentName:"p",href:"/envs/overview"},"Env"),", and as a consequence of that, their specific ",(0,o.mdx)("a",{parentName:"p",href:"/tester/overview"},"Tester implementation")," and configuration."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-bash"},"bit test\n")),(0,o.mdx)("p",null,"Components can be watched for changes and retested with a single command, as well."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-bash"},"bit test -w\n")),(0,o.mdx)("p",null,"To learn more on testing during development, please refer to ",(0,o.mdx)("a",{parentName:"p",href:"/tester/workspace-testing"},"Workspace Testing"),"."),(0,o.mdx)("h2",null,"Testing during build"),(0,o.mdx)("p",null,"Testing components for distribution is done during ",(0,o.mdx)("inlineCode",{parentName:"p"},"build")," by the Bit ",(0,o.mdx)("a",{parentName:"p",href:"/builder/overview"},"Builder"),"."),(0,o.mdx)("p",null,"Component build can be simulated with ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit build")," and done through ",(0,o.mdx)("a",{parentName:"p",href:"/components/tags"},"Tag")," or ",(0,o.mdx)("a",{parentName:"p",href:"/components/snaps"},"Snap")),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-bash"},"bit build\n")),(0,o.mdx)("p",null,"By default, Bit's pre-configured Envs includes a ",(0,o.mdx)("a",{parentName:"p",href:"/builder/overview#build-task"},"Build Task")," for testing components in the ",(0,o.mdx)("a",{parentName:"p",href:"/builder/build-pipelines"},"Build Pipeline"),", each using the Env's specific test configs."),(0,o.mdx)("p",null,"Testing during build provides the highest \"external validity\" by running tests on the distributable code that was generated by the Env's compiler and not by the tester's.\nThat way, the exact same code that will be consumed by other components, is tested before it is released. Moreover, since each component is tested in a capsule ",", isolated from the rest of the workspace, tests are guaranteed to provide results that are context-agnostic and free of false-positives."),(0,o.mdx)("h2",null,"Configuring and implementing Testers"),(0,o.mdx)("p",null,"Testers are configured in the ",(0,o.mdx)("a",{parentName:"p",href:"/envs/overview"},"Env")," which is configured on your ",(0,o.mdx)("a",{parentName:"p",href:"/components/overview"},"Component"),". Customizing the Tester can be done by ",(0,o.mdx)("a",{parentName:"p",href:"/envs/services/testing"},"customizing an existing env with your tester")," or by ",(0,o.mdx)("a",{parentName:"p",href:"/envs/customizing-env"},"implementing your own Env"),"."),(0,o.mdx)("p",null,"Tester can also be implemented into Bit through few interfaces. \x3c!--TODO For more information on implementing your own compiler please refer to ",(0,o.mdx)("a",{parentName:"p",href:"/"},"Implement a Compiler"),".")))}u.__bit_component=r,u.isMDXComponent=!0},20113:(e,t,n)=>{var r={id:"teambit.defender/multi-tester@1.0.257",homepage:"https://bit.cloud/teambit/defender/multi-tester",exported:!0};function o(){const e=i(n(41594));return o=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,o.__bit_component=r,i.__bit_component=r;const a=()=>o().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},o().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/tester.svg"}));a.__bit_component=r,t.Logo=a},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React},65682:e=>{e.exports=TeambitMdxUiMdxScopeContext}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{compositions:()=>c,compositions_metadata:()=>f,overview:()=>u});var e={};n.r(e),n.d(e,{default:()=>m});var t=n(20113),o=(n(41594),n(5016)),i=n(65682),a=n(3403),s=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}var d={},l="wrapper";function m(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s);return(0,o.mdx)(l,p({},d,n,{components:t,mdxType:"MDXLayout"}),(0,o.mdx)(i.MDXScopeProvider,{components:{TesterOverview:a.Ay},mdxType:"MDXScopeProvider"},(0,o.mdx)(a.Ay,{mdxType:"TesterOverview"})))}m.isMDXComponent=!0;const c=[t],u=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.defender/multi-tester-preview"]=t():e["teambit.defender/multi-tester-preview"]=t()}(self,(()=>(()=>{"use strict";var e={3403:(e,t,n)=>{Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return r.default}});var r=o(n(2555));function o(e){return e&&e.__esModule?e:{default:e}}o.__bit_component={id:"teambit.defender/content/tester-overview@1.95.0",homepage:"https://bit.dev/teambit/defender/content/tester-overview",exported:!0}},2555:(e,t,n)=>{var r={id:"teambit.defender/content/tester-overview@1.95.0",homepage:"https://bit.dev/teambit/defender/content/tester-overview",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=u,s(n(41594));var o=n(5016),i=n(65682),a=["components"];function s(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,o=l(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}s.__bit_component=r,p.__bit_component=r,d.__bit_component=r,l.__bit_component=r;var m={},c="wrapper";function u(e){var t=e.components,n=d(e,a);return(0,o.mdx)(c,p({},m,n,{components:t,mdxType:"MDXLayout"}),(0,o.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,o.mdx)("h1",null,"Tester Overview"),(0,o.mdx)("p",null,"The ",(0,o.mdx)("em",{parentName:"p"},"Tester")," provides a unified interface for testing components regardless of the specific tester they use."),(0,o.mdx)("p",null,"Software testing is a way to validate that an application or a module of it, behaves as expected."),(0,o.mdx)("p",null,"Web applications and services are often tested using a set of testing tools, where each tool plays a different role. For example, ",(0,o.mdx)("a",{parentName:"p",href:"https://jestjs.io/"},"Jest")," can be used as a test runner and as an assertion library, while ",(0,o.mdx)("a",{parentName:"p",href:"https://testing-library.com/"},"React Testing Library")," can be used for testing utilities."),(0,o.mdx)("p",null,"The Tester aspect is responsible for standardizing test execution for components; That is, it standardizes the way test runners are used. Other testing libraries used for utils, mocks, etc., are irrelevant, in that sense."),(0,o.mdx)("p",null,"Standardization is done for component testing during development (in the workspace) as well as for distribution (in a capsule ",", as part of the component ",(0,o.mdx)("a",{parentName:"p",href:"/builder/build-pipelines"},"build pipeline"),")."),(0,o.mdx)("h2",null,"Testing in development"),(0,o.mdx)("p",null,"Bit tests all components in the ",(0,o.mdx)("a",{parentName:"p",href:"/workspace/overview"},"Workspace")," using just a single command. That is true for components of all types, regardless of their specific ",(0,o.mdx)("a",{parentName:"p",href:"/envs/overview"},"Env"),", and as a consequence of that, their specific ",(0,o.mdx)("a",{parentName:"p",href:"/tester/overview"},"Tester implementation")," and configuration."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-bash"},"bit test\n")),(0,o.mdx)("p",null,"Components can be watched for changes and retested with a single command, as well."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-bash"},"bit test -w\n")),(0,o.mdx)("p",null,"To learn more on testing during development, please refer to ",(0,o.mdx)("a",{parentName:"p",href:"/tester/workspace-testing"},"Workspace Testing"),"."),(0,o.mdx)("h2",null,"Testing during build"),(0,o.mdx)("p",null,"Testing components for distribution is done during ",(0,o.mdx)("inlineCode",{parentName:"p"},"build")," by the Bit ",(0,o.mdx)("a",{parentName:"p",href:"/builder/overview"},"Builder"),"."),(0,o.mdx)("p",null,"Component build can be simulated with ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit build")," and done through ",(0,o.mdx)("a",{parentName:"p",href:"/components/tags"},"Tag")," or ",(0,o.mdx)("a",{parentName:"p",href:"/components/snaps"},"Snap")),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-bash"},"bit build\n")),(0,o.mdx)("p",null,"By default, Bit's pre-configured Envs includes a ",(0,o.mdx)("a",{parentName:"p",href:"/builder/overview#build-task"},"Build Task")," for testing components in the ",(0,o.mdx)("a",{parentName:"p",href:"/builder/build-pipelines"},"Build Pipeline"),", each using the Env's specific test configs."),(0,o.mdx)("p",null,"Testing during build provides the highest \"external validity\" by running tests on the distributable code that was generated by the Env's compiler and not by the tester's.\nThat way, the exact same code that will be consumed by other components, is tested before it is released. Moreover, since each component is tested in a capsule ",", isolated from the rest of the workspace, tests are guaranteed to provide results that are context-agnostic and free of false-positives."),(0,o.mdx)("h2",null,"Configuring and implementing Testers"),(0,o.mdx)("p",null,"Testers are configured in the ",(0,o.mdx)("a",{parentName:"p",href:"/envs/overview"},"Env")," which is configured on your ",(0,o.mdx)("a",{parentName:"p",href:"/components/overview"},"Component"),". Customizing the Tester can be done by ",(0,o.mdx)("a",{parentName:"p",href:"/envs/services/testing"},"customizing an existing env with your tester")," or by ",(0,o.mdx)("a",{parentName:"p",href:"/envs/customizing-env"},"implementing your own Env"),"."),(0,o.mdx)("p",null,"Tester can also be implemented into Bit through few interfaces. \x3c!--TODO For more information on implementing your own compiler please refer to ",(0,o.mdx)("a",{parentName:"p",href:"/"},"Implement a Compiler"),".")))}u.__bit_component=r,u.isMDXComponent=!0},6519:(e,t,n)=>{var r={id:"teambit.defender/multi-tester@1.0.259",homepage:"https://bit.cloud/teambit/defender/multi-tester",exported:!0};function o(){const e=i(n(41594));return o=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,o.__bit_component=r,i.__bit_component=r;const a=()=>o().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},o().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/tester.svg"}));a.__bit_component=r,t.Logo=a},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React},65682:e=>{e.exports=TeambitMdxUiMdxScopeContext}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{compositions:()=>c,compositions_metadata:()=>f,overview:()=>u});var e={};n.r(e),n.d(e,{default:()=>m});var t=n(6519),o=(n(41594),n(5016)),i=n(65682),a=n(3403),s=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}var d={},l="wrapper";function m(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s);return(0,o.mdx)(l,p({},d,n,{components:t,mdxType:"MDXLayout"}),(0,o.mdx)(i.MDXScopeProvider,{components:{TesterOverview:a.Ay},mdxType:"MDXScopeProvider"},(0,o.mdx)(a.Ay,{mdxType:"TesterOverview"})))}m.isMDXComponent=!0;const c=[t],u=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
@@ -14,481 +14,508 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "VariableLikeSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "multi-tester.aspect.ts",
19
+ "filePath": "index.ts",
20
20
  "line": 3,
21
- "character": 14
21
+ "character": 10
22
22
  },
23
- "signature": "const MultiTesterAspect: Aspect",
24
23
  "name": "MultiTesterAspect",
25
- "type": {
26
- "__schema": "TypeRefSchema",
24
+ "exportNode": {
25
+ "__schema": "VariableLikeSchema",
27
26
  "location": {
28
27
  "filePath": "multi-tester.aspect.ts",
29
28
  "line": 3,
30
29
  "character": 14
31
30
  },
32
- "name": "Aspect",
33
- "componentId": {
34
- "scope": "teambit.harmony",
35
- "name": "harmony",
36
- "version": "0.4.6"
37
- }
38
- },
39
- "isOptional": false,
40
- "defaultValue": "Aspect.create({\n id: 'teambit.defender/multi-tester',\n})"
31
+ "signature": "const MultiTesterAspect: Aspect",
32
+ "name": "MultiTesterAspect",
33
+ "type": {
34
+ "__schema": "TypeRefSchema",
35
+ "location": {
36
+ "filePath": "multi-tester.aspect.ts",
37
+ "line": 3,
38
+ "character": 14
39
+ },
40
+ "name": "Aspect",
41
+ "componentId": {
42
+ "scope": "teambit.harmony",
43
+ "name": "harmony",
44
+ "version": "0.4.6"
45
+ }
46
+ },
47
+ "isOptional": false,
48
+ "defaultValue": "Aspect.create({\n id: 'teambit.defender/multi-tester',\n})"
49
+ }
41
50
  },
42
51
  {
43
- "__schema": "ClassSchema",
52
+ "__schema": "ExportSchema",
44
53
  "location": {
45
- "filePath": "multi-tester.main.runtime.ts",
46
- "line": 6,
47
- "character": 1
54
+ "filePath": "index.ts",
55
+ "line": 4,
56
+ "character": 15
48
57
  },
49
- "signature": "class MultiTesterMain",
50
58
  "name": "MultiTesterMain",
51
- "members": [
52
- {
53
- "__schema": "FunctionLikeSchema",
54
- "location": {
55
- "filePath": "multi-tester.main.runtime.ts",
56
- "line": 11,
57
- "character": 3
58
- },
59
- "doc": {
60
- "__schema": "DocSchema",
59
+ "exportNode": {
60
+ "__schema": "ClassSchema",
61
+ "location": {
62
+ "filePath": "multi-tester.main.runtime.ts",
63
+ "line": 6,
64
+ "character": 1
65
+ },
66
+ "signature": "class MultiTesterMain",
67
+ "name": "MultiTesterMain",
68
+ "members": [
69
+ {
70
+ "__schema": "FunctionLikeSchema",
61
71
  "location": {
62
72
  "filePath": "multi-tester.main.runtime.ts",
63
- "line": 7,
73
+ "line": 11,
64
74
  "character": 3
65
75
  },
66
- "raw": "/**\n * create a multi-tester `Tester` instance.\n * @param testers list of testers to include.\n */",
67
- "comment": "create a multi-tester `Tester` instance.",
68
- "tags": [
69
- {
70
- "__schema": "PropertyLikeTagSchema",
71
- "location": {
72
- "filePath": "multi-tester.main.runtime.ts",
73
- "line": 9,
74
- "character": 6
75
- },
76
- "name": "testers",
77
- "tagName": "parameter",
78
- "comment": "list of testers to include."
79
- }
80
- ]
81
- },
82
- "signature": "(method) MultiTesterMain.createTester(testers: Tester[]): MultiTester",
83
- "name": "createTester",
84
- "params": [
85
- {
86
- "__schema": "ParameterSchema",
76
+ "doc": {
77
+ "__schema": "DocSchema",
87
78
  "location": {
88
79
  "filePath": "multi-tester.main.runtime.ts",
89
- "line": 11,
90
- "character": 16
80
+ "line": 7,
81
+ "character": 3
91
82
  },
92
- "name": "testers",
93
- "type": {
94
- "__schema": "TypeArraySchema",
83
+ "raw": "/**\n * create a multi-tester `Tester` instance.\n * @param testers list of testers to include.\n */",
84
+ "comment": "create a multi-tester `Tester` instance.",
85
+ "tags": [
86
+ {
87
+ "__schema": "PropertyLikeTagSchema",
88
+ "location": {
89
+ "filePath": "multi-tester.main.runtime.ts",
90
+ "line": 9,
91
+ "character": 6
92
+ },
93
+ "name": "testers",
94
+ "tagName": "parameter",
95
+ "comment": "list of testers to include."
96
+ }
97
+ ]
98
+ },
99
+ "signature": "(method) MultiTesterMain.createTester(testers: Tester[]): MultiTester",
100
+ "name": "createTester",
101
+ "params": [
102
+ {
103
+ "__schema": "ParameterSchema",
95
104
  "location": {
96
105
  "filePath": "multi-tester.main.runtime.ts",
97
106
  "line": 11,
98
- "character": 25
107
+ "character": 16
99
108
  },
109
+ "name": "testers",
100
110
  "type": {
101
- "__schema": "TypeRefSchema",
111
+ "__schema": "TypeArraySchema",
102
112
  "location": {
103
113
  "filePath": "multi-tester.main.runtime.ts",
104
114
  "line": 11,
105
115
  "character": 25
106
116
  },
107
- "name": "Tester",
108
- "componentId": {
109
- "scope": "teambit.defender",
110
- "name": "tester"
117
+ "type": {
118
+ "__schema": "TypeRefSchema",
119
+ "location": {
120
+ "filePath": "multi-tester.main.runtime.ts",
121
+ "line": 11,
122
+ "character": 25
123
+ },
124
+ "name": "Tester",
125
+ "componentId": {
126
+ "scope": "teambit.defender",
127
+ "name": "tester"
128
+ }
111
129
  }
112
- }
130
+ },
131
+ "isOptional": false,
132
+ "isSpread": false
133
+ }
134
+ ],
135
+ "returnType": {
136
+ "__schema": "TypeRefSchema",
137
+ "location": {
138
+ "filePath": "multi-tester.main.runtime.ts",
139
+ "line": 11,
140
+ "character": 3
113
141
  },
114
- "isOptional": false,
115
- "isSpread": false
116
- }
117
- ],
118
- "returnType": {
119
- "__schema": "TypeRefSchema",
120
- "location": {
121
- "filePath": "multi-tester.main.runtime.ts",
122
- "line": 11,
123
- "character": 3
142
+ "name": "MultiTester"
124
143
  },
125
- "name": "MultiTester"
126
- },
127
- "modifiers": []
128
- },
129
- {
130
- "__schema": "VariableLikeSchema",
131
- "location": {
132
- "filePath": "multi-tester.main.runtime.ts",
133
- "line": 15,
134
- "character": 3
144
+ "modifiers": []
135
145
  },
136
- "signature": "(property) MultiTesterMain.runtime: RuntimeDefinition",
137
- "name": "runtime",
138
- "type": {
139
- "__schema": "InferenceTypeSchema",
146
+ {
147
+ "__schema": "VariableLikeSchema",
140
148
  "location": {
141
149
  "filePath": "multi-tester.main.runtime.ts",
142
150
  "line": 15,
143
151
  "character": 3
144
152
  },
145
- "type": "RuntimeDefinition"
146
- },
147
- "isOptional": true,
148
- "defaultValue": "MainRuntime"
149
- },
150
- {
151
- "__schema": "FunctionLikeSchema",
152
- "location": {
153
- "filePath": "multi-tester.main.runtime.ts",
154
- "line": 17,
155
- "character": 3
153
+ "signature": "(property) MultiTesterMain.runtime: RuntimeDefinition",
154
+ "name": "runtime",
155
+ "type": {
156
+ "__schema": "InferenceTypeSchema",
157
+ "location": {
158
+ "filePath": "multi-tester.main.runtime.ts",
159
+ "line": 15,
160
+ "character": 3
161
+ },
162
+ "type": "RuntimeDefinition"
163
+ },
164
+ "isOptional": true,
165
+ "defaultValue": "MainRuntime"
156
166
  },
157
- "signature": "(method) MultiTesterMain.provider(): Promise<MultiTesterMain>",
158
- "name": "provider",
159
- "params": [],
160
- "returnType": {
161
- "__schema": "InferenceTypeSchema",
167
+ {
168
+ "__schema": "FunctionLikeSchema",
162
169
  "location": {
163
170
  "filePath": "multi-tester.main.runtime.ts",
164
171
  "line": 17,
165
172
  "character": 3
166
173
  },
167
- "type": "Promise<MultiTesterMain>"
168
- },
169
- "modifiers": [
170
- "static",
171
- "async"
172
- ]
173
- }
174
- ],
175
- "extendsNodes": [],
176
- "implementNodes": []
174
+ "signature": "(method) MultiTesterMain.provider(): Promise<MultiTesterMain>",
175
+ "name": "provider",
176
+ "params": [],
177
+ "returnType": {
178
+ "__schema": "InferenceTypeSchema",
179
+ "location": {
180
+ "filePath": "multi-tester.main.runtime.ts",
181
+ "line": 17,
182
+ "character": 3
183
+ },
184
+ "type": "Promise<MultiTesterMain>"
185
+ },
186
+ "modifiers": [
187
+ "static",
188
+ "async"
189
+ ]
190
+ }
191
+ ],
192
+ "extendsNodes": [],
193
+ "implementNodes": []
194
+ }
177
195
  },
178
196
  {
179
- "__schema": "ClassSchema",
197
+ "__schema": "ExportSchema",
180
198
  "location": {
181
- "filePath": "multi-tester.tester.ts",
182
- "line": 10,
183
- "character": 1
199
+ "filePath": "index.ts",
200
+ "line": 5,
201
+ "character": 15
184
202
  },
185
- "signature": "class MultiTester",
186
203
  "name": "MultiTester",
187
- "members": [
188
- {
189
- "__schema": "VariableLikeSchema",
190
- "location": {
191
- "filePath": "multi-tester.tester.ts",
192
- "line": 11,
193
- "character": 3
194
- },
195
- "signature": "(property) MultiTester.displayName: string",
196
- "name": "displayName",
197
- "type": {
198
- "__schema": "InferenceTypeSchema",
204
+ "exportNode": {
205
+ "__schema": "ClassSchema",
206
+ "location": {
207
+ "filePath": "multi-tester.tester.ts",
208
+ "line": 10,
209
+ "character": 1
210
+ },
211
+ "signature": "class MultiTester",
212
+ "name": "MultiTester",
213
+ "members": [
214
+ {
215
+ "__schema": "VariableLikeSchema",
199
216
  "location": {
200
217
  "filePath": "multi-tester.tester.ts",
201
218
  "line": 11,
202
219
  "character": 3
203
220
  },
204
- "type": "string"
205
- },
206
- "isOptional": true,
207
- "defaultValue": "'Multi tester'"
208
- },
209
- {
210
- "__schema": "ConstructorSchema",
211
- "location": {
212
- "filePath": "multi-tester.tester.ts",
213
- "line": 13,
214
- "character": 3
215
- },
216
- "signature": "constructor MultiTester(id: string, testers: Tester[]): MultiTester",
217
- "name": "constructor",
218
- "params": [
219
- {
220
- "__schema": "ParameterSchema",
221
+ "signature": "(property) MultiTester.displayName: string",
222
+ "name": "displayName",
223
+ "type": {
224
+ "__schema": "InferenceTypeSchema",
221
225
  "location": {
222
226
  "filePath": "multi-tester.tester.ts",
223
- "line": 13,
224
- "character": 15
227
+ "line": 11,
228
+ "character": 3
225
229
  },
226
- "name": "id",
227
- "type": {
228
- "__schema": "KeywordTypeSchema",
230
+ "type": "string"
231
+ },
232
+ "isOptional": true,
233
+ "defaultValue": "'Multi tester'"
234
+ },
235
+ {
236
+ "__schema": "ConstructorSchema",
237
+ "location": {
238
+ "filePath": "multi-tester.tester.ts",
239
+ "line": 13,
240
+ "character": 3
241
+ },
242
+ "signature": "constructor MultiTester(id: string, testers: Tester[]): MultiTester",
243
+ "name": "constructor",
244
+ "params": [
245
+ {
246
+ "__schema": "ParameterSchema",
229
247
  "location": {
230
248
  "filePath": "multi-tester.tester.ts",
231
249
  "line": 13,
232
- "character": 28
250
+ "character": 15
233
251
  },
234
- "name": "string"
235
- },
236
- "isOptional": false,
237
- "isSpread": false
238
- },
239
- {
240
- "__schema": "ParameterSchema",
241
- "location": {
242
- "filePath": "multi-tester.tester.ts",
243
- "line": 13,
244
- "character": 36
252
+ "name": "id",
253
+ "type": {
254
+ "__schema": "KeywordTypeSchema",
255
+ "location": {
256
+ "filePath": "multi-tester.tester.ts",
257
+ "line": 13,
258
+ "character": 28
259
+ },
260
+ "name": "string"
261
+ },
262
+ "isOptional": false,
263
+ "isSpread": false
245
264
  },
246
- "name": "testers",
247
- "type": {
248
- "__schema": "TypeArraySchema",
265
+ {
266
+ "__schema": "ParameterSchema",
249
267
  "location": {
250
268
  "filePath": "multi-tester.tester.ts",
251
269
  "line": 13,
252
- "character": 54
270
+ "character": 36
253
271
  },
272
+ "name": "testers",
254
273
  "type": {
255
- "__schema": "TypeRefSchema",
274
+ "__schema": "TypeArraySchema",
256
275
  "location": {
257
276
  "filePath": "multi-tester.tester.ts",
258
277
  "line": 13,
259
278
  "character": 54
260
279
  },
261
- "name": "Tester",
262
- "componentId": {
263
- "scope": "teambit.defender",
264
- "name": "tester"
280
+ "type": {
281
+ "__schema": "TypeRefSchema",
282
+ "location": {
283
+ "filePath": "multi-tester.tester.ts",
284
+ "line": 13,
285
+ "character": 54
286
+ },
287
+ "name": "Tester",
288
+ "componentId": {
289
+ "scope": "teambit.defender",
290
+ "name": "tester"
291
+ }
265
292
  }
266
- }
293
+ },
294
+ "isOptional": false,
295
+ "isSpread": false
296
+ }
297
+ ],
298
+ "returnType": {
299
+ "__schema": "ThisTypeSchema",
300
+ "location": {
301
+ "filePath": "multi-tester.tester.ts",
302
+ "line": 10,
303
+ "character": 1
267
304
  },
268
- "isOptional": false,
269
- "isSpread": false
270
- }
271
- ],
272
- "returnType": {
273
- "__schema": "ThisTypeSchema",
274
- "location": {
275
- "filePath": "multi-tester.tester.ts",
276
- "line": 10,
277
- "character": 1
305
+ "name": "MultiTester"
278
306
  },
279
- "name": "MultiTester"
280
- },
281
- "modifiers": []
282
- },
283
- {
284
- "__schema": "FunctionLikeSchema",
285
- "location": {
286
- "filePath": "multi-tester.tester.ts",
287
- "line": 15,
288
- "character": 3
307
+ "modifiers": []
289
308
  },
290
- "signature": "(method) MultiTester.displayConfig(): string",
291
- "name": "displayConfig",
292
- "params": [],
293
- "returnType": {
294
- "__schema": "InferenceTypeSchema",
309
+ {
310
+ "__schema": "FunctionLikeSchema",
295
311
  "location": {
296
312
  "filePath": "multi-tester.tester.ts",
297
313
  "line": 15,
298
314
  "character": 3
299
315
  },
300
- "type": "string"
301
- },
302
- "modifiers": []
303
- },
304
- {
305
- "__schema": "FunctionLikeSchema",
306
- "location": {
307
- "filePath": "multi-tester.tester.ts",
308
- "line": 23,
309
- "character": 3
310
- },
311
- "signature": "(method) MultiTester.test(context: TesterContext): Promise<Tests>",
312
- "name": "test",
313
- "params": [
314
- {
315
- "__schema": "ParameterSchema",
316
+ "signature": "(method) MultiTester.displayConfig(): string",
317
+ "name": "displayConfig",
318
+ "params": [],
319
+ "returnType": {
320
+ "__schema": "InferenceTypeSchema",
316
321
  "location": {
317
322
  "filePath": "multi-tester.tester.ts",
318
- "line": 23,
319
- "character": 14
320
- },
321
- "name": "context",
322
- "type": {
323
- "__schema": "TypeRefSchema",
324
- "location": {
325
- "filePath": "multi-tester.tester.ts",
326
- "line": 23,
327
- "character": 23
328
- },
329
- "name": "TesterContext",
330
- "componentId": {
331
- "scope": "teambit.defender",
332
- "name": "tester"
333
- }
323
+ "line": 15,
324
+ "character": 3
334
325
  },
335
- "isOptional": false,
336
- "isSpread": false
337
- }
338
- ],
339
- "returnType": {
340
- "__schema": "TypeRefSchema",
326
+ "type": "string"
327
+ },
328
+ "modifiers": []
329
+ },
330
+ {
331
+ "__schema": "FunctionLikeSchema",
341
332
  "location": {
342
333
  "filePath": "multi-tester.tester.ts",
343
334
  "line": 23,
344
- "character": 39
335
+ "character": 3
345
336
  },
346
- "name": "Promise",
347
- "typeArgs": [
337
+ "signature": "(method) MultiTester.test(context: TesterContext): Promise<Tests>",
338
+ "name": "test",
339
+ "params": [
348
340
  {
349
- "__schema": "TypeRefSchema",
341
+ "__schema": "ParameterSchema",
350
342
  "location": {
351
343
  "filePath": "multi-tester.tester.ts",
352
344
  "line": 23,
353
- "character": 47
345
+ "character": 14
354
346
  },
355
- "name": "Tests",
356
- "componentId": {
357
- "scope": "teambit.defender",
358
- "name": "tester"
359
- }
347
+ "name": "context",
348
+ "type": {
349
+ "__schema": "TypeRefSchema",
350
+ "location": {
351
+ "filePath": "multi-tester.tester.ts",
352
+ "line": 23,
353
+ "character": 23
354
+ },
355
+ "name": "TesterContext",
356
+ "componentId": {
357
+ "scope": "teambit.defender",
358
+ "name": "tester"
359
+ }
360
+ },
361
+ "isOptional": false,
362
+ "isSpread": false
360
363
  }
361
- ]
362
- },
363
- "modifiers": [
364
- "async"
365
- ]
366
- },
367
- {
368
- "__schema": "FunctionLikeSchema",
369
- "location": {
370
- "filePath": "multi-tester.tester.ts",
371
- "line": 32,
372
- "character": 3
373
- },
374
- "signature": "(method) MultiTester.watch(context: TesterContext): Promise<Tests>",
375
- "name": "watch",
376
- "params": [
377
- {
378
- "__schema": "ParameterSchema",
364
+ ],
365
+ "returnType": {
366
+ "__schema": "TypeRefSchema",
379
367
  "location": {
380
368
  "filePath": "multi-tester.tester.ts",
381
- "line": 32,
382
- "character": 15
369
+ "line": 23,
370
+ "character": 39
383
371
  },
384
- "name": "context",
385
- "type": {
386
- "__schema": "TypeRefSchema",
387
- "location": {
388
- "filePath": "multi-tester.tester.ts",
389
- "line": 32,
390
- "character": 24
391
- },
392
- "name": "TesterContext",
393
- "componentId": {
394
- "scope": "teambit.defender",
395
- "name": "tester"
372
+ "name": "Promise",
373
+ "typeArgs": [
374
+ {
375
+ "__schema": "TypeRefSchema",
376
+ "location": {
377
+ "filePath": "multi-tester.tester.ts",
378
+ "line": 23,
379
+ "character": 47
380
+ },
381
+ "name": "Tests",
382
+ "componentId": {
383
+ "scope": "teambit.defender",
384
+ "name": "tester"
385
+ }
396
386
  }
397
- },
398
- "isOptional": false,
399
- "isSpread": false
400
- }
401
- ],
402
- "returnType": {
403
- "__schema": "TypeRefSchema",
387
+ ]
388
+ },
389
+ "modifiers": [
390
+ "async"
391
+ ]
392
+ },
393
+ {
394
+ "__schema": "FunctionLikeSchema",
404
395
  "location": {
405
396
  "filePath": "multi-tester.tester.ts",
406
397
  "line": 32,
407
- "character": 40
398
+ "character": 3
408
399
  },
409
- "name": "Promise",
410
- "typeArgs": [
400
+ "signature": "(method) MultiTester.watch(context: TesterContext): Promise<Tests>",
401
+ "name": "watch",
402
+ "params": [
411
403
  {
412
- "__schema": "TypeRefSchema",
404
+ "__schema": "ParameterSchema",
413
405
  "location": {
414
406
  "filePath": "multi-tester.tester.ts",
415
407
  "line": 32,
416
- "character": 48
408
+ "character": 15
417
409
  },
418
- "name": "Tests",
419
- "componentId": {
420
- "scope": "teambit.defender",
421
- "name": "tester"
422
- }
410
+ "name": "context",
411
+ "type": {
412
+ "__schema": "TypeRefSchema",
413
+ "location": {
414
+ "filePath": "multi-tester.tester.ts",
415
+ "line": 32,
416
+ "character": 24
417
+ },
418
+ "name": "TesterContext",
419
+ "componentId": {
420
+ "scope": "teambit.defender",
421
+ "name": "tester"
422
+ }
423
+ },
424
+ "isOptional": false,
425
+ "isSpread": false
423
426
  }
427
+ ],
428
+ "returnType": {
429
+ "__schema": "TypeRefSchema",
430
+ "location": {
431
+ "filePath": "multi-tester.tester.ts",
432
+ "line": 32,
433
+ "character": 40
434
+ },
435
+ "name": "Promise",
436
+ "typeArgs": [
437
+ {
438
+ "__schema": "TypeRefSchema",
439
+ "location": {
440
+ "filePath": "multi-tester.tester.ts",
441
+ "line": 32,
442
+ "character": 48
443
+ },
444
+ "name": "Tests",
445
+ "componentId": {
446
+ "scope": "teambit.defender",
447
+ "name": "tester"
448
+ }
449
+ }
450
+ ]
451
+ },
452
+ "modifiers": [
453
+ "async"
424
454
  ]
425
455
  },
426
- "modifiers": [
427
- "async"
428
- ]
429
- },
430
- {
431
- "__schema": "FunctionLikeSchema",
432
- "location": {
433
- "filePath": "multi-tester.tester.ts",
434
- "line": 43,
435
- "character": 3
436
- },
437
- "doc": {
438
- "__schema": "DocSchema",
456
+ {
457
+ "__schema": "FunctionLikeSchema",
439
458
  "location": {
440
459
  "filePath": "multi-tester.tester.ts",
441
- "line": 40,
460
+ "line": 43,
442
461
  "character": 3
443
462
  },
444
- "raw": "/**\n * returns the version of all testers instance (e.g. '4.0.1').\n */",
445
- "comment": "returns the version of all testers instance (e.g. '4.0.1')."
446
- },
447
- "signature": "(method) MultiTester.version(): string",
448
- "name": "version",
449
- "params": [],
450
- "returnType": {
451
- "__schema": "KeywordTypeSchema",
452
- "location": {
453
- "filePath": "multi-tester.tester.ts",
454
- "line": 43,
455
- "character": 14
463
+ "doc": {
464
+ "__schema": "DocSchema",
465
+ "location": {
466
+ "filePath": "multi-tester.tester.ts",
467
+ "line": 40,
468
+ "character": 3
469
+ },
470
+ "raw": "/**\n * returns the version of all testers instance (e.g. '4.0.1').\n */",
471
+ "comment": "returns the version of all testers instance (e.g. '4.0.1')."
456
472
  },
457
- "name": "string"
458
- },
459
- "modifiers": []
460
- }
461
- ],
462
- "extendsNodes": [],
463
- "implementNodes": [
464
- {
465
- "__schema": "ExpressionWithTypeArgumentsSchema",
466
- "location": {
467
- "filePath": "multi-tester.tester.ts",
468
- "line": 10,
469
- "character": 37
470
- },
471
- "name": "implements Tester",
472
- "typeArgs": [],
473
- "expression": {
474
- "__schema": "TypeRefSchema",
473
+ "signature": "(method) MultiTester.version(): string",
474
+ "name": "version",
475
+ "params": [],
476
+ "returnType": {
477
+ "__schema": "KeywordTypeSchema",
478
+ "location": {
479
+ "filePath": "multi-tester.tester.ts",
480
+ "line": 43,
481
+ "character": 14
482
+ },
483
+ "name": "string"
484
+ },
485
+ "modifiers": []
486
+ }
487
+ ],
488
+ "extendsNodes": [],
489
+ "implementNodes": [
490
+ {
491
+ "__schema": "ExpressionWithTypeArgumentsSchema",
475
492
  "location": {
476
493
  "filePath": "multi-tester.tester.ts",
477
494
  "line": 10,
478
495
  "character": 37
479
496
  },
480
- "name": "Tester",
481
- "componentId": {
482
- "_legacy": {
483
- "scope": "teambit.defender",
484
- "name": "multi-tester",
485
- "version": "1.0.257"
497
+ "name": "implements Tester",
498
+ "typeArgs": [],
499
+ "expression": {
500
+ "__schema": "TypeRefSchema",
501
+ "location": {
502
+ "filePath": "multi-tester.tester.ts",
503
+ "line": 10,
504
+ "character": 37
486
505
  },
487
- "_scope": "teambit.defender"
506
+ "name": "Tester",
507
+ "componentId": {
508
+ "_legacy": {
509
+ "scope": "teambit.defender",
510
+ "name": "multi-tester",
511
+ "version": "1.0.259"
512
+ },
513
+ "_scope": "teambit.defender"
514
+ }
488
515
  }
489
516
  }
490
- }
491
- ]
517
+ ]
518
+ }
492
519
  },
493
520
  {
494
521
  "__schema": "UnImplementedSchema",
@@ -1054,7 +1081,7 @@
1054
1081
  "_legacy": {
1055
1082
  "scope": "teambit.defender",
1056
1083
  "name": "multi-tester",
1057
- "version": "1.0.257"
1084
+ "version": "1.0.259"
1058
1085
  },
1059
1086
  "_scope": "teambit.defender"
1060
1087
  }
@@ -1069,7 +1096,7 @@
1069
1096
  "componentId": {
1070
1097
  "scope": "teambit.defender",
1071
1098
  "name": "multi-tester",
1072
- "version": "1.0.257"
1099
+ "version": "1.0.259"
1073
1100
  },
1074
1101
  "taggedModuleExports": []
1075
1102
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_multi-tester@1.0.257/dist/multi-tester.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_multi-tester@1.0.257/dist/multi-tester.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_multi-tester@1.0.259/dist/multi-tester.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_multi-tester@1.0.259/dist/multi-tester.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@teambit/multi-tester",
3
- "version": "1.0.257",
3
+ "version": "1.0.259",
4
4
  "homepage": "https://bit.cloud/teambit/defender/multi-tester",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.defender",
8
8
  "name": "multi-tester",
9
- "version": "1.0.257"
9
+ "version": "1.0.259"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
13
13
  "p-map-series": "2.1.0",
14
14
  "@teambit/harmony": "0.4.6",
15
15
  "@teambit/tests-results": "1.0.4",
16
- "@teambit/cli": "0.0.862",
17
- "@teambit/tester": "1.0.257"
16
+ "@teambit/cli": "0.0.863",
17
+ "@teambit/tester": "1.0.259"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/lodash": "4.14.165",