@teambit/tester 1.0.27 → 1.0.30
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@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@1.0.30/dist/tester.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@1.0.30/dist/tester.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/dist/tester.graphql.js
CHANGED
|
@@ -11,9 +11,9 @@ function _graphqlSubscriptions() {
|
|
|
11
11
|
};
|
|
12
12
|
return data;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
const data = require("@teambit/
|
|
16
|
-
|
|
14
|
+
function _componentId() {
|
|
15
|
+
const data = require("@teambit/component-id");
|
|
16
|
+
_componentId = function () {
|
|
17
17
|
return data;
|
|
18
18
|
};
|
|
19
19
|
return data;
|
|
@@ -91,7 +91,7 @@ function testerSchema(tester, graphql) {
|
|
|
91
91
|
id
|
|
92
92
|
}) => {
|
|
93
93
|
const componentId = await host.resolveComponentId(id);
|
|
94
|
-
const idHasVersion =
|
|
94
|
+
const idHasVersion = _componentId().ComponentID.fromString(id).hasVersion();
|
|
95
95
|
const component = await host.get(componentId);
|
|
96
96
|
if (!component) return null;
|
|
97
97
|
const testsResults = await tester.getTestsResults(component, idHasVersion);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_graphqlSubscriptions","data","require","
|
|
1
|
+
{"version":3,"names":["_graphqlSubscriptions","data","require","_componentId","_graphqlTag","_interopRequireDefault","_tester","obj","__esModule","default","testerSchema","tester","graphql","typeDefs","gql","resolvers","Subscription","testsChanged","subscribe","withFilter","pubsub","asyncIterator","OnTestsChanged","payload","variables","id","ComponentHost","getTests","host","componentId","resolveComponentId","idHasVersion","ComponentID","fromString","hasVersion","component","get","testsResults","getTestsResults"],"sources":["tester.graphql.ts"],"sourcesContent":["import { GraphqlMain, Schema } from '@teambit/graphql';\nimport { ComponentFactory } from '@teambit/component';\nimport { withFilter } from 'graphql-subscriptions';\nimport { ComponentID } from '@teambit/component-id';\nimport gql from 'graphql-tag';\n\nimport { TesterMain } from './tester.main.runtime';\nimport { OnTestsChanged } from './tester.service';\n\nexport function testerSchema(tester: TesterMain, graphql: GraphqlMain): Schema {\n return {\n typeDefs: gql`\n extend type ComponentHost {\n getTests(id: String!): Tests\n }\n\n type Subscription {\n testsChanged(id: String!): Tests\n }\n\n type Tests {\n loading: Boolean!\n testsResults: TestsResults\n }\n\n type TestsChanged {\n testsResults: TestsResults\n }\n\n type TestsResults {\n testFiles: [TestFiles]\n success: Boolean\n start: Int\n }\n\n type TestFiles {\n file: String\n tests: [Tests]\n pass: Int\n failed: Int\n pending: Int\n duration: Int\n slow: Boolean\n errorStr: String\n }\n\n type Tests {\n ancestor: [String]\n name: String\n duration: String\n status: String\n error: String\n }\n `,\n resolvers: {\n Subscription: {\n testsChanged: {\n subscribe: withFilter(\n () => graphql.pubsub.asyncIterator(OnTestsChanged),\n (payload, variables) => {\n return payload.testsChanged.id === variables.id;\n }\n ),\n },\n },\n\n ComponentHost: {\n getTests: async (host: ComponentFactory, { id }: { id: string }) => {\n const componentId = await host.resolveComponentId(id);\n const idHasVersion = ComponentID.fromString(id).hasVersion();\n const component = await host.get(componentId);\n if (!component) return null;\n const testsResults = await tester.getTestsResults(component, idHasVersion);\n if (!testsResults) return null;\n return testsResults;\n },\n },\n },\n };\n}\n"],"mappings":";;;;;;AAEA,SAAAA,sBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,qBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,aAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,YAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,YAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAE,WAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAkD,SAAAI,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE3C,SAASG,YAAYA,CAACC,MAAkB,EAAEC,OAAoB,EAAU;EAC7E,OAAO;IACLC,QAAQ,EAAE,IAAAC,qBAAG,CAAC;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;IACDC,SAAS,EAAE;MACTC,YAAY,EAAE;QACZC,YAAY,EAAE;UACZC,SAAS,EAAE,IAAAC,kCAAU,EACnB,MAAMP,OAAO,CAACQ,MAAM,CAACC,aAAa,CAACC,wBAAc,CAAC,EAClD,CAACC,OAAO,EAAEC,SAAS,KAAK;YACtB,OAAOD,OAAO,CAACN,YAAY,CAACQ,EAAE,KAAKD,SAAS,CAACC,EAAE;UACjD,CACF;QACF;MACF,CAAC;MAEDC,aAAa,EAAE;QACbC,QAAQ,EAAE,MAAAA,CAAOC,IAAsB,EAAE;UAAEH;QAAmB,CAAC,KAAK;UAClE,MAAMI,WAAW,GAAG,MAAMD,IAAI,CAACE,kBAAkB,CAACL,EAAE,CAAC;UACrD,MAAMM,YAAY,GAAGC,0BAAW,CAACC,UAAU,CAACR,EAAE,CAAC,CAACS,UAAU,CAAC,CAAC;UAC5D,MAAMC,SAAS,GAAG,MAAMP,IAAI,CAACQ,GAAG,CAACP,WAAW,CAAC;UAC7C,IAAI,CAACM,SAAS,EAAE,OAAO,IAAI;UAC3B,MAAME,YAAY,GAAG,MAAM1B,MAAM,CAAC2B,eAAe,CAACH,SAAS,EAAEJ,YAAY,CAAC;UAC1E,IAAI,CAACM,YAAY,EAAE,OAAO,IAAI;UAC9B,OAAOA,YAAY;QACrB;MACF;IACF;EACF,CAAC;AACH"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/tester",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/defender/tester",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.defender",
|
|
8
8
|
"name": "tester",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.30"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -22,22 +22,23 @@
|
|
|
22
22
|
"core-js": "^3.0.0",
|
|
23
23
|
"@babel/runtime": "7.20.0",
|
|
24
24
|
"@teambit/harmony": "0.4.6",
|
|
25
|
+
"@teambit/component-id": "1.1.0",
|
|
25
26
|
"@teambit/defender.ui.test-compare-section": "0.0.100",
|
|
26
27
|
"@teambit/defender.ui.test-compare": "0.0.255",
|
|
27
28
|
"@teambit/defender.ui.test-page": "0.0.34",
|
|
28
|
-
"@teambit/
|
|
29
|
-
"@teambit/
|
|
30
|
-
"@teambit/
|
|
31
|
-
"@teambit/
|
|
32
|
-
"@teambit/
|
|
33
|
-
"@teambit/
|
|
34
|
-
"@teambit/
|
|
35
|
-
"@teambit/
|
|
29
|
+
"@teambit/bit-error": "0.0.404",
|
|
30
|
+
"@teambit/cli": "0.0.802",
|
|
31
|
+
"@teambit/logger": "0.0.895",
|
|
32
|
+
"@teambit/workspace": "1.0.30",
|
|
33
|
+
"@teambit/envs": "1.0.30",
|
|
34
|
+
"@teambit/component": "1.0.30",
|
|
35
|
+
"@teambit/graphql": "1.0.30",
|
|
36
|
+
"@teambit/builder": "1.0.30",
|
|
37
|
+
"@teambit/dev-files": "1.0.30",
|
|
36
38
|
"@teambit/tests-results": "1.0.2",
|
|
37
|
-
"@teambit/ui": "1.0.
|
|
38
|
-
"@teambit/compiler": "1.0.
|
|
39
|
-
"@teambit/component-compare": "1.0.
|
|
40
|
-
"@teambit/bit-error": "0.0.404"
|
|
39
|
+
"@teambit/ui": "1.0.30",
|
|
40
|
+
"@teambit/compiler": "1.0.30",
|
|
41
|
+
"@teambit/component-compare": "1.0.30"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@types/react": "^17.0.8",
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"@teambit/defender.content.tester-overview": "1.95.0"
|
|
53
54
|
},
|
|
54
55
|
"peerDependencies": {
|
|
55
|
-
"@teambit/legacy": "1.0.
|
|
56
|
+
"@teambit/legacy": "1.0.582",
|
|
56
57
|
"react": "^16.8.0 || ^17.0.0",
|
|
57
58
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
58
59
|
},
|