@teambit/jest 1.0.337 → 1.0.338

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/jest@1.0.337" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.defender/jest@1.0.338" 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/jest-preview"]=t():e["teambit.defender/jest-preview"]=t()}(self,(()=>(()=>{"use strict";var e={42894:(e,t,o)=>{var r={id:"teambit.defender/jest@1.0.337",homepage:"https://bit.cloud/teambit/defender/jest",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/brands/logo-jest.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={};o.r(r),o.d(r,{compositions:()=>f,compositions_metadata:()=>v,overview:()=>m});var n={};o.r(n),o.d(n,{default:()=>l});var i=o(42894);o(41594);const a=MdxJsReact,s=TeambitMdxUiMdxScopeContext;var c=["components"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},d.apply(null,arguments)}var p={},u="wrapper";function l(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={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;o[r]=e[r]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,c);return(0,a.mdx)(u,d({},p,o,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(s.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}l.isMDXComponent=!0;const f=[i],m=[n],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return 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/jest-preview"]=t():e["teambit.defender/jest-preview"]=t()}(self,(()=>(()=>{"use strict";var e={80827:(e,t,o)=>{var r={id:"teambit.defender/jest@1.0.338",homepage:"https://bit.cloud/teambit/defender/jest",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/brands/logo-jest.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={};o.r(r),o.d(r,{compositions:()=>f,compositions_metadata:()=>v,overview:()=>m});var n={};o.r(n),o.d(n,{default:()=>l});var i=o(80827);o(41594);const a=MdxJsReact,s=TeambitMdxUiMdxScopeContext;var c=["components"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},d.apply(null,arguments)}var p={},u="wrapper";function l(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={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;o[r]=e[r]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,c);return(0,a.mdx)(u,d({},p,o,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(s.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}l.isMDXComponent=!0;const f=[i],m=[n],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return r})()));
@@ -486,7 +486,7 @@
486
486
  "_legacy": {
487
487
  "scope": "teambit.defender",
488
488
  "name": "jest",
489
- "version": "1.0.337"
489
+ "version": "1.0.338"
490
490
  },
491
491
  "_scope": "teambit.defender"
492
492
  }
@@ -507,7 +507,7 @@
507
507
  "__schema": "ClassSchema",
508
508
  "location": {
509
509
  "filePath": "jest.main.runtime.ts",
510
- "line": 10,
510
+ "line": 11,
511
511
  "character": 1
512
512
  },
513
513
  "signature": "class JestMain",
@@ -517,7 +517,7 @@
517
517
  "__schema": "ConstructorSchema",
518
518
  "location": {
519
519
  "filePath": "jest.main.runtime.ts",
520
- "line": 11,
520
+ "line": 12,
521
521
  "character": 3
522
522
  },
523
523
  "signature": "constructor JestMain(jestWorker: HarmonyWorker<JestWorker>, logger: Logger): JestMain",
@@ -527,7 +527,7 @@
527
527
  "__schema": "ParameterSchema",
528
528
  "location": {
529
529
  "filePath": "jest.main.runtime.ts",
530
- "line": 11,
530
+ "line": 12,
531
531
  "character": 15
532
532
  },
533
533
  "name": "jestWorker",
@@ -535,7 +535,7 @@
535
535
  "__schema": "TypeRefSchema",
536
536
  "location": {
537
537
  "filePath": "jest.main.runtime.ts",
538
- "line": 11,
538
+ "line": 12,
539
539
  "character": 35
540
540
  },
541
541
  "name": "HarmonyWorker",
@@ -544,7 +544,7 @@
544
544
  "__schema": "TypeRefSchema",
545
545
  "location": {
546
546
  "filePath": "jest.main.runtime.ts",
547
- "line": 11,
547
+ "line": 12,
548
548
  "character": 49
549
549
  },
550
550
  "name": "JestWorker"
@@ -558,7 +558,7 @@
558
558
  "__schema": "ParameterSchema",
559
559
  "location": {
560
560
  "filePath": "jest.main.runtime.ts",
561
- "line": 11,
561
+ "line": 12,
562
562
  "character": 62
563
563
  },
564
564
  "name": "logger",
@@ -566,7 +566,7 @@
566
566
  "__schema": "TypeRefSchema",
567
567
  "location": {
568
568
  "filePath": "jest.main.runtime.ts",
569
- "line": 11,
569
+ "line": 12,
570
570
  "character": 78
571
571
  },
572
572
  "name": "Logger"
@@ -579,7 +579,7 @@
579
579
  "__schema": "ThisTypeSchema",
