@teambit/tester 0.0.926 → 0.0.928

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,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@0.0.926/dist/tester.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@0.0.926/dist/tester.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@0.0.928/dist/tester.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@0.0.928/dist/tester.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -1,4 +1,4 @@
1
- import { ComponentType } from 'react';
1
+ import React, { ComponentType } from 'react';
2
2
  import { SlotRegistry } from '@teambit/harmony';
3
3
  import { ComponentUI } from '@teambit/component';
4
4
  import { ComponentCompareUI } from '@teambit/component-compare';
@@ -14,7 +14,8 @@ export declare class TesterUI {
14
14
  * register a new tester empty state. this allows to register a different empty state from each environment for example.
15
15
  */
16
16
  registerEmptyState(emptyStateComponent: ComponentType): this;
17
- static slots: ((registerFn: () => string) => SlotRegistry<ComponentType<{}>>)[];
17
+ getTesterCompare(): JSX.Element;
18
+ static slots: ((registerFn: () => string) => SlotRegistry<React.ComponentType<{}>>)[];
18
19
  static provider([component, componentCompare]: [ComponentUI, ComponentCompareUI], config: any, [emptyStateSlot]: [EmptyStateSlot]): Promise<TesterUI>;
19
20
  }
20
21
  export default TesterUI;
@@ -14,6 +14,13 @@ function _defineProperty2() {
14
14
  };
15
15
  return data;
16
16
  }
