@teambit/mocha 1.0.226 → 1.0.228

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/mocha@1.0.226" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.defender/mocha@1.0.228" 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/mocha-preview"]=t():e["teambit.defender/mocha-preview"]=t()}(self,(()=>(()=>{"use strict";var e={42200:(e,t,o)=>{var r={id:"teambit.defender/mocha@1.0.226",homepage:"https://bit.cloud/teambit/defender/mocha",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const a=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/mocha.svg"}));a.__bit_component=r,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{compositions:()=>f,compositions_metadata:()=>l,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(42200);o(41594);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},c.apply(this,arguments)}var p={},d="wrapper";function s(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,a);return(0,n.mdx)(d,c({},p,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}s.isMDXComponent=!0;const f=[t],u=[e],l={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/mocha-preview"]=t():e["teambit.defender/mocha-preview"]=t()}(self,(()=>(()=>{"use strict";var e={76674:(e,t,o)=>{var r={id:"teambit.defender/mocha@1.0.228",homepage:"https://bit.cloud/teambit/defender/mocha",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const a=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/mocha.svg"}));a.__bit_component=r,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{compositions:()=>f,compositions_metadata:()=>l,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(76674);o(41594);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},c.apply(this,arguments)}var p={},d="wrapper";function s(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,a);return(0,n.mdx)(d,c({},p,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}s.isMDXComponent=!0;const f=[t],u=[e],l={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
@@ -48,11 +48,7 @@
48
48
  "line": 9,
49
49
  "character": 31
50
50
  },
51
- "name": "Logger",
52
- "componentId": {
53
- "scope": "teambit.harmony",
54
- "name": "logger"
55
- }
51
+ "name": "Logger"
56
52
  },
57
53
  "isOptional": false,
58
54
  "isSpread": false
@@ -115,8 +111,7 @@
115
111
  "line": 13,
116
112
  "character": 18
117
113
  },
118
- "name": "TransformOptions",
119
- "packageName": "@babel/core"
114
+ "name": "TransformOptions"
120
115
  },
121
116
  "isOptional": true,
122
117
  "defaultValue": "{}",
@@ -252,11 +247,7 @@
252
247
  "line": 23,
253
248
  "character": 40
254
249
  },
255
- "name": "LoggerMain",
256
- "componentId": {
257
- "scope": "teambit.harmony",
258
- "name": "logger"
259
- }
250
+ "name": "LoggerMain"
260
251
  }
261
252
  ]
262
253
  },
@@ -365,11 +356,7 @@
365
356
  "line": 9,
366
357
  "character": 31
367
358
  },
368
- "name": "Logger",
369
- "componentId": {
370
- "scope": "teambit.harmony",
371
- "name": "logger"
372
- }
359
+ "name": "Logger"
373
360
  },
374
361
  "isOptional": false,
375
362
  "isSpread": false
@@ -432,8 +419,7 @@
432
419
  "line": 13,
433
420
  "character": 18
434
421
  },
435
- "name": "TransformOptions",
436
- "packageName": "@babel/core"
422
+ "name": "TransformOptions"
437
423
  },
438
424
  "isOptional": true,
439
425
  "defaultValue": "{}",
@@ -569,11 +555,7 @@
569
555
  "line": 23,
570
556
  "character": 40
571
557
  },
572
- "name": "LoggerMain",
573
- "componentId": {
574
- "scope": "teambit.harmony",
575
- "name": "logger"
576
- }
558
+ "name": "LoggerMain"
577
559
  }
578
560
  ]
579
561
  },
@@ -654,7 +636,7 @@
654
636
  "componentId": {
655
637
  "scope": "teambit.defender",
656
638
  "name": "mocha",
657
- "version": "1.0.226"
639
+ "version": "1.0.228"
658
640
  },
659
641
  "taggedModuleExports": []
660
642
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_mocha@1.0.226/dist/mocha.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_mocha@1.0.226/dist/mocha.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_mocha@1.0.228/dist/mocha.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_mocha@1.0.228/dist/mocha.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/mocha",
3
- "version": "1.0.226",
3
+ "version": "1.0.228",
4
4
  "homepage": "https://bit.cloud/teambit/defender/mocha",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.defender",
8
8
  "name": "mocha",