580
580
  "location": {
581
581
  "filePath": "jest.main.runtime.ts",
582
- "line": 10,
582
+ "line": 11,
583
583
  "character": 1
584
584
  },
585
585
  "name": "JestMain"
@@ -590,9 +590,31 @@
590
590
  "__schema": "FunctionLikeSchema",
591
591
  "location": {
592
592
  "filePath": "jest.main.runtime.ts",
593
- "line": 13,
593
+ "line": 17,
594
594
  "character": 3
595
595
  },
596
+ "doc": {
597
+ "__schema": "DocSchema",
598
+ "location": {
599
+ "filePath": "jest.main.runtime.ts",
600
+ "line": 14,
601
+ "character": 3
602
+ },
603
+ "raw": "/**\n * @deprecated use jest tester from https://bit.cloud/teambit/defender/jest-tester\n */",
604
+ "comment": "",
605
+ "tags": [
606
+ {
607
+ "__schema": "TagSchema",
608
+ "location": {
609
+ "filePath": "jest.main.runtime.ts",
610
+ "line": 15,
611
+ "character": 6
612
+ },
613
+ "tagName": "deprecated",
614
+ "comment": "use jest tester from https://bit.cloud/teambit/defender/jest-tester"
615
+ }
616
+ ]
617
+ },
596
618
  "signature": "(method) JestMain.createTester(jestConfig: any, jestModulePath?: string, opts?: JestTesterOptions): JestTester",
597
619
  "name": "createTester",
