@teambit/tester 0.0.1166 → 0.0.1167
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.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@0.0.1167/dist/tester.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@0.0.1167/dist/tester.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -28,7 +28,7 @@ function testsResultsToJUnitFormat(components) {
|
|
|
28
28
|
var _compResult$results2;
|
|
29
29
|
suite.timestamp(new Date((_compResult$results2 = compResult.results) === null || _compResult$results2 === void 0 ? void 0 : _compResult$results2.start).toISOString());
|
|
30
30
|
}
|
|
31
|
-
(_compResult$results3 = compResult.results) === null || _compResult$results3 === void 0
|
|
31
|
+
(_compResult$results3 = compResult.results) === null || _compResult$results3 === void 0 ? void 0 : _compResult$results3.testFiles.forEach(testFile => {
|
|
32
32
|
if (testFile.error) {
|
|
33
33
|
const testCase = suite.testCase().className(testFile.file).name(testFile.file);
|
|
34
34
|
testCase.error((0, _stripAnsi().default)(testFile.error.message));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_junitReportBuilder","data","_interopRequireDefault","require","_stripAnsi","obj","__esModule","default","testsResultsToJUnitFormat","components","builder","junitReportBuilder","newBuilder","forEach","compResult","_compResult$results","_compResult$results3","suite","testSuite","name","componentId","toString","results","start","_compResult$results2","timestamp","Date","toISOString","testFiles","testFile","error","testCase","className","file","stripAnsi","message","tests","test","failure","status","skipped","duration","time","build"],"sources":["junit-generator.ts"],"sourcesContent":["import junitReportBuilder from 'junit-report-builder';\nimport stripAnsi from 'strip-ansi';\nimport { ComponentsResults } from '../tester';\n\nexport function testsResultsToJUnitFormat(components: ComponentsResults[]): string {\n const builder = junitReportBuilder.newBuilder();\n components.forEach((compResult) => {\n const suite = builder.testSuite().name(compResult.componentId.toString());\n if (compResult.results?.start) {\n suite.timestamp(new Date(compResult.results?.start).toISOString());\n }\n compResult.results?.testFiles.forEach((testFile) => {\n if (testFile.error) {\n const testCase = suite.testCase().className(testFile.file).name(testFile.file);\n testCase.error(stripAnsi(testFile.error.message as string));\n }\n testFile.tests.forEach((test) => {\n const testCase = suite.testCase().className(testFile.file).name(test.name);\n if (test.error) {\n testCase.error(stripAnsi(test.error));\n }\n if (test.failure) {\n testCase.failure(stripAnsi(test.failure));\n }\n if (test.status === 'skipped' || test.status === 'pending') {\n testCase.skipped();\n }\n if (test.duration) {\n testCase.time(test.duration / 1000);\n }\n });\n });\n });\n return builder.build();\n}\n"],"mappings":";;;;;;AAAA,SAAAA,oBAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,mBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAmC,SAAAC,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAG5B,SAASG,yBAAyBA,CAACC,UAA+B,EAAU;EACjF,MAAMC,OAAO,GAAGC,6BAAkB,CAACC,UAAU,CAAC,CAAC;EAC/CH,UAAU,CAACI,OAAO,CAAEC,UAAU,IAAK;IAAA,IAAAC,mBAAA,EAAAC,oBAAA;IACjC,MAAMC,KAAK,GAAGP,OAAO,CAACQ,SAAS,CAAC,CAAC,CAACC,IAAI,CAACL,UAAU,CAACM,WAAW,CAACC,QAAQ,CAAC,CAAC,CAAC;IACzE,KAAAN,mBAAA,GAAID,UAAU,CAACQ,OAAO,cAAAP,mBAAA,eAAlBA,mBAAA,CAAoBQ,KAAK,EAAE;MAAA,IAAAC,oBAAA;MAC7BP,KAAK,CAACQ,SAAS,CAAC,IAAIC,IAAI,EAAAF,oBAAA,GAACV,UAAU,CAACQ,OAAO,cAAAE,oBAAA,uBAAlBA,oBAAA,CAAoBD,KAAK,CAAC,CAACI,WAAW,CAAC,CAAC,CAAC;IACpE;IACA,CAAAX,oBAAA,GAAAF,UAAU,CAACQ,OAAO,cAAAN,oBAAA,
|
|
1
|
+
{"version":3,"names":["_junitReportBuilder","data","_interopRequireDefault","require","_stripAnsi","obj","__esModule","default","testsResultsToJUnitFormat","components","builder","junitReportBuilder","newBuilder","forEach","compResult","_compResult$results","_compResult$results3","suite","testSuite","name","componentId","toString","results","start","_compResult$results2","timestamp","Date","toISOString","testFiles","testFile","error","testCase","className","file","stripAnsi","message","tests","test","failure","status","skipped","duration","time","build"],"sources":["junit-generator.ts"],"sourcesContent":["import junitReportBuilder from 'junit-report-builder';\nimport stripAnsi from 'strip-ansi';\nimport { ComponentsResults } from '../tester';\n\nexport function testsResultsToJUnitFormat(components: ComponentsResults[]): string {\n const builder = junitReportBuilder.newBuilder();\n components.forEach((compResult) => {\n const suite = builder.testSuite().name(compResult.componentId.toString());\n if (compResult.results?.start) {\n suite.timestamp(new Date(compResult.results?.start).toISOString());\n }\n compResult.results?.testFiles.forEach((testFile) => {\n if (testFile.error) {\n const testCase = suite.testCase().className(testFile.file).name(testFile.file);\n testCase.error(stripAnsi(testFile.error.message as string));\n }\n testFile.tests.forEach((test) => {\n const testCase = suite.testCase().className(testFile.file).name(test.name);\n if (test.error) {\n testCase.error(stripAnsi(test.error));\n }\n if (test.failure) {\n testCase.failure(stripAnsi(test.failure));\n }\n if (test.status === 'skipped' || test.status === 'pending') {\n testCase.skipped();\n }\n if (test.duration) {\n testCase.time(test.duration / 1000);\n }\n });\n });\n });\n return builder.build();\n}\n"],"mappings":";;;;;;AAAA,SAAAA,oBAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,mBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAmC,SAAAC,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAG5B,SAASG,yBAAyBA,CAACC,UAA+B,EAAU;EACjF,MAAMC,OAAO,GAAGC,6BAAkB,CAACC,UAAU,CAAC,CAAC;EAC/CH,UAAU,CAACI,OAAO,CAAEC,UAAU,IAAK;IAAA,IAAAC,mBAAA,EAAAC,oBAAA;IACjC,MAAMC,KAAK,GAAGP,OAAO,CAACQ,SAAS,CAAC,CAAC,CAACC,IAAI,CAACL,UAAU,CAACM,WAAW,CAACC,QAAQ,CAAC,CAAC,CAAC;IACzE,KAAAN,mBAAA,GAAID,UAAU,CAACQ,OAAO,cAAAP,mBAAA,eAAlBA,mBAAA,CAAoBQ,KAAK,EAAE;MAAA,IAAAC,oBAAA;MAC7BP,KAAK,CAACQ,SAAS,CAAC,IAAIC,IAAI,EAAAF,oBAAA,GAACV,UAAU,CAACQ,OAAO,cAAAE,oBAAA,uBAAlBA,oBAAA,CAAoBD,KAAK,CAAC,CAACI,WAAW,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AC,CAAC;AACxB"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/tester",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1167",
|
|
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": "0.0.
|
|
9
|
+
"version": "0.0.1167"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"junit-report-builder": "3.0.1",
|
|
21
21
|
"strip-ansi": "6.0.0",
|
|
22
22
|
"@teambit/harmony": "0.4.6",
|
|
23
|
-
"@teambit/cli": "0.0.
|
|
24
|
-
"@teambit/logger": "0.0.
|
|
25
|
-
"@teambit/workspace": "0.0.
|
|
26
|
-
"@teambit/envs": "0.0.
|
|
27
|
-
"@teambit/component": "0.0.
|
|
28
|
-
"@teambit/graphql": "0.0.
|
|
29
|
-
"@teambit/builder": "0.0.
|
|
30
|
-
"@teambit/dev-files": "0.0.
|
|
23
|
+
"@teambit/cli": "0.0.778",
|
|
24
|
+
"@teambit/logger": "0.0.871",
|
|
25
|
+
"@teambit/workspace": "0.0.1167",
|
|
26
|
+
"@teambit/envs": "0.0.1167",
|
|
27
|
+
"@teambit/component": "0.0.1167",
|
|
28
|
+
"@teambit/graphql": "0.0.1167",
|
|
29
|
+
"@teambit/builder": "0.0.1167",
|
|
30
|
+
"@teambit/dev-files": "0.0.1167",
|
|
31
31
|
"@teambit/tests-results": "1.0.0",
|
|
32
|
-
"@teambit/ui": "0.0.
|
|
33
|
-
"@teambit/compiler": "0.0.
|
|
34
|
-
"@teambit/component-compare": "0.0.
|
|
35
|
-
"@teambit/defender.ui.test-compare-section": "0.0.
|
|
36
|
-
"@teambit/defender.ui.test-compare": "0.0.
|
|
32
|
+
"@teambit/ui": "0.0.1167",
|
|
33
|
+
"@teambit/compiler": "0.0.1167",
|
|
34
|
+
"@teambit/component-compare": "0.0.415",
|
|
35
|
+
"@teambit/defender.ui.test-compare-section": "0.0.86",
|
|
36
|
+
"@teambit/defender.ui.test-compare": "0.0.241",
|
|
37
37
|
"@teambit/defender.ui.test-page": "0.0.22",
|
|
38
38
|
"@teambit/bit-error": "0.0.402"
|
|
39
39
|
},
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@teambit/defender.content.tester-overview": "1.95.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@teambit/legacy": "1.0.
|
|
53
|
+
"@teambit/legacy": "1.0.563",
|
|
54
54
|
"react": "^16.8.0 || ^17.0.0",
|
|
55
55
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
56
56
|
},
|