@teambit/tester 0.0.747 → 0.0.750

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.
@@ -105,9 +105,10 @@ class TesterTask {
105
105
  }
106
106
 
107
107
  async execute(context) {
108
+ const components = context.capsuleNetwork.originalSeedersCapsules.getAllComponents();
108
109
  const tester = context.env.getTester();
109
110
 
110
- const componentsSpecFiles = _component().ComponentMap.as(context.components, component => {
111
+ const componentsSpecFiles = _component().ComponentMap.as(components, component => {
111
112
  return (0, _utils().detectTestFiles)(component, this.devFiles);
112
113
  });
113
114
 
@@ -117,7 +118,7 @@ class TesterTask {
117
118
  componentsResults: []
118
119
  };
119
120
 
120
- const specFilesWithCapsule = _component().ComponentMap.as(context.components, component => {
121
+ const specFilesWithCapsule = _component().ComponentMap.as(components, component => {
121
122
  const componentSpecFiles = componentsSpecFiles.get(component);
122
123
  if (!componentSpecFiles) throw new Error('capsule not found');
123
124
  const [, specs] = componentSpecFiles;
@@ -1 +1 @@
1
- {"version":3,"names":["TesterTask","constructor","aspectId","devFiles","CompilerAspect","id","execute","context","tester","env","getTester","componentsSpecFiles","ComponentMap","as","components","component","detectTestFiles","testCount","toArray","reduce","acc","specs","length","artifacts","componentsResults","specFilesWithCapsule","componentSpecFiles","get","Error","map","specFile","capsule","capsuleNetwork","graphCapsules","getCapsule","compiler","getCompiler","distPath","getDistPathBySrcPath","relative","path","join","testerContext","Object","assign","release","specFiles","rootPath","capsulesRootDir","patterns","testsResults","test","Promise","all","compResult","junit","testsResultsToJUnitFormat","componentId","toString","fs","outputFile","getJUnitArtifactPath","getArtifactDef","componentTests","componentErrors","errors","metadata","tests","results","CAPSULE_ARTIFACTS_DIR","name","globPatterns","rootDir"],"sources":["tester.task.ts"],"sourcesContent":["import { BuildContext, BuiltTaskResult, BuildTask, CAPSULE_ARTIFACTS_DIR } from '@teambit/builder';\nimport fs from 'fs-extra';\nimport { join } from 'path';\nimport { Compiler, CompilerAspect } from '@teambit/compiler';\nimport { DevFilesMain } from '@teambit/dev-files';\nimport { ComponentMap } from '@teambit/component';\nimport { Tester } from './tester';\nimport { detectTestFiles } from './utils';\nimport { testsResultsToJUnitFormat } from './utils/junit-generator';\n\n/**\n * tester build task. Allows to test components during component build.\n */\nexport class TesterTask implements BuildTask {\n readonly name = 'TestComponents';\n readonly dependencies = [CompilerAspect.id];\n constructor(readonly aspectId: string, private devFiles: DevFilesMain) {}\n\n async execute(context: BuildContext): Promise<BuiltTaskResult> {\n const tester: Tester = context.env.getTester();\n const componentsSpecFiles = ComponentMap.as(context.components, (component) => {\n return detectTestFiles(component, this.devFiles);\n });\n\n const testCount = componentsSpecFiles.toArray().reduce((acc, [, specs]) => acc + specs.length, 0);\n if (testCount === 0)\n return {\n artifacts: [],\n componentsResults: [],\n };\n\n const specFilesWithCapsule = ComponentMap.as(context.components, (component) => {\n const componentSpecFiles = componentsSpecFiles.get(component);\n if (!componentSpecFiles) throw new Error('capsule not found');\n const [, specs] = componentSpecFiles;\n return specs.map((specFile) => {\n const capsule = context.capsuleNetwork.graphCapsules.getCapsule(component.id);\n if (!capsule) throw new Error('capsule not found');\n const compiler: Compiler = context.env.getCompiler();\n const distPath = compiler.getDistPathBySrcPath(specFile.relative);\n\n // TODO: fix spec type file need to capsule will return files with type AbstractVinyl\n return { path: join(capsule.path, distPath), relative: distPath };\n });\n });\n\n const testerContext = Object.assign(context, {\n release: true,\n specFiles: specFilesWithCapsule,\n rootPath: context.capsuleNetwork.capsulesRootDir,\n patterns: specFilesWithCapsule,\n });\n\n // TODO: remove after fix AbstractVinyl on capsule\n // @ts-ignore\n const testsResults = await tester.test(testerContext);\n\n // write junit files\n await Promise.all(\n testsResults.components.map(async (compResult) => {\n const junit = testsResultsToJUnitFormat([compResult]);\n const capsule = context.capsuleNetwork.graphCapsules.getCapsule(compResult.componentId);\n if (!capsule) {\n throw new Error(`unable to find ${compResult.componentId.toString()} in capsules`);\n }\n await fs.outputFile(join(capsule.path, getJUnitArtifactPath()), junit);\n })\n );\n\n return {\n artifacts: getArtifactDef(), // @ts-ignore\n componentsResults: testsResults.components.map((componentTests) => {\n const componentErrors = componentTests.errors;\n const component = context.capsuleNetwork.graphCapsules.getCapsule(componentTests.componentId)?.component;\n if (!component) {\n throw new Error(`unable to find ${componentTests.componentId.toString()} in capsules`);\n }\n\n return {\n component,\n metadata: { tests: componentTests.results },\n errors: componentErrors,\n };\n }),\n };\n }\n}\n\nexport function getJUnitArtifactPath() {\n return join(CAPSULE_ARTIFACTS_DIR, '__bit_junit.xml');\n}\n\nexport function getArtifactDef() {\n return [\n {\n name: 'junit',\n globPatterns: [getJUnitArtifactPath()],\n rootDir: CAPSULE_ARTIFACTS_DIR,\n },\n ];\n}\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;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;AACA;AACA;AACO,MAAMA,UAAN,CAAsC;EAG3CC,WAAW,CAAUC,QAAV,EAAoCC,QAApC,EAA4D;IAAA,KAAlDD,QAAkD,GAAlDA,QAAkD;IAAA,KAAxBC,QAAwB,GAAxBA,QAAwB;IAAA,8CAFvD,gBAEuD;IAAA,sDAD/C,CAACC,0BAAA,CAAeC,EAAhB,CAC+C;EAAE;;EAE5D,MAAPC,OAAO,CAACC,OAAD,EAAkD;IAC7D,MAAMC,MAAc,GAAGD,OAAO,CAACE,GAAR,CAAYC,SAAZ,EAAvB;;IACA,MAAMC,mBAAmB,GAAGC,yBAAA,CAAaC,EAAb,CAAgBN,OAAO,CAACO,U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BAA6E1C,SAA/F;;QACA,IAAI,CAACA,SAAL,EAAgB;UACd,MAAM,IAAIa,KAAJ,CAAW,kBAAiBmC,cAAc,CAACN,WAAf,CAA2BC,QAA3B,EAAsC,cAAlE,CAAN;QACD;;QAED,OAAO;UACL3C,SADK;UAELmD,QAAQ,EAAE;YAAEC,KAAK,EAAEJ,cAAc,CAACK;UAAxB,CAFL;UAGLH,MAAM,EAAED;QAHH,CAAP;MAKD,CAZkB;IAFd,CAAP;EAgBD;;AAxE0C;;;;AA2EtC,SAASH,oBAAT,GAAgC;EACrC,OAAO,IAAApB,YAAA,EAAK4B,gCAAL,EAA4B,iBAA5B,CAAP;AACD;;AAEM,SAASP,cAAT,GAA0B;EAC/B,OAAO,CACL;IACEQ,IAAI,EAAE,OADR;IAEEC,YAAY,EAAE,CAACV,oBAAoB,EAArB,CAFhB;IAGEW,OAAO,EAAEH;EAHX,CADK,CAAP;AAOD"}
1
+ {"version":3,"names":["TesterTask","constructor","aspectId","devFiles","CompilerAspect","id","execute","context","components","capsuleNetwork","originalSeedersCapsules","getAllComponents","tester","env","getTester","componentsSpecFiles","ComponentMap","as","component","detectTestFiles","testCount","toArray","reduce","acc","specs","length","artifacts","componentsResults","specFilesWithCapsule","componentSpecFiles","get","Error","map","specFile","capsule","graphCapsules","getCapsule","compiler","getCompiler","distPath","getDistPathBySrcPath","relative","path","join","testerContext","Object","assign","release","specFiles","rootPath","capsulesRootDir","patterns","testsResults","test","Promise","all","compResult","junit","testsResultsToJUnitFormat","componentId","toString","fs","outputFile","getJUnitArtifactPath","getArtifactDef","componentTests","componentErrors","errors","metadata","tests","results","CAPSULE_ARTIFACTS_DIR","name","globPatterns","rootDir"],"sources":["tester.task.ts"],"sourcesContent":["import { BuildContext, BuiltTaskResult, BuildTask, CAPSULE_ARTIFACTS_DIR } from '@teambit/builder';\nimport fs from 'fs-extra';\nimport { join } from 'path';\nimport { Compiler, CompilerAspect } from '@teambit/compiler';\nimport { DevFilesMain } from '@teambit/dev-files';\nimport { ComponentMap } from '@teambit/component';\nimport { Tester } from './tester';\nimport { detectTestFiles } from './utils';\nimport { testsResultsToJUnitFormat } from './utils/junit-generator';\n\n/**\n * tester build task. Allows to test components during component build.\n */\nexport class TesterTask implements BuildTask {\n readonly name = 'TestComponents';\n readonly dependencies = [CompilerAspect.id];\n constructor(readonly aspectId: string, private devFiles: DevFilesMain) {}\n\n async execute(context: BuildContext): Promise<BuiltTaskResult> {\n const components = context.capsuleNetwork.originalSeedersCapsules.getAllComponents();\n const tester: Tester = context.env.getTester();\n const componentsSpecFiles = ComponentMap.as(components, (component) => {\n return detectTestFiles(component, this.devFiles);\n });\n\n const testCount = componentsSpecFiles.toArray().reduce((acc, [, specs]) => acc + specs.length, 0);\n if (testCount === 0)\n return {\n artifacts: [],\n componentsResults: [],\n };\n\n const specFilesWithCapsule = ComponentMap.as(components, (component) => {\n const componentSpecFiles = componentsSpecFiles.get(component);\n if (!componentSpecFiles) throw new Error('capsule not found');\n const [, specs] = componentSpecFiles;\n return specs.map((specFile) => {\n const capsule = context.capsuleNetwork.graphCapsules.getCapsule(component.id);\n if (!capsule) throw new Error('capsule not found');\n const compiler: Compiler = context.env.getCompiler();\n const distPath = compiler.getDistPathBySrcPath(specFile.relative);\n\n // TODO: fix spec type file need to capsule will return files with type AbstractVinyl\n return { path: join(capsule.path, distPath), relative: distPath };\n });\n });\n\n const testerContext = Object.assign(context, {\n release: true,\n specFiles: specFilesWithCapsule,\n rootPath: context.capsuleNetwork.capsulesRootDir,\n patterns: specFilesWithCapsule,\n });\n\n // TODO: remove after fix AbstractVinyl on capsule\n // @ts-ignore\n const testsResults = await tester.test(testerContext);\n\n // write junit files\n await Promise.all(\n testsResults.components.map(async (compResult) => {\n const junit = testsResultsToJUnitFormat([compResult]);\n const capsule = context.capsuleNetwork.graphCapsules.getCapsule(compResult.componentId);\n if (!capsule) {\n throw new Error(`unable to find ${compResult.componentId.toString()} in capsules`);\n }\n await fs.outputFile(join(capsule.path, getJUnitArtifactPath()), junit);\n })\n );\n\n return {\n artifacts: getArtifactDef(), // @ts-ignore\n componentsResults: testsResults.components.map((componentTests) => {\n const componentErrors = componentTests.errors;\n const component = context.capsuleNetwork.graphCapsules.getCapsule(componentTests.componentId)?.component;\n if (!component) {\n throw new Error(`unable to find ${componentTests.componentId.toString()} in capsules`);\n }\n\n return {\n component,\n metadata: { tests: componentTests.results },\n errors: componentErrors,\n };\n }),\n };\n }\n}\n\nexport function getJUnitArtifactPath() {\n return join(CAPSULE_ARTIFACTS_DIR, '__bit_junit.xml');\n}\n\nexport function getArtifactDef() {\n return [\n {\n name: 'junit',\n globPatterns: [getJUnitArtifactPath()],\n rootDir: CAPSULE_ARTIFACTS_DIR,\n },\n ];\n}\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;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;AACA;AACA;AACO,MAAMA,UAAN,CAAsC;EAG3CC,WAAW,CAAUC,QAAV,EAAoCC,QAApC,EAA4D;IAAA,KAAlDD,QAAkD,GAAlDA,QAAkD;IAAA,KAAxBC,QAAwB,GAAxBA,QAAwB;IAAA,8CAFvD,gBAEuD;IAAA,sDAD/C,CAACC,0BAAA,CAAeC,EAAhB,CAC+C;EAAE;;EAE5D,MAAPC,OAAO,CAACC,OAAD,EAAkD;IAC7D,MAAMC,UAAU,GAAGD,OAAO,CAACE,cAAR,CAAuBC,uBAAvB,CAA+CC,gBAA/C,EAAnB;IACA,MAAMC,MAAc,GAAGL,OAAO,CAACM,GAAR,CAAYC,S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aAAvB,CAAqCC,UAArC,CAAgD6B,cAAc,CAACN,WAA/D,CAAH,0DAAG,sBAA6EzC,SAA/F;;QACA,IAAI,CAACA,SAAL,EAAgB;UACd,MAAM,IAAIa,KAAJ,CAAW,kBAAiBkC,cAAc,CAACN,WAAf,CAA2BC,QAA3B,EAAsC,cAAlE,CAAN;QACD;;QAED,OAAO;UACL1C,SADK;UAELkD,QAAQ,EAAE;YAAEC,KAAK,EAAEJ,cAAc,CAACK;UAAxB,CAFL;UAGLH,MAAM,EAAED;QAHH,CAAP;MAKD,CAZkB;IAFd,CAAP;EAgBD;;AAzE0C;;;;AA4EtC,SAASH,oBAAT,GAAgC;EACrC,OAAO,IAAApB,YAAA,EAAK4B,gCAAL,EAA4B,iBAA5B,CAAP;AACD;;AAEM,SAASP,cAAT,GAA0B;EAC/B,OAAO,CACL;IACEQ,IAAI,EAAE,OADR;IAEEC,YAAY,EAAE,CAACV,oBAAoB,EAArB,CAFhB;IAGEW,OAAO,EAAEH;EAHX,CADK,CAAP;AAOD"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/tester",
3
- "version": "0.0.747",
3
+ "version": "0.0.750",
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.747"
9
+ "version": "0.0.750"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -17,25 +17,25 @@
17
17
  "lodash.compact": "3.0.1",
18
18
  "lodash": "4.17.21",
19
19
  "cli-highlight": "2.1.9",
20
- "classnames": "2.2.6",
21
20
  "junit-report-builder": "3.0.0",
22
21
  "strip-ansi": "6.0.0",
22
+ "classnames": "2.2.6",
23
23
  "@babel/runtime": "7.12.18",
24
24
  "core-js": "^3.0.0",
25
25
  "@teambit/harmony": "0.3.3",
26
26
  "@teambit/design.ui.separator": "0.0.354",
27
27
  "@teambit/documenter.ui.heading": "4.1.1",
28
- "@teambit/cli": "0.0.493",
29
- "@teambit/logger": "0.0.586",
30
- "@teambit/workspace": "0.0.747",
31
- "@teambit/component": "0.0.747",
32
- "@teambit/graphql": "0.0.747",
33
- "@teambit/builder": "0.0.747",
34
- "@teambit/dev-files": "0.0.747",
35
- "@teambit/envs": "0.0.747",
28
+ "@teambit/cli": "0.0.495",
29
+ "@teambit/logger": "0.0.588",
30
+ "@teambit/workspace": "0.0.750",
31
+ "@teambit/component": "0.0.750",
32
+ "@teambit/graphql": "0.0.750",
33
+ "@teambit/builder": "0.0.750",
34
+ "@teambit/dev-files": "0.0.750",
35
+ "@teambit/envs": "0.0.750",
36
36
  "@teambit/tests-results": "0.0.97",
37
- "@teambit/ui": "0.0.747",
38
- "@teambit/compiler": "0.0.747",
37
+ "@teambit/ui": "0.0.750",
38
+ "@teambit/compiler": "0.0.750",
39
39
  "@teambit/bit-error": "0.0.394",
40
40
  "@teambit/defender.ui.test-loader": "0.0.490",
41
41
  "@teambit/defender.ui.test-table": "0.0.495",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@apollo/client": "^3.0.0",
62
- "@teambit/legacy": "1.0.273",
62
+ "@teambit/legacy": "1.0.275",
63
63
  "react-dom": "^16.8.0 || ^17.0.0",
64
64
  "react": "^16.8.0 || ^17.0.0"
65
65
  },
@@ -87,7 +87,7 @@
87
87
  "react": "-"
88
88
  },
89
89
  "peerDependencies": {
90
- "@teambit/legacy": "1.0.273",
90
+ "@teambit/legacy": "1.0.275",
91
91
  "react-dom": "^16.8.0 || ^17.0.0",
92
92
  "react": "^16.8.0 || ^17.0.0"
93
93
  }
@@ -1,2 +1,2 @@
1
- export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@0.0.747/dist/tester.composition.js')]
2
- export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@0.0.747/dist/tester.docs.mdx')]
1
+ export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@0.0.750/dist/tester.composition.js')]
2
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@0.0.750/dist/tester.docs.mdx')]
package/tsconfig.json CHANGED
@@ -30,6 +30,11 @@
30
30
  "preserveConstEnums": true
31
31
  },
32
32
  "exclude": [
33
- "dist"
33
+ "dist",
34
+ "package.json"
35
+ ],
36
+ "include": [
37
+ "**/*",
38
+ "**/*.json"
34
39
  ]
35
40
  }