598
620
  "params": [
@@ -600,7 +622,7 @@
600
622
  "__schema": "ParameterSchema",
601
623
  "location": {
602
624
  "filePath": "jest.main.runtime.ts",
603
- "line": 13,
625
+ "line": 17,
604
626
  "character": 16
605
627
  },
606
628
  "name": "jestConfig",
@@ -608,7 +630,7 @@
608
630
  "__schema": "KeywordTypeSchema",
609
631
  "location": {
610
632
  "filePath": "jest.main.runtime.ts",
611
- "line": 13,
633
+ "line": 17,
612
634
  "character": 28
613
635
  },
614
636
  "name": "any"
@@ -620,7 +642,7 @@
620
642
  "__schema": "ParameterSchema",
621
643
  "location": {
622
644
  "filePath": "jest.main.runtime.ts",
623
- "line": 13,
645
+ "line": 17,
624
646
  "character": 33
625
647
  },
626
648
  "name": "jestModulePath",
@@ -628,7 +650,7 @@
628
650
  "__schema": "InferenceTypeSchema",
629
651
  "location": {
630
652
  "filePath": "jest.main.runtime.ts",
631
- "line": 13,
653
+ "line": 17,
632
654
  "character": 33
633
655
  },
634
656
  "type": "string"
@@ -641,7 +663,7 @@
641
663
  "__schema": "ParameterSchema",
642
664
  "location": {
643
665
  "filePath": "jest.main.runtime.ts",
644
- "line": 13,
666
+ "line": 17,
645
667
  "character": 75
646
668
  },
647
669
  "name": "opts",
@@ -649,7 +671,7 @@
649
671
  "__schema": "TypeRefSchema",
650
672
  "location": {
651
673
  "filePath": "jest.main.runtime.ts",
652
- "line": 13,
674
+ "line": 17,
653
675
  "character": 82
654
676
  },
655
677
  "name": "JestTesterOptions"
@@ -662,7 +684,7 @@
662
684
  "__schema": "TypeRefSchema",
663
685
  "location": {
664
686
  "filePath": "jest.main.runtime.ts",
665
- "line": 13,
687
+ "line": 17,
666
688
  "character": 3
667
689
  },
668
690
  "name": "JestTester"
@@ -673,7 +695,7 @@
673
695
  "__schema": "VariableLikeSchema",
674
696
  "location": {
675
697
  "filePath": "jest.main.runtime.ts",
676
- "line": 17,
698
+ "line": 24,
677
699
  "character": 3
678
700
  },
679
701
  "signature": "(property) JestMain.runtime: RuntimeDefinition",
@@ -682,7 +704,7 @@
682
704
  "__schema": "InferenceTypeSchema",
683
705
  "location": {
684
706
  "filePath": "jest.main.runtime.ts",
685
- "line": 17,
707
+ "line": 24,
686
708
  "character": 3
687
709
  },
688
710
  "type": "RuntimeDefinition"
@@ -694,7 +716,7 @@
694
716
  "__schema": "VariableLikeSchema",
695
717
  "location": {
696
718
  "filePath": "jest.main.runtime.ts",
697
- "line": 18,
719
+ "line": 25,
698
720
  "character": 3
699
721
  },
700
722
  "signature": "(property) JestMain.dependencies: Aspect[]",
@@ -703,7 +725,7 @@
703
725
  "__schema": "InferenceTypeSchema",
704
726
  "location": {
705
727
  "filePath": "jest.main.runtime.ts",
706
- "line": 18,
728
+ "line": 25,
707
729
  "character": 3
708
730
  },
709
731
  "type": "Aspect[]"
@@ -715,7 +737,7 @@
715
737
  "__schema": "FunctionLikeSchema",
716
738
  "location": {
717
739
  "filePath": "jest.main.runtime.ts",
718
- "line": 20,
740
+ "line": 27,
719
741
  "character": 3
720
742
  },
721
743
  "signature": "(method) JestMain.provider([worker, loggerAspect]: [WorkerMain, LoggerMain]): Promise<JestMain>",
@@ -725,7 +747,7 @@
725
747
  "__schema": "ParameterSchema",
726
748
  "location": {
727
749
  "filePath": "jest.main.runtime.ts",
728
- "line": 20,
750
+ "line": 27,
729
751
  "character": 25
730
752
  },
731
753
  "name": "[ worker, loggerAspect ]",
@@ -733,7 +755,7 @@
733
755
  "__schema": "TupleTypeSchema",
734
756
  "location": {
735
757
  "filePath": "jest.main.runtime.ts",
736
- "line": 20,
758
+ "line": 27,
737
759
  "character": 49
738
760
  },
739
761
  "elements": [
@@ -741,7 +763,7 @@
741
763
  "__schema": "TypeRefSchema",
742
764
  "location": {
743
765
  "filePath": "jest.main.runtime.ts",
744
- "line": 20,
766
+ "line": 27,
745
767
  "character": 50
746
768
  },
747
769
  "name": "WorkerMain"
@@ -750,7 +772,7 @@
750
772
  "__schema": "TypeRefSchema",
751
773
  "location": {
752
774
  "filePath": "jest.main.runtime.ts",
753
- "line": 20,
775
+ "line": 27,
754
776
  "character": 62
755
777
  },
756
778
  "name": "LoggerMain"
@@ -765,7 +787,7 @@
765
787
  "__schema": "InferenceTypeSchema",
766
788
  "location": {
767
789
  "filePath": "jest.main.runtime.ts",
768
- "line": 20,
790
+ "line": 27,
769
791
  "character": 3
770
792
  },
771
793
  "type": "Promise<JestMain>"
@@ -1482,7 +1504,7 @@
1482
1504
  "_legacy": {
1483
1505
  "scope": "teambit.defender",
1484
1506
  "name": "jest",
1485
- "version": "1.0.337"
1507
+ "version": "1.0.338"
1486
1508
  },
1487
1509
  "_scope": "teambit.defender"
1488
1510
  }
@@ -1505,7 +1527,7 @@
1505
1527
  "__schema": "VariableLikeSchema",
1506
1528
  "location": {
1507
1529
  "filePath": "jest.main.runtime.ts",
1508
- "line": 8,
1530
+ "line": 9,
1509
1531
  "character": 14
1510
1532
  },
1511
1533
  "signature": "const WORKER_NAME: \"jest\"",
@@ -1514,7 +1536,7 @@
1514
1536
  "__schema": "InferenceTypeSchema",
1515
1537
  "location": {
1516
1538
  "filePath": "jest.main.runtime.ts",
1517
- "line": 8,
1539
+ "line": 9,
1518
1540
  "character": 14
1519
1541
  },
1520
1542
  "type": "\"jest\""
@@ -1526,7 +1548,7 @@
1526
1548
  "__schema": "ClassSchema",
1527
1549
  "location": {
1528
1550
  "filePath": "jest.main.runtime.ts",
1529
- "line": 10,
1551
+ "line": 11,
1530
1552
  "character": 1
1531
1553
  },
1532
1554
  "signature": "class JestMain",
@@ -1536,7 +1558,7 @@
1536
1558
  "__schema": "ConstructorSchema",
1537
1559
  "location": {
1538
1560
  "filePath": "jest.main.runtime.ts",
1539
- "line": 11,
1561
+ "line": 12,
1540
1562
  "character": 3
1541
1563
  },
1542
1564
  "signature": "constructor JestMain(jestWorker: HarmonyWorker<JestWorker>, logger: Logger): JestMain",
@@ -1546,7 +1568,7 @@
1546
1568
  "__schema": "ParameterSchema",
1547
1569
  "location": {
1548
1570
  "filePath": "jest.main.runtime.ts",
1549
- "line": 11,
1571
+ "line": 12,
1550
1572
  "character": 15
1551
1573
  },
1552
1574
  "name": "jestWorker",
@@ -1554,7 +1576,7 @@
1554
1576
  "__schema": "TypeRefSchema",
1555
1577
  "location": {
1556
1578
  "filePath": "jest.main.runtime.ts",
1557
- "line": 11,
1579
+ "line": 12,
1558
1580
  "character": 35
1559
1581
  },
1560
1582
  "name": "HarmonyWorker",
@@ -1563,7 +1585,7 @@
1563
1585
  "__schema": "TypeRefSchema",
1564
1586
  "location": {
1565
1587
  "filePath": "jest.main.runtime.ts",
1566
- "line": 11,
1588
+ "line": 12,
1567
1589
  "character": 49
1568
1590
  },
1569
1591
  "name": "JestWorker"
@@ -1577,7 +1599,7 @@
1577
1599
  "__schema": "ParameterSchema",
1578
1600
  "location": {
1579
1601
  "filePath": "jest.main.runtime.ts",
1580
- "line": 11,
1602
+ "line": 12,
1581
1603
  "character": 62
1582
1604
  },
1583
1605
  "name": "logger",
@@ -1585,7 +1607,7 @@
1585
1607
  "__schema": "TypeRefSchema",
1586
1608
  "location": {
1587
1609
  "filePath": "jest.main.runtime.ts",
1588
- "line": 11,
1610
+ "line": 12,
1589
1611
  "character": 78
1590
1612
  },
1591
1613
  "name": "Logger"
@@ -1598,7 +1620,7 @@
1598
1620
  "__schema": "ThisTypeSchema",
1599
1621
  "location": {
1600
1622
  "filePath": "jest.main.runtime.ts",
1601
- "line": 10,
1623
+ "line": 11,
1602
1624
  "character": 1
1603
1625
  },
1604
1626
  "name": "JestMain"
@@ -1609,9 +1631,31 @@
1609
1631
  "__schema": "FunctionLikeSchema",
1610
1632
  "location": {
1611
1633
  "filePath": "jest.main.runtime.ts",
1612
- "line": 13,
1634
+ "line": 17,
1613
1635
  "character": 3
1614
1636
  },
1637
+ "doc": {
1638
+ "__schema": "DocSchema",
1639
+ "location": {
1640
+ "filePath": "jest.main.runtime.ts",
1641
+ "line": 14,
1642
+ "character": 3
1643
+ },
1644
+ "raw": "/**\n * @deprecated use jest tester from https://bit.cloud/teambit/defender/jest-tester\n */",
1645
+ "comment": "",
1646
+ "tags": [
1647
+ {
1648
+ "__schema": "TagSchema",
1649
+ "location": {
1650
+ "filePath": "jest.main.runtime.ts",
1651
+ "line": 15,
1652
+ "character": 6
1653
+ },
1654
+ "tagName": "deprecated",
1655
+ "comment": "use jest tester from https://bit.cloud/teambit/defender/jest-tester"
1656
+ }
1657
+ ]
1658
+ },
1615
1659
  "signature": "(method) JestMain.createTester(jestConfig: any, jestModulePath?: string, opts?: JestTesterOptions): JestTester",
1616
1660
  "name": "createTester",
1617
1661
  "params": [
@@ -1619,7 +1663,7 @@
1619
1663
  "__schema": "ParameterSchema",
1620
1664
  "location": {
1621
1665
  "filePath": "jest.main.runtime.ts",
1622
- "line": 13,
1666
+ "line": 17,
1623
1667
  "character": 16
1624
1668
  },
1625
1669
  "name": "jestConfig",
@@ -1627,7 +1671,7 @@
1627
1671
  "__schema": "KeywordTypeSchema",
1628
1672
  "location": {
1629
1673
  "filePath": "jest.main.runtime.ts",
1630
- "line": 13,
1674
+ "line": 17,
1631
1675
  "character": 28
1632
1676
  },
1633
1677
  "name": "any"
@@ -1639,7 +1683,7 @@
1639
1683
  "__schema": "ParameterSchema",
1640
1684
  "location": {
1641
1685
  "filePath": "jest.main.runtime.ts",
1642
- "line": 13,
1686
+ "line": 17,
1643
1687
  "character": 33
1644
1688
  },
1645
1689
  "name": "jestModulePath",
@@ -1647,7 +1691,7 @@
1647
1691
  "__schema": "InferenceTypeSchema",
1648
1692
  "location": {
1649
1693
  "filePath": "jest.main.runtime.ts",
1650
- "line": 13,
1694
+ "line": 17,
1651
1695
  "character": 33
1652
1696
  },
1653
1697
  "type": "string"
@@ -1660,7 +1704,7 @@
1660
1704
  "__schema": "ParameterSchema",
1661
1705
  "location": {
1662
1706
  "filePath": "jest.main.runtime.ts",
1663
- "line": 13,
1707
+ "line": 17,
1664
1708
  "character": 75
1665
1709
  },
1666
1710
  "name": "opts",
@@ -1668,7 +1712,7 @@
1668
1712
  "__schema": "TypeRefSchema",
1669
1713
  "location": {
1670
1714
  "filePath": "jest.main.runtime.ts",
1671
- "line": 13,
1715
+ "line": 17,
1672
1716
  "character": 82
1673
1717
  },
1674
1718
  "name": "JestTesterOptions"
@@ -1681,7 +1725,7 @@
1681
1725
  "__schema": "TypeRefSchema",
1682
1726
  "location": {
1683
1727
  "filePath": "jest.main.runtime.ts",
1684
- "line": 13,
1728
+ "line": 17,
1685
1729
  "character": 3
1686
1730
  },
1687
1731
  "name": "JestTester"
@@ -1692,7 +1736,7 @@
1692
1736
  "__schema": "VariableLikeSchema",
1693
1737
  "location": {
1694
1738
  "filePath": "jest.main.runtime.ts",
1695
- "line": 17,
1739
+ "line": 24,
1696
1740
  "character": 3
1697
1741
  },
1698
1742
  "signature": "(property) JestMain.runtime: RuntimeDefinition",
@@ -1701,7 +1745,7 @@
1701
1745
  "__schema": "InferenceTypeSchema",
1702
1746
  "location": {
1703
1747
  "filePath": "jest.main.runtime.ts",
1704
- "line": 17,
1748
+ "line": 24,
1705
1749
  "character": 3
1706
1750
  },
1707
1751
  "type": "RuntimeDefinition"
@@ -1713,7 +1757,7 @@
1713
1757
  "__schema": "VariableLikeSchema",
1714
1758
  "location": {
1715
1759
  "filePath": "jest.main.runtime.ts",
1716
- "line": 18,
1760
+ "line": 25,
1717
1761
  "character": 3
1718
1762
  },
1719
1763
  "signature": "(property) JestMain.dependencies: Aspect[]",
@@ -1722,7 +1766,7 @@
1722
1766
  "__schema": "InferenceTypeSchema",
1723
1767
  "location": {
1724
1768
  "filePath": "jest.main.runtime.ts",
1725
- "line": 18,
1769
+ "line": 25,
1726
1770
  "character": 3
1727
1771
  },
1728
1772
  "type": "Aspect[]"
@@ -1734,7 +1778,7 @@
1734
1778
  "__schema": "FunctionLikeSchema",
1735
1779
  "location": {
1736
1780
  "filePath": "jest.main.runtime.ts",
1737
- "line": 20,
1781
+ "line": 27,
1738
1782
  "character": 3
1739
1783
  },
1740
1784
  "signature": "(method) JestMain.provider([worker, loggerAspect]: [WorkerMain, LoggerMain]): Promise<JestMain>",
@@ -1744,7 +1788,7 @@
1744
1788
  "__schema": "ParameterSchema",
1745
1789
  "location": {
1746
1790
  "filePath": "jest.main.runtime.ts",
1747
- "line": 20,
1791
+ "line": 27,
1748
1792
  "character": 25
1749
1793
  },
1750
1794
  "name": "[ worker, loggerAspect ]",
@@ -1752,7 +1796,7 @@
1752
1796
  "__schema": "TupleTypeSchema",
1753
1797
  "location": {
1754
1798
  "filePath": "jest.main.runtime.ts",
1755
- "line": 20,
1799
+ "line": 27,
1756
1800
  "character": 49
1757
1801
  },
1758
1802
  "elements": [
@@ -1760,7 +1804,7 @@
1760
1804
  "__schema": "TypeRefSchema",
1761
1805
  "location": {
1762
1806
  "filePath": "jest.main.runtime.ts",
1763
- "line": 20,
1807
+ "line": 27,
1764
1808
  "character": 50
1765
1809
  },
1766
1810
  "name": "WorkerMain"
@@ -1769,7 +1813,7 @@
1769
1813
  "__schema": "TypeRefSchema",
1770
1814
  "location": {
1771
1815
  "filePath": "jest.main.runtime.ts",
1772
- "line": 20,
1816
+ "line": 27,
1773
1817
  "character": 62
1774
1818
  },
1775
1819
  "name": "LoggerMain"
@@ -1784,7 +1828,7 @@
1784
1828
  "__schema": "InferenceTypeSchema",
1785
1829
  "location": {
1786
1830
  "filePath": "jest.main.runtime.ts",
1787
- "line": 20,
1831
+ "line": 27,
1788
1832
  "character": 3
1789
1833
  },
1790
1834
  "type": "Promise<JestMain>"
@@ -1804,7 +1848,7 @@
1804
1848
  "__schema": "UnImplementedSchema",
1805
1849
  "location": {
1806
1850
  "filePath": "jest.main.runtime.ts",
1807
- "line": 27,
1851
+ "line": 34,
1808
1852
  "character": 1
1809
1853
  },
1810
1854
  "name": "JestAspect.addRuntime(JestMain);",
@@ -1853,7 +1897,7 @@
1853
1897
  "componentId": {
1854
1898
  "scope": "teambit.defender",
1855
1899
  "name": "jest",
1856
- "version": "1.0.337"
1900
+ "version": "1.0.338"
1857
1901
  },
1858
1902
  "taggedModuleExports": []
1859
1903
  }
@@ -7,6 +7,9 @@ export declare class JestMain {
7
7
  private jestWorker;
8
8
  private logger;
9
9
  constructor(jestWorker: HarmonyWorker<JestWorker>, logger: Logger);
10
+ /**
11
+ * @deprecated use jest tester from https://bit.cloud/teambit/defender/jest-tester
12
+ */
10
13
  createTester(jestConfig: any, jestModulePath?: string, opts?: JestTesterOptions): JestTester;
11
14
  static runtime: import("@teambit/harmony").RuntimeDefinition;
12
15
  static dependencies: import("@teambit/harmony").Aspect[];
@@ -25,6 +25,13 @@ function _worker() {
25
25
  };
26
26
  return data;
27
27
  }
28
+ function _constants() {
29
+ const data = require("@teambit/legacy/dist/constants");
30
+ _constants = function () {
31
+ return data;
32
+ };
33
+ return data;
34
+ }
28
35
  function _jest() {
29
36
  const data = require("./jest.aspect");
30
37
  _jest = function () {
@@ -48,7 +55,12 @@ class JestMain {
48
55
  this.jestWorker = jestWorker;
49
56
  this.logger = logger;
50
57
  }
58
+
59
+ /**
60
+ * @deprecated use jest tester from https://bit.cloud/teambit/defender/jest-tester
61
+ */
51
62
  createTester(jestConfig, jestModulePath = require.resolve('jest'), opts) {
63
+ this.logger.consoleWarning(`The 'Jest' aspect is deprecated. Please use the 'jest tester' component instead. For more details, visit: https://${(0, _constants().getCloudDomain)()}/teambit/defender/jest-tester`);
52
64
  return new (_jest2().JestTester)(_jest().JestAspect.id, jestConfig, jestModulePath, this.jestWorker, this.logger, opts);
53
65
  }
54
66
  static async provider([worker, loggerAspect]) {
@@ -1 +1 @@
1
- {"version":3,"names":["_cli","data","require","_logger","_worker","_jest","_jest2","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","WORKER_NAME","exports","JestMain","constructor","jestWorker","logger","createTester","jestConfig","jestModulePath","resolve","opts","JestTester","JestAspect","id","provider","worker","loggerAspect","createLogger","declareWorker","MainRuntime","WorkerAspect","LoggerAspect","addRuntime"],"sources":["jest.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { LoggerAspect, LoggerMain, Logger } from '@teambit/logger';\nimport { WorkerAspect, WorkerMain, HarmonyWorker } from '@teambit/worker';\nimport { JestAspect } from './jest.aspect';\nimport { JestTester, JestTesterOptions } from './jest.tester';\nimport type { JestWorker } from './jest.worker';\n\nexport const WORKER_NAME = 'jest';\n\nexport class JestMain {\n constructor(private jestWorker: HarmonyWorker<JestWorker>, private logger: Logger) {}\n\n createTester(jestConfig: any, jestModulePath = require.resolve('jest'), opts?: JestTesterOptions) {\n return new JestTester(JestAspect.id, jestConfig, jestModulePath, this.jestWorker, this.logger, opts);\n }\n\n static runtime = MainRuntime;\n static dependencies = [WorkerAspect, LoggerAspect];\n\n static async provider([worker, loggerAspect]: [WorkerMain, LoggerMain]) {\n const logger = loggerAspect.createLogger(JestAspect.id);\n const jestWorker = worker.declareWorker<JestWorker>(WORKER_NAME, require.resolve('./jest.worker'));\n return new JestMain(jestWorker, logger);\n }\n}\n\nJestAspect.addRuntime(JestMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAA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,yEAAAd,CAAA,GAAAe,MAAA,GAAAC,MAAA,EAAAf,CAAA;AAGvD,MAAMgB,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,MAAM;AAE1B,MAAME,QAAQ,CAAC;EACpBC,WAAWA,CAASC,UAAqC,EAAUC,MAAc,EAAE;IAAA,KAA/DD,UAAqC,GAArCA,UAAqC;IAAA,KAAUC,MAAc,GAAdA,MAAc;EAAG;EAEpFC,YAAYA,CAACC,UAAe,EAAEC,cAAc,GAAGhC,OAAO,CAACiC,OAAO,CAAC,MAAM,CAAC,EAAEC,IAAwB,EAAE;IAChG,OAAO,KAAIC,mBAAU,EAACC,kBAAU,CAACC,EAAE,EAAEN,UAAU,EAAEC,cAAc,EAAE,IAAI,CAACJ,UAAU,EAAE,IAAI,CAACC,MAAM,EAAEK,IAAI,CAAC;EACtG;EAKA,aAAaI,QAAQA,CAAC,CAACC,MAAM,EAAEC,YAAY,CAA2B,EAAE;IACtE,MAAMX,MAAM,GAAGW,YAAY,CAACC,YAAY,CAACL,kBAAU,CAACC,EAAE,CAAC;IACvD,MAAMT,UAAU,GAAGW,MAAM,CAACG,aAAa,CAAalB,WAAW,EAAExB,OAAO,CAACiC,OAAO,CAAC,eAAe,CAAC,CAAC;IAClG,OAAO,IAAIP,QAAQ,CAACE,UAAU,EAAEC,MAAM,CAAC;EACzC;AACF;AAACJ,OAAA,CAAAC,QAAA,GAAAA,QAAA;AAAArB,eAAA,CAfYqB,QAAQ,aAOFiB,kBAAW;AAAAtC,eAAA,CAPjBqB,QAAQ,kBAQG,CAACkB,sBAAY,EAAEC,sBAAY,CAAC;AASpDT,kBAAU,CAACU,UAAU,CAACpB,QAAQ,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_cli","data","require","_logger","_worker","_constants","_jest","_jest2","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","WORKER_NAME","exports","JestMain","constructor","jestWorker","logger","createTester","jestConfig","jestModulePath","resolve","opts","consoleWarning","getCloudDomain","JestTester","JestAspect","id","provider","worker","loggerAspect","createLogger","declareWorker","MainRuntime","WorkerAspect","LoggerAspect","addRuntime"],"sources":["jest.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { LoggerAspect, LoggerMain, Logger } from '@teambit/logger';\nimport { WorkerAspect, WorkerMain, HarmonyWorker } from '@teambit/worker';\nimport { getCloudDomain } from '@teambit/legacy/dist/constants';\nimport { JestAspect } from './jest.aspect';\nimport { JestTester, JestTesterOptions } from './jest.tester';\nimport type { JestWorker } from './jest.worker';\n\nexport const WORKER_NAME = 'jest';\n\nexport class JestMain {\n constructor(private jestWorker: HarmonyWorker<JestWorker>, private logger: Logger) {}\n\n /**\n * @deprecated use jest tester from https://bit.cloud/teambit/defender/jest-tester\n */\n createTester(jestConfig: any, jestModulePath = require.resolve('jest'), opts?: JestTesterOptions) {\n this.logger.consoleWarning(\n `The 'Jest' aspect is deprecated. Please use the 'jest tester' component instead. For more details, visit: https://${getCloudDomain()}/teambit/defender/jest-tester`\n );\n return new JestTester(JestAspect.id, jestConfig, jestModulePath, this.jestWorker, this.logger, opts);\n }\n\n static runtime = MainRuntime;\n static dependencies = [WorkerAspect, LoggerAspect];\n\n static async provider([worker, loggerAspect]: [WorkerMain, LoggerMain]) {\n const logger = loggerAspect.createLogger(JestAspect.id);\n const jestWorker = worker.declareWorker<JestWorker>(WORKER_NAME, require.resolve('./jest.worker'));\n return new JestMain(jestWorker, logger);\n }\n}\n\nJestAspect.addRuntime(JestMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,QAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EA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AAf,CAAA;AAGvD,MAAMgB,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,MAAM;AAE1B,MAAME,QAAQ,CAAC;EACpBC,WAAWA,CAASC,UAAqC,EAAUC,MAAc,EAAE;IAAA,KAA/DD,UAAqC,GAArCA,UAAqC;IAAA,KAAUC,MAAc,GAAdA,MAAc;EAAG;;EAEpF;AACF;AACA;EACEC,YAAYA,CAACC,UAAe,EAAEC,cAAc,GAAGjC,OAAO,CAACkC,OAAO,CAAC,MAAM,CAAC,EAAEC,IAAwB,EAAE;IAChG,IAAI,CAACL,MAAM,CAACM,cAAc,CACxB,qHAAqH,IAAAC,2BAAc,EAAC,CAAC,+BACvI,CAAC;IACD,OAAO,KAAIC,mBAAU,EAACC,kBAAU,CAACC,EAAE,EAAER,UAAU,EAAEC,cAAc,EAAE,IAAI,CAACJ,UAAU,EAAE,IAAI,CAACC,MAAM,EAAEK,IAAI,CAAC;EACtG;EAKA,aAAaM,QAAQA,CAAC,CAACC,MAAM,EAAEC,YAAY,CAA2B,EAAE;IACtE,MAAMb,MAAM,GAAGa,YAAY,CAACC,YAAY,CAACL,kBAAU,CAACC,EAAE,CAAC;IACvD,MAAMX,UAAU,GAAGa,MAAM,CAACG,aAAa,CAAapB,WAAW,EAAEzB,OAAO,CAACkC,OAAO,CAAC,eAAe,CAAC,CAAC;IAClG,OAAO,IAAIP,QAAQ,CAACE,UAAU,EAAEC,MAAM,CAAC;EACzC;AACF;AAACJ,OAAA,CAAAC,QAAA,GAAAA,QAAA;AAAArB,eAAA,CArBYqB,QAAQ,aAaFmB,kBAAW;AAAAxC,eAAA,CAbjBqB,QAAQ,kBAcG,CAACoB,sBAAY,EAAEC,sBAAY,CAAC;AASpDT,kBAAU,CAACU,UAAU,CAACtB,QAAQ,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_jest@1.0.337/dist/jest.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_jest@1.0.337/dist/jest.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_jest@1.0.338/dist/jest.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_jest@1.0.338/dist/jest.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
2
  "name": "@teambit/jest",
3
- "version": "1.0.337",
3
+ "version": "1.0.338",
4
4
  "homepage": "https://bit.cloud/teambit/defender/jest",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.defender",
8
8
  "name": "jest",
9
- "version": "1.0.337"
9
+ "version": "1.0.338"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
13
- "jest": "27.5.1",
14
- "@jest/test-result": "26.6.2",
13
+ "jest": "29.3.1",
14
+ "@jest/test-result": "29.3.1",
15
15
  "comlink": "4.3.0",
16
16
  "fs-extra": "10.0.0",
17
- "jest-message-util": "27.5.1",
17
+ "jest-message-util": "29.3.1",
18
18
  "minimatch": "3.0.5",
19
19
  "normalize-path": "3.0.0",
20
20
  "flatted": "3.1.0",
21
- "jest-watcher": "27.5.1",
21
+ "jest-watcher": "29.7.0",
22
22
  "@teambit/harmony": "0.4.6",
23
- "@teambit/tests-results": "1.0.4",
24
- "@teambit/cli": "0.0.914",
25
- "@teambit/logger": "0.0.1007",
26
- "@teambit/worker": "0.0.1218",
27
- "@teambit/component": "1.0.337",
28
- "@teambit/tester": "1.0.337"
23
+ "@teambit/tests-results": "1.0.5",
24
+ "@teambit/cli": "0.0.915",
25
+ "@teambit/logger": "0.0.1008",
26
+ "@teambit/worker": "0.0.1219",
27
+ "@teambit/component": "1.0.338",
28
+ "@teambit/tester": "1.0.338"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/lodash": "4.14.165",
@@ -38,6 +38,7 @@
38
38
  "@teambit/harmony.envs.core-aspect-env": "0.0.42"
39
39
  },
40
40
  "peerDependencies": {
41
+ "@teambit/legacy": "1.0.725",
41
42
  "react": "^17.0.0 || ^18.0.0",
42
43
  "@types/react": "^17.0.73"
43
44
  },