17
+ function _react() {
18
+ const data = _interopRequireDefault(require("react"));
19
+ _react = function () {
20
+ return data;
21
+ };
22
+ return data;
23
+ }
17
24
  function _ui() {
18
25
  const data = require("@teambit/ui");
19
26
  _ui = function () {
@@ -35,6 +42,13 @@ function _component() {
35
42
  };
36
43
  return data;
37
44
  }
45
+ function _defenderUi() {
46
+ const data = require("@teambit/defender.ui.test-compare");
47
+ _defenderUi = function () {
48
+ return data;
49
+ };
50
+ return data;
51
+ }
38
52
  function _componentCompare() {
39
53
  const data = require("@teambit/component-compare");
40
54
  _componentCompare = function () {
@@ -42,6 +56,13 @@ function _componentCompare() {
42
56
  };
43
57
  return data;
44
58
  }
59
+ function _defenderUi2() {
60
+ const data = require("@teambit/defender.ui.test-compare-section");
61
+ _defenderUi2 = function () {
62
+ return data;
63
+ };
64
+ return data;
65
+ }
45
66
  function _tests() {
46
67
  const data = require("./tests.section");
47
68
  _tests = function () {
@@ -56,13 +77,6 @@ function _tester() {
56
77
  };
57
78
  return data;
58
79
  }
59
- function _testerCompare() {
60
- const data = require("./tester.compare.section");
61
- _testerCompare = function () {
62
- return data;
63
- };
64
- return data;
65
- }
66
80
  class TesterUI {
67
81
  constructor(component, emptyStateSlot) {
68
82
  this.component = component;
@@ -77,10 +91,15 @@ class TesterUI {
77
91
  this.emptyStateSlot.register(emptyStateComponent);
78
92
  return this;
79
93
  }
94
+ getTesterCompare() {
95
+ return /*#__PURE__*/_react().default.createElement(_defenderUi().CompareTests, {
96
+ emptyState: this.emptyStateSlot
97
+ });
98
+ }
80
99
  static async provider([component, componentCompare], config, [emptyStateSlot]) {
81
100
  const testerUi = new TesterUI(component, emptyStateSlot);
82
101
  const section = new (_tests().TestsSection)(emptyStateSlot);
83
- const testerCompareSection = new (_testerCompare().TesterCompareSection)(emptyStateSlot);
102
+ const testerCompareSection = new (_defenderUi2().TestCompareSection)(testerUi);
84
103
  component.registerRoute(section.route);
85
104
  component.registerNavigation(section.navigationLink, section.order);
86
105
  componentCompare.registerNavigation({
@@ -1 +1 @@
1
- {"version":3,"names":["TesterUI","constructor","component","emptyStateSlot","registerEmptyState","emptyStateComponent","register","provider","componentCompare","config","testerUi","section","TestsSection","testerCompareSection","TesterCompareSection","registerRoute","route","registerNavigation","navigationLink","order","props","registerRoutes","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","TesterAspect","addRuntime"],"sources":["tester.ui.runtime.tsx"],"sourcesContent":["import { ComponentType } from 'react';\nimport { UIRuntime } from '@teambit/ui';\nimport { SlotRegistry, Slot } from '@teambit/harmony';\nimport { ComponentAspect, ComponentUI } from '@teambit/component';\nimport { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';\nimport { TestsSection } from './tests.section';\nimport { TesterAspect } from './tester.aspect';\nimport { TesterCompareSection } from './tester.compare.section';\n\nexport type EmptyStateSlot = SlotRegistry<ComponentType>;\nexport class TesterUI {\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n\n static runtime = UIRuntime;\n\n stageKey?: string;\n\n constructor(private component: ComponentUI, private emptyStateSlot: EmptyStateSlot) {}\n\n /**\n * register a new tester empty state. this allows to register a different empty state from each environment for example.\n */\n registerEmptyState(emptyStateComponent: ComponentType) {\n this.emptyStateSlot.register(emptyStateComponent);\n return this;\n }\n\n static slots = [Slot.withType<ComponentType>()];\n\n static async provider(\n [component, componentCompare]: [ComponentUI, ComponentCompareUI],\n config,\n [emptyStateSlot]: [EmptyStateSlot]\n ) {\n const testerUi = new TesterUI(component, emptyStateSlot);\n const section = new TestsSection(emptyStateSlot);\n const testerCompareSection = new TesterCompareSection(emptyStateSlot);\n component.registerRoute(section.route);\n component.registerNavigation(section.navigationLink, section.order);\n componentCompare.registerNavigation({\n props: testerCompareSection.navigationLink,\n order: testerCompareSection.navigationLink.order,\n });\n componentCompare.registerRoutes([testerCompareSection.route]);\n return testerUi;\n }\n}\n\nexport default TesterUI;\n\nTesterAspect.addRuntime(TesterUI);\n"],"mappings":";;;;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGO,MAAMA,QAAQ,CAAC;EAOpBC,WAAW,CAASC,SAAsB,EAAUC,cAA8B,EAAE;IAAA,KAAhED,SAAsB,GAAtBA,SAAsB;IAAA,KAAUC,cAA8B,GAA9BA,cAA8B;IAAA;EAAG;;EAErF;AACF;AACA;EACEC,kBAAkB,CAACC,mBAAkC,EAAE;IACrD,IAAI,CAACF,cAAc,CAACG,QAAQ,CAACD,mBAAmB,CAAC;IACjD,OAAO,IAAI;EACb;EAIA,aAAaE,QAAQ,CACnB,CAACL,SAAS,EAAEM,gBAAgB,CAAoC,EAChEC,MAAM,EACN,CAACN,cAAc,CAAmB,EAClC;IACA,MAAMO,QAAQ,GAAG,IAAIV,QAAQ,CAACE,SAAS,EAAEC,cAAc,CAAC;IACxD,MAAMQ,OAAO,GAAG,KAAIC,qBAAY,EAACT,cAAc,CAAC;IAChD,MAAMU,oBAAoB,GAAG,KAAIC,qCAAoB,EAACX,cAAc,CAAC;IACrED,SAAS,CAACa,aAAa,CAACJ,OAAO,CAACK,KAAK,CAAC;IACtCd,SAAS,CAACe,kBAAkB,CAACN,OAAO,CAACO,cAAc,EAAEP,OAAO,CAACQ,KAAK,CAAC;IACnEX,gBAAgB,CAACS,kBAAkB,CAAC;MAClCG,KAAK,EAAEP,oBAAoB,CAACK,cAAc;MAC1CC,KAAK,EAAEN,oBAAoB,CAACK,cAAc,CAACC;IAC7C,CAAC,CAAC;IACFX,gBAAgB,CAACa,cAAc,CAAC,CAACR,oBAAoB,CAACG,KAAK,CAAC,CAAC;IAC7D,OAAON,QAAQ;EACjB;AACF;AAAC;AAAA,gCApCYV,QAAQ,kBACG,CAACsB,4BAAe,EAAEC,0CAAsB,CAAC;AAAA,gCADpDvB,QAAQ,aAGFwB,eAAS;AAAA,gCAHfxB,QAAQ,WAiBJ,CAACyB,eAAI,CAACC,QAAQ,EAAiB,CAAC;AAAA,eAqBlC1B,QAAQ;AAAA;AAEvB2B,sBAAY,CAACC,UAAU,CAAC5B,QAAQ,CAAC"}
1
+ {"version":3,"names":["TesterUI","constructor","component","emptyStateSlot","registerEmptyState","emptyStateComponent","register","getTesterCompare","provider","componentCompare","config","testerUi","section","TestsSection","testerCompareSection","TestCompareSection","registerRoute","route","registerNavigation","navigationLink","order","props","registerRoutes","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","TesterAspect","addRuntime"],"sources":["tester.ui.runtime.tsx"],"sourcesContent":["import React, { ComponentType } from 'react';\nimport { UIRuntime } from '@teambit/ui';\nimport { SlotRegistry, Slot } from '@teambit/harmony';\nimport { ComponentAspect, ComponentUI } from '@teambit/component';\nimport { CompareTests } from '@teambit/defender.ui.test-compare';\nimport { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';\nimport { TestCompareSection } from '@teambit/defender.ui.test-compare-section';\nimport { TestsSection } from './tests.section';\nimport { TesterAspect } from './tester.aspect';\n\nexport type EmptyStateSlot = SlotRegistry<ComponentType>;\nexport class TesterUI {\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n\n static runtime = UIRuntime;\n\n stageKey?: string;\n\n constructor(private component: ComponentUI, private emptyStateSlot: EmptyStateSlot) {}\n\n /**\n * register a new tester empty state. this allows to register a different empty state from each environment for example.\n */\n registerEmptyState(emptyStateComponent: ComponentType) {\n this.emptyStateSlot.register(emptyStateComponent);\n return this;\n }\n\n getTesterCompare() {\n return <CompareTests emptyState={this.emptyStateSlot} />;\n }\n\n static slots = [Slot.withType<ComponentType>()];\n\n static async provider(\n [component, componentCompare]: [ComponentUI, ComponentCompareUI],\n config,\n [emptyStateSlot]: [EmptyStateSlot]\n ) {\n const testerUi = new TesterUI(component, emptyStateSlot);\n const section = new TestsSection(emptyStateSlot);\n const testerCompareSection = new TestCompareSection(testerUi);\n component.registerRoute(section.route);\n component.registerNavigation(section.navigationLink, section.order);\n componentCompare.registerNavigation({\n props: testerCompareSection.navigationLink,\n order: testerCompareSection.navigationLink.order,\n });\n componentCompare.registerRoutes([testerCompareSection.route]);\n return testerUi;\n }\n}\n\nexport default TesterUI;\n\nTesterAspect.addRuntime(TesterUI);\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGO,MAAMA,QAAQ,CAAC;EAOpBC,WAAW,CAASC,SAAsB,EAAUC,cAA8B,EAAE;IAAA,KAAhED,SAAsB,GAAtBA,SAAsB;IAAA,KAAUC,cAA8B,GAA9BA,cAA8B;IAAA;EAAG;;EAErF;AACF;AACA;EACEC,kBAAkB,CAACC,mBAAkC,EAAE;IACrD,IAAI,CAACF,cAAc,CAACG,QAAQ,CAACD,mBAAmB,CAAC;IACjD,OAAO,IAAI;EACb;EAEAE,gBAAgB,GAAG;IACjB,oBAAO,+BAAC,0BAAY;MAAC,UAAU,EAAE,IAAI,CAACJ;IAAe,EAAG;EAC1D;EAIA,aAAaK,QAAQ,CACnB,CAACN,SAAS,EAAEO,gBAAgB,CAAoC,EAChEC,MAAM,EACN,CAACP,cAAc,CAAmB,EAClC;IACA,MAAMQ,QAAQ,GAAG,IAAIX,QAAQ,CAACE,SAAS,EAAEC,cAAc,CAAC;IACxD,MAAMS,OAAO,GAAG,KAAIC,qBAAY,EAACV,cAAc,CAAC;IAChD,MAAMW,oBAAoB,GAAG,KAAIC,iCAAkB,EAACJ,QAAQ,CAAC;IAC7DT,SAAS,CAACc,aAAa,CAACJ,OAAO,CAACK,KAAK,CAAC;IACtCf,SAAS,CAACgB,kBAAkB,CAACN,OAAO,CAACO,cAAc,EAAEP,OAAO,CAACQ,KAAK,CAAC;IACnEX,gBAAgB,CAACS,kBAAkB,CAAC;MAClCG,KAAK,EAAEP,oBAAoB,CAACK,cAAc;MAC1CC,KAAK,EAAEN,oBAAoB,CAACK,cAAc,CAACC;IAC7C,CAAC,CAAC;IACFX,gBAAgB,CAACa,cAAc,CAAC,CAACR,oBAAoB,CAACG,KAAK,CAAC,CAAC;IAC7D,OAAON,QAAQ;EACjB;AACF;AAAC;AAAA,gCAxCYX,QAAQ,kBACG,CAACuB,4BAAe,EAAEC,0CAAsB,CAAC;AAAA,gCADpDxB,QAAQ,aAGFyB,eAAS;AAAA,gCAHfzB,QAAQ,WAqBJ,CAAC0B,eAAI,CAACC,QAAQ,EAAiB,CAAC;AAAA,eAqBlC3B,QAAQ;AAAA;AAEvB4B,sBAAY,CAACC,UAAU,CAAC7B,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/tester",
3
- "version": "0.0.926",
3
+ "version": "0.0.928",
4
4
  "homepage": "https://bit.dev/teambit/defender/tester",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.defender",
8
8
  "name": "tester",
9
- "version": "0.0.926"
9
+ "version": "0.0.928"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -22,19 +22,20 @@
22
22
  "@babel/runtime": "7.20.0",
23
23
  "core-js": "^3.0.0",
24
24
  "@teambit/harmony": "0.3.3",
25
- "@teambit/cli": "0.0.620",
26
- "@teambit/logger": "0.0.713",
27
- "@teambit/workspace": "0.0.926",
28
- "@teambit/envs": "0.0.926",
29
- "@teambit/component": "0.0.926",
30
- "@teambit/defender.ui.test-compare": "0.0.138",
31
- "@teambit/graphql": "0.0.926",
32
- "@teambit/builder": "0.0.926",
33
- "@teambit/dev-files": "0.0.926",
25
+ "@teambit/cli": "0.0.621",
26
+ "@teambit/logger": "0.0.714",
27
+ "@teambit/workspace": "0.0.928",
28
+ "@teambit/envs": "0.0.928",
29
+ "@teambit/component": "0.0.928",
30
+ "@teambit/graphql": "0.0.928",
31
+ "@teambit/builder": "0.0.928",
32
+ "@teambit/dev-files": "0.0.928",
34
33
  "@teambit/tests-results": "0.0.104",
35
- "@teambit/ui": "0.0.926",
36
- "@teambit/compiler": "0.0.926",
37
- "@teambit/component-compare": "0.0.174",
34
+ "@teambit/ui": "0.0.928",
35
+ "@teambit/compiler": "0.0.928",
36
+ "@teambit/component-compare": "0.0.176",
37
+ "@teambit/defender.ui.test-compare-section": "0.0.1",
38
+ "@teambit/defender.ui.test-compare": "0.0.139",
38
39
  "@teambit/defender.ui.test-page": "0.0.14",
39
40
  "@teambit/bit-error": "0.0.402"
40
41
  },
@@ -51,7 +52,7 @@
51
52
  "@teambit/defender.content.tester-overview": "1.95.0"
52
53
  },
53
54
  "peerDependencies": {
54
- "@teambit/legacy": "1.0.401",
55
+ "@teambit/legacy": "1.0.402",
55
56
  "react-dom": "^16.8.0 || ^17.0.0",
56
57
  "react": "^16.8.0 || ^17.0.0"
57
58
  },
@@ -1,11 +1,12 @@
1
- import { ComponentType } from 'react';
1
+ import React, { ComponentType } from 'react';
2
2
  import { UIRuntime } from '@teambit/ui';
3
3
  import { SlotRegistry, Slot } from '@teambit/harmony';
4
4
  import { ComponentAspect, ComponentUI } from '@teambit/component';
5
+ import { CompareTests } from '@teambit/defender.ui.test-compare';
5
6
  import { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';
7
+ import { TestCompareSection } from '@teambit/defender.ui.test-compare-section';
6
8
  import { TestsSection } from './tests.section';
7
9
  import { TesterAspect } from './tester.aspect';
8
- import { TesterCompareSection } from './tester.compare.section';
9
10
 
10
11
  export type EmptyStateSlot = SlotRegistry<ComponentType>;
11
12
  export class TesterUI {
@@ -25,6 +26,10 @@ export class TesterUI {
25
26
  return this;
26
27
  }
27
28
 
29
+ getTesterCompare() {
30
+ return <CompareTests emptyState={this.emptyStateSlot} />;
31
+ }
32
+
28
33
  static slots = [Slot.withType<ComponentType>()];
29
34
 
30
35
  static async provider(
@@ -34,7 +39,7 @@ export class TesterUI {
34
39
  ) {
35
40
  const testerUi = new TesterUI(component, emptyStateSlot);
36
41
  const section = new TestsSection(emptyStateSlot);
37
- const testerCompareSection = new TesterCompareSection(emptyStateSlot);
42
+ const testerCompareSection = new TestCompareSection(testerUi);
38
43
  component.registerRoute(section.route);
39
44
  component.registerNavigation(section.navigationLink, section.order);
40
45
  componentCompare.registerNavigation({
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import { Section } from '@teambit/component';
3
- import { EmptyStateSlot } from './tester.ui.runtime';
4
- export declare class TesterCompareSection implements Section {
5
- private emptyStateSlot;
6
- constructor(emptyStateSlot: EmptyStateSlot);
7
- navigationLink: {
8
- href: string;
9
- children: string;
10
- order: number;
11
- };
12
- route: {
13
- path: string;
14
- element: JSX.Element;
15
- };
16
- }
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.TesterCompareSection = void 0;
8
- function _defineProperty2() {
9
- const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
- _defineProperty2 = function () {
11
- return data;
12
- };
13
- return data;
14
- }
15
- function _react() {
16
- const data = _interopRequireDefault(require("react"));
17
- _react = function () {
18
- return data;
19
- };
20
- return data;
21
- }
22
- function _defenderUi() {
23
- const data = require("@teambit/defender.ui.test-compare");
24
- _defenderUi = function () {
25
- return data;
26
- };
27
- return data;
28
- }
29
- class TesterCompareSection {
30
- constructor(emptyStateSlot) {
31
- this.emptyStateSlot = emptyStateSlot;
32
- (0, _defineProperty2().default)(this, "navigationLink", {
33
- href: 'tests',
34
- children: 'Tests',
35
- order: 3
36
- });
37
- (0, _defineProperty2().default)(this, "route", {
38
- path: 'tests/*',
39
- element: /*#__PURE__*/_react().default.createElement(_defenderUi().CompareTests, {
40
- emptyState: this.emptyStateSlot
41
- })
42
- });
43
- }
44
- }
45
- exports.TesterCompareSection = TesterCompareSection;
46
-
47
- //# sourceMappingURL=tester.compare.section.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["TesterCompareSection","constructor","emptyStateSlot","href","children","order","path","element"],"sources":["tester.compare.section.tsx"],"sourcesContent":["import React from 'react';\nimport { Section } from '@teambit/component';\nimport { CompareTests } from '@teambit/defender.ui.test-compare';\nimport { EmptyStateSlot } from './tester.ui.runtime';\n\nexport class TesterCompareSection implements Section {\n constructor(private emptyStateSlot: EmptyStateSlot) {}\n\n navigationLink = {\n href: 'tests',\n children: 'Tests',\n order: 3,\n };\n\n route = {\n path: 'tests/*',\n element: <CompareTests emptyState={this.emptyStateSlot} />,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGO,MAAMA,oBAAoB,CAAoB;EACnDC,WAAW,CAASC,cAA8B,EAAE;IAAA,KAAhCA,cAA8B,GAA9BA,cAA8B;IAAA,wDAEjC;MACfC,IAAI,EAAE,OAAO;MACbC,QAAQ,EAAE,OAAO;MACjBC,KAAK,EAAE;IACT,CAAC;IAAA,+CAEO;MACNC,IAAI,EAAE,SAAS;MACfC,OAAO,eAAE,+BAAC,0BAAY;QAAC,UAAU,EAAE,IAAI,CAACL;MAAe;IACzD,CAAC;EAXoD;AAYvD;AAAC"}
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { Section } from '@teambit/component';
3
- import { CompareTests } from '@teambit/defender.ui.test-compare';
4
- import { EmptyStateSlot } from './tester.ui.runtime';
5
-
6
- export class TesterCompareSection implements Section {
7
- constructor(private emptyStateSlot: EmptyStateSlot) {}
8
-
9
- navigationLink = {
10
- href: 'tests',
11
- children: 'Tests',
12
- order: 3,
13
- };
14
-
15
- route = {
16
- path: 'tests/*',
17
- element: <CompareTests emptyState={this.emptyStateSlot} />,
18
- };
19
- }