9
- "version": "1.0.226"
9
+ "version": "1.0.228"
10
10
  },
11
11
  "dependencies": {
12
12
  "@babel/core": "7.19.6",
@@ -15,15 +15,15 @@
15
15
  "p-map-series": "2.1.0",
16
16
  "@teambit/harmony": "0.4.6",
17
17
  "@teambit/tests-results": "1.0.4",
18
- "@teambit/cli": "0.0.859",
19
- "@teambit/logger": "0.0.952",
20
- "@teambit/tester": "1.0.226"
18
+ "@teambit/cli": "0.0.861",
19
+ "@teambit/logger": "0.0.954",
20
+ "@teambit/tester": "1.0.228"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/mocha": "9.1.0",
24
24
  "@types/lodash": "4.14.165",
25
25
  "chai": "4.3.0",
26
- "@teambit/harmony.envs.core-aspect-env": "0.0.27"
26
+ "@teambit/harmony.envs.core-aspect-env": "0.0.30"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": "^17.0.0 || ^18.0.0",
package/tsconfig.json CHANGED
@@ -20,7 +20,8 @@
20
20
  "emitDeclarationOnly": true,
21
21
  "strict": true,
22
22
  "strictPropertyInitialization": false,
23
- "noImplicitAny": false
23
+ "noImplicitAny": false,
24
+ "composite": true
24
25
  },
25
26
  "exclude": [
26
27
  "artifacts",
@@ -35,5 +36,16 @@
35
36
  "include": [
36
37
  "**/*",
37
38
  "**/*.json"
39
+ ],
40
+ "references": [
41
+ {
42
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
43
+ },
44
+ {
45
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.954"
46
+ },
47
+ {
48
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@1.0.228"
49
+ }
38
50
  ]
39
51
  }
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { MochaAspect } from './mocha.aspect';
2
- export type { MochaMain } from './mocha.main.runtime';
3
- export default MochaAspect;
4
- export { MochaAspect };
@@ -1,2 +0,0 @@
1
- import { Aspect } from '@teambit/harmony';
2
- export declare const MochaAspect: Aspect;
@@ -1 +0,0 @@
1
- export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import type { TransformOptions } from '@babel/core';
2
- import type Mocha from 'mocha';
3
- import { Logger, LoggerMain } from '@teambit/logger';
4
- import { MochaTester } from './mocha.tester';
5
- export declare class MochaMain {
6
- private logger;
7
- constructor(logger: Logger);
8
- createTester(mochaConfig?: Mocha.MochaOptions, babelConfig?: TransformOptions, mochaModule?: any): MochaTester;
9
- static slots: never[];
10
- static dependencies: import("@teambit/harmony").Aspect[];
11
- static runtime: import("@teambit/harmony").RuntimeDefinition;
12
- static provider([loggerMain]: [LoggerMain]): Promise<MochaMain>;
13
- }
@@ -1,30 +0,0 @@
1
- import { Logger } from '@teambit/logger';
2
- import { Tester, CallbackFn, TesterContext, Tests } from '@teambit/tester';
3
- import Mocha from 'mocha';
4
- import type { TransformOptions } from '@babel/core';
5
- export declare class MochaTester implements Tester {
6
- readonly id: string;
7
- private logger;
8
- readonly mochaConfig: Mocha.MochaOptions;
9
- /**
10
- * babel config are needed when the spec files are not native javascript and need to be compiled.
11
- * pass the same config you pass to your babel compiler if you're using one.
12
- */
13
- private babelConfig;
14
- private MochaModule;
15
- _callback: CallbackFn | undefined;
16
- displayName: string;
17
- constructor(id: string, logger: Logger, mochaConfig: Mocha.MochaOptions,
18
- /**
19
- * babel config are needed when the spec files are not native javascript and need to be compiled.
20
- * pass the same config you pass to your babel compiler if you're using one.
21
- */
22
- babelConfig: TransformOptions, MochaModule: typeof Mocha);
23
- test(context: TesterContext): Promise<Tests>;
24
- /**
25
- * @todo: make this work. currently, it doesn't update the UI upon changes.
26
- */
27
- onTestRunComplete(callback: CallbackFn): Promise<void>;
28
- private runMochaOnOneFile;
29
- version(): string;
30
- }