From 08adad7e25b5b2d8d84d9c98328cfe801e18044b Mon Sep 17 00:00:00 2001 From: kevin-flynn Date: Mon, 25 Nov 2024 16:00:08 +0000 Subject: [PATCH] chore: coverage update --- .../bridge/coverage/coverage-summary.json | 5 +- packages/bridge/jest-report.xml | 44 +++- packages/bridge/jest.config.ts | 205 ------------------ 3 files changed, 42 insertions(+), 212 deletions(-) delete mode 100644 packages/bridge/jest.config.ts diff --git a/packages/bridge/coverage/coverage-summary.json b/packages/bridge/coverage/coverage-summary.json index 65433b7..0d14b81 100644 --- a/packages/bridge/coverage/coverage-summary.json +++ b/packages/bridge/coverage/coverage-summary.json @@ -1,2 +1,5 @@ -{"/workspaces/aelf-web-login/packages/bridge/src/utils.ts": {"path":"/workspaces/aelf-web-login/packages/bridge/src/utils.ts","all":false,"statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":58}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":37}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":73}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":77}},"9":{"start":{"line":10,"column":0},"end":{"line":10,"column":63}},"10":{"start":{"line":11,"column":0},"end":{"line":11,"column":48}},"11":{"start":{"line":12,"column":0},"end":{"line":12,"column":19}},"12":{"start":{"line":13,"column":0},"end":{"line":13,"column":56}},"13":{"start":{"line":14,"column":0},"end":{"line":14,"column":3}},"14":{"start":{"line":15,"column":0},"end":{"line":15,"column":84}},"15":{"start":{"line":16,"column":0},"end":{"line":16,"column":45}},"16":{"start":{"line":17,"column":0},"end":{"line":17,"column":49}},"17":{"start":{"line":18,"column":0},"end":{"line":18,"column":12}},"18":{"start":{"line":19,"column":0},"end":{"line":19,"column":31}},"19":{"start":{"line":20,"column":0},"end":{"line":20,"column":5}},"20":{"start":{"line":21,"column":0},"end":{"line":21,"column":20}},"21":{"start":{"line":22,"column":0},"end":{"line":22,"column":2}},"23":{"start":{"line":24,"column":0},"end":{"line":24,"column":93}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":49}},"25":{"start":{"line":26,"column":0},"end":{"line":26,"column":7}},"26":{"start":{"line":27,"column":0},"end":{"line":27,"column":64}},"27":{"start":{"line":28,"column":0},"end":{"line":28,"column":13}},"28":{"start":{"line":29,"column":0},"end":{"line":29,"column":14}},"29":{"start":{"line":30,"column":0},"end":{"line":30,"column":7}},"30":{"start":{"line":31,"column":0},"end":{"line":31,"column":70}},"31":{"start":{"line":32,"column":0},"end":{"line":32,"column":22}},"32":{"start":{"line":33,"column":0},"end":{"line":33,"column":15}},"33":{"start":{"line":34,"column":0},"end":{"line":34,"column":59}},"34":{"start":{"line":35,"column":0},"end":{"line":35,"column":17}},"35":{"start":{"line":36,"column":0},"end":{"line":36,"column":3}},"36":{"start":{"line":37,"column":0},"end":{"line":37,"column":2}}},"s":{"0":1,"5":1,"6":1,"7":1,"9":1,"10":4,"11":4,"12":2,"13":2,"14":4,"15":4,"16":4,"17":4,"18":4,"19":4,"20":2,"21":2,"23":1,"24":2,"25":1,"26":1,"27":1,"28":1,"29":1,"30":0,"31":0,"32":2,"33":1,"34":1,"35":1,"36":2},"branchMap":{"0":{"type":"branch","line":10,"loc":{"start":{"line":10,"column":33},"end":{"line":22,"column":2}},"locations":[{"start":{"line":10,"column":33},"end":{"line":22,"column":2}}]},"1":{"type":"branch","line":12,"loc":{"start":{"line":12,"column":18},"end":{"line":15,"column":80}},"locations":[{"start":{"line":12,"column":18},"end":{"line":15,"column":80}}]},"2":{"type":"branch","line":15,"loc":{"start":{"line":15,"column":66},"end":{"line":15,"column":82}},"locations":[{"start":{"line":15,"column":66},"end":{"line":15,"column":82}}]},"3":{"type":"branch","line":20,"loc":{"start":{"line":20,"column":3},"end":{"line":22,"column":2}},"locations":[{"start":{"line":20,"column":3},"end":{"line":22,"column":2}}]},"4":{"type":"branch","line":24,"loc":{"start":{"line":24,"column":36},"end":{"line":37,"column":2}},"locations":[{"start":{"line":24,"column":36},"end":{"line":37,"column":2}}]},"5":{"type":"branch","line":25,"loc":{"start":{"line":25,"column":47},"end":{"line":30,"column":7}},"locations":[{"start":{"line":25,"column":47},"end":{"line":30,"column":7}}]},"6":{"type":"branch","line":30,"loc":{"start":{"line":30,"column":5},"end":{"line":32,"column":22}},"locations":[{"start":{"line":30,"column":5},"end":{"line":32,"column":22}}]},"7":{"type":"branch","line":33,"loc":{"start":{"line":33,"column":2},"end":{"line":36,"column":3}},"locations":[{"start":{"line":33,"column":2},"end":{"line":36,"column":3}}]}},"b":{"0":[4],"1":[2],"2":[2],"3":[2],"4":[2],"5":[1],"6":[0],"7":[1]},"fnMap":{"0":{"name":"getCaContractBase","decl":{"start":{"line":10,"column":33},"end":{"line":22,"column":2}},"loc":{"start":{"line":10,"column":33},"end":{"line":22,"column":2}},"line":10},"1":{"name":"getIsManagerReadOnly","decl":{"start":{"line":24,"column":36},"end":{"line":37,"column":2}},"loc":{"start":{"line":24,"column":36},"end":{"line":37,"column":2}},"line":24}},"f":{"0":4,"1":2}} +{"/workspaces/aelf-web-login/packages/bridge/src/mountApp.tsx": {"path":"/workspaces/aelf-web-login/packages/bridge/src/mountApp.tsx","all":false,"statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":68}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":31}},"8":{"start":{"line":9,"column":0},"end":{"line":9,"column":25}},"9":{"start":{"line":10,"column":0},"end":{"line":10,"column":27}},"10":{"start":{"line":11,"column":0},"end":{"line":11,"column":26}},"11":{"start":{"line":12,"column":0},"end":{"line":12,"column":28}},"12":{"start":{"line":13,"column":0},"end":{"line":13,"column":20}},"13":{"start":{"line":14,"column":0},"end":{"line":14,"column":36}},"14":{"start":{"line":15,"column":0},"end":{"line":15,"column":12}},"15":{"start":{"line":16,"column":0},"end":{"line":16,"column":97}},"16":{"start":{"line":17,"column":0},"end":{"line":17,"column":97}},"17":{"start":{"line":18,"column":0},"end":{"line":18,"column":18}},"18":{"start":{"line":19,"column":0},"end":{"line":19,"column":24}},"20":{"start":{"line":21,"column":0},"end":{"line":21,"column":54}},"21":{"start":{"line":22,"column":0},"end":{"line":22,"column":20}},"22":{"start":{"line":23,"column":0},"end":{"line":23,"column":1}}},"s":{"0":1,"7":1,"8":3,"9":3,"10":3,"11":3,"12":3,"13":3,"14":2,"15":2,"16":2,"17":2,"18":2,"20":3,"21":3,"22":3},"branchMap":{"0":{"type":"branch","line":8,"loc":{"start":{"line":8,"column":7},"end":{"line":23,"column":1}},"locations":[{"start":{"line":8,"column":7},"end":{"line":23,"column":1}}]},"1":{"type":"branch","line":14,"loc":{"start":{"line":14,"column":29},"end":{"line":21,"column":5}},"locations":[{"start":{"line":14,"column":29},"end":{"line":21,"column":5}}]}},"b":{"0":[3],"1":[2]},"fnMap":{"0":{"name":"useMountSignIn","decl":{"start":{"line":8,"column":7},"end":{"line":23,"column":1}},"loc":{"start":{"line":8,"column":7},"end":{"line":23,"column":1}},"line":8}},"f":{"0":3}} +,"/workspaces/aelf-web-login/packages/bridge/src/useLockCallback.ts": {"path":"/workspaces/aelf-web-login/packages/bridge/src/useLockCallback.ts","all":false,"statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":60}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":75}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":14}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":23}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":3}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":29}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":48}},"8":{"start":{"line":9,"column":0},"end":{"line":9,"column":29}},"9":{"start":{"line":10,"column":0},"end":{"line":10,"column":24}},"10":{"start":{"line":11,"column":0},"end":{"line":11,"column":9}},"11":{"start":{"line":12,"column":0},"end":{"line":12,"column":42}},"12":{"start":{"line":13,"column":0},"end":{"line":13,"column":27}},"13":{"start":{"line":14,"column":0},"end":{"line":14,"column":17}},"14":{"start":{"line":15,"column":0},"end":{"line":15,"column":17}},"15":{"start":{"line":16,"column":0},"end":{"line":16,"column":27}},"16":{"start":{"line":17,"column":0},"end":{"line":17,"column":14}},"17":{"start":{"line":18,"column":0},"end":{"line":18,"column":5}},"19":{"start":{"line":20,"column":0},"end":{"line":20,"column":11}},"20":{"start":{"line":21,"column":0},"end":{"line":21,"column":1}}},"s":{"0":1,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4,"8":7,"9":6,"10":6,"11":6,"12":4,"13":4,"14":7,"15":2,"16":2,"17":2,"19":4,"20":4},"branchMap":{"0":{"type":"branch","line":3,"loc":{"start":{"line":3,"column":0},"end":{"line":21,"column":1}},"locations":[{"start":{"line":3,"column":0},"end":{"line":21,"column":1}}]},"1":{"type":"branch","line":8,"loc":{"start":{"line":8,"column":21},"end":{"line":20,"column":5}},"locations":[{"start":{"line":8,"column":21},"end":{"line":20,"column":5}}]},"2":{"type":"branch","line":9,"loc":{"start":{"line":9,"column":22},"end":{"line":9,"column":29}},"locations":[{"start":{"line":9,"column":22},"end":{"line":9,"column":29}}]},"3":{"type":"branch","line":9,"loc":{"start":{"line":9,"column":22},"end":{"line":12,"column":42}},"locations":[{"start":{"line":9,"column":22},"end":{"line":12,"column":42}}]},"4":{"type":"branch","line":12,"loc":{"start":{"line":12,"column":40},"end":{"line":15,"column":13}},"locations":[{"start":{"line":12,"column":40},"end":{"line":15,"column":13}}]},"5":{"type":"branch","line":15,"loc":{"start":{"line":15,"column":4},"end":{"line":18,"column":5}},"locations":[{"start":{"line":15,"column":4},"end":{"line":18,"column":5}}]}},"b":{"0":[4],"1":[7],"2":[1],"3":[6],"4":[4],"5":[2]},"fnMap":{"0":{"name":"useLockCallback","decl":{"start":{"line":3,"column":0},"end":{"line":21,"column":1}},"loc":{"start":{"line":3,"column":0},"end":{"line":21,"column":1}},"line":3}},"f":{"0":4}} +,"/workspaces/aelf-web-login/packages/bridge/src/useVerifier.ts": {"path":"/workspaces/aelf-web-login/packages/bridge/src/useVerifier.ts","all":false,"statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":45}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":31}},"31":{"start":{"line":32,"column":0},"end":{"line":32,"column":47}},"32":{"start":{"line":33,"column":0},"end":{"line":33,"column":39}},"34":{"start":{"line":35,"column":0},"end":{"line":35,"column":62}},"35":{"start":{"line":36,"column":0},"end":{"line":36,"column":48}},"36":{"start":{"line":37,"column":0},"end":{"line":37,"column":7}},"37":{"start":{"line":38,"column":0},"end":{"line":38,"column":4}},"39":{"start":{"line":40,"column":0},"end":{"line":40,"column":91}},"40":{"start":{"line":41,"column":0},"end":{"line":41,"column":22}},"41":{"start":{"line":42,"column":0},"end":{"line":42,"column":46}},"42":{"start":{"line":43,"column":0},"end":{"line":43,"column":16}},"43":{"start":{"line":44,"column":0},"end":{"line":44,"column":9}},"44":{"start":{"line":45,"column":0},"end":{"line":45,"column":7}},"45":{"start":{"line":46,"column":0},"end":{"line":46,"column":4}},"47":{"start":{"line":48,"column":0},"end":{"line":48,"column":40}},"48":{"start":{"line":49,"column":0},"end":{"line":49,"column":12}},"49":{"start":{"line":50,"column":0},"end":{"line":50,"column":18}},"50":{"start":{"line":51,"column":0},"end":{"line":51,"column":12}},"51":{"start":{"line":52,"column":0},"end":{"line":52,"column":25}},"52":{"start":{"line":53,"column":0},"end":{"line":53,"column":15}},"53":{"start":{"line":54,"column":0},"end":{"line":54,"column":14}},"54":{"start":{"line":55,"column":0},"end":{"line":55,"column":20}},"55":{"start":{"line":56,"column":0},"end":{"line":56,"column":23}},"56":{"start":{"line":57,"column":0},"end":{"line":57,"column":8}},"64":{"start":{"line":65,"column":0},"end":{"line":65,"column":11}},"65":{"start":{"line":66,"column":0},"end":{"line":66,"column":22}},"66":{"start":{"line":67,"column":0},"end":{"line":67,"column":19}},"67":{"start":{"line":68,"column":0},"end":{"line":68,"column":22}},"68":{"start":{"line":69,"column":0},"end":{"line":69,"column":29}},"69":{"start":{"line":70,"column":0},"end":{"line":70,"column":28}},"70":{"start":{"line":71,"column":0},"end":{"line":71,"column":21}},"71":{"start":{"line":72,"column":0},"end":{"line":72,"column":30}},"72":{"start":{"line":73,"column":0},"end":{"line":73,"column":50}},"73":{"start":{"line":74,"column":0},"end":{"line":74,"column":56}},"74":{"start":{"line":75,"column":0},"end":{"line":75,"column":70}},"75":{"start":{"line":76,"column":0},"end":{"line":76,"column":16}},"76":{"start":{"line":77,"column":0},"end":{"line":77,"column":22}},"77":{"start":{"line":78,"column":0},"end":{"line":78,"column":30}},"78":{"start":{"line":79,"column":0},"end":{"line":79,"column":51}},"79":{"start":{"line":80,"column":0},"end":{"line":80,"column":71}},"80":{"start":{"line":81,"column":0},"end":{"line":81,"column":16}},"81":{"start":{"line":82,"column":0},"end":{"line":82,"column":24}},"82":{"start":{"line":83,"column":0},"end":{"line":83,"column":30}},"83":{"start":{"line":84,"column":0},"end":{"line":84,"column":73}},"84":{"start":{"line":85,"column":0},"end":{"line":85,"column":16}},"85":{"start":{"line":86,"column":0},"end":{"line":86,"column":16}},"86":{"start":{"line":87,"column":0},"end":{"line":87,"column":47}},"87":{"start":{"line":88,"column":0},"end":{"line":88,"column":7}},"88":{"start":{"line":89,"column":0},"end":{"line":89,"column":57}},"89":{"start":{"line":90,"column":0},"end":{"line":90,"column":39}},"90":{"start":{"line":91,"column":0},"end":{"line":91,"column":20}},"91":{"start":{"line":92,"column":0},"end":{"line":92,"column":31}},"92":{"start":{"line":93,"column":0},"end":{"line":93,"column":32}},"93":{"start":{"line":94,"column":0},"end":{"line":94,"column":16}},"94":{"start":{"line":95,"column":0},"end":{"line":95,"column":33}},"95":{"start":{"line":96,"column":0},"end":{"line":96,"column":20}},"96":{"start":{"line":97,"column":0},"end":{"line":97,"column":22}},"97":{"start":{"line":98,"column":0},"end":{"line":98,"column":25}},"98":{"start":{"line":99,"column":0},"end":{"line":99,"column":27}},"99":{"start":{"line":100,"column":0},"end":{"line":100,"column":9}},"100":{"start":{"line":101,"column":0},"end":{"line":101,"column":6}},"101":{"start":{"line":102,"column":0},"end":{"line":102,"column":31}},"102":{"start":{"line":103,"column":0},"end":{"line":103,"column":4}},"104":{"start":{"line":105,"column":0},"end":{"line":105,"column":17}},"105":{"start":{"line":106,"column":0},"end":{"line":106,"column":61}},"106":{"start":{"line":107,"column":0},"end":{"line":107,"column":51}},"107":{"start":{"line":108,"column":0},"end":{"line":108,"column":4}},"108":{"start":{"line":109,"column":0},"end":{"line":109,"column":2}},"110":{"start":{"line":111,"column":0},"end":{"line":111,"column":27}}},"s":{"0":1,"7":1,"31":1,"32":7,"34":7,"35":7,"36":7,"37":7,"39":7,"40":7,"41":1,"42":1,"43":1,"44":7,"45":7,"47":7,"48":7,"49":5,"50":5,"51":5,"52":5,"53":5,"54":5,"55":5,"56":5,"64":5,"65":5,"66":5,"67":5,"68":5,"69":5,"70":5,"71":2,"72":2,"73":2,"74":2,"75":2,"76":5,"77":1,"78":1,"79":1,"80":1,"81":5,"82":1,"83":1,"84":1,"85":5,"86":1,"87":5,"88":5,"89":3,"90":3,"91":3,"92":3,"93":3,"94":5,"95":5,"96":5,"97":5,"98":5,"99":5,"100":5,"101":7,"102":7,"104":7,"105":7,"106":7,"107":7,"108":7,"110":1},"branchMap":{"0":{"type":"branch","line":32,"loc":{"start":{"line":32,"column":40},"end":{"line":109,"column":2}},"locations":[{"start":{"line":32,"column":40},"end":{"line":109,"column":2}}]},"1":{"type":"branch","line":36,"loc":{"start":{"line":36,"column":4},"end":{"line":36,"column":48}},"locations":[{"start":{"line":36,"column":4},"end":{"line":36,"column":48}}]},"2":{"type":"branch","line":41,"loc":{"start":{"line":41,"column":4},"end":{"line":44,"column":9}},"locations":[{"start":{"line":41,"column":4},"end":{"line":44,"column":9}}]},"3":{"type":"branch","line":49,"loc":{"start":{"line":49,"column":4},"end":{"line":101,"column":6}},"locations":[{"start":{"line":49,"column":4},"end":{"line":101,"column":6}}]},"4":{"type":"branch","line":71,"loc":{"start":{"line":71,"column":8},"end":{"line":76,"column":16}},"locations":[{"start":{"line":71,"column":8},"end":{"line":76,"column":16}}]},"5":{"type":"branch","line":77,"loc":{"start":{"line":77,"column":8},"end":{"line":81,"column":16}},"locations":[{"start":{"line":77,"column":8},"end":{"line":81,"column":16}}]},"6":{"type":"branch","line":82,"loc":{"start":{"line":82,"column":8},"end":{"line":85,"column":16}},"locations":[{"start":{"line":82,"column":8},"end":{"line":85,"column":16}}]},"7":{"type":"branch","line":86,"loc":{"start":{"line":86,"column":8},"end":{"line":87,"column":47}},"locations":[{"start":{"line":86,"column":8},"end":{"line":87,"column":47}}]},"8":{"type":"branch","line":88,"loc":{"start":{"line":88,"column":6},"end":{"line":89,"column":25}},"locations":[{"start":{"line":88,"column":6},"end":{"line":89,"column":25}}]},"9":{"type":"branch","line":89,"loc":{"start":{"line":89,"column":25},"end":{"line":89,"column":57}},"locations":[{"start":{"line":89,"column":25},"end":{"line":89,"column":57}}]},"10":{"type":"branch","line":89,"loc":{"start":{"line":89,"column":31},"end":{"line":95,"column":30}},"locations":[{"start":{"line":89,"column":31},"end":{"line":95,"column":30}}]},"11":{"type":"branch","line":95,"loc":{"start":{"line":95,"column":18},"end":{"line":95,"column":33}},"locations":[{"start":{"line":95,"column":18},"end":{"line":95,"column":33}}]},"12":{"type":"branch","line":106,"loc":{"start":{"line":106,"column":4},"end":{"line":106,"column":61}},"locations":[{"start":{"line":106,"column":4},"end":{"line":106,"column":61}}]}},"b":{"0":[7],"1":[7],"2":[1],"3":[5],"4":[2],"5":[1],"6":[1],"7":[1],"8":[4],"9":[1],"10":[3],"11":[1],"12":[7]},"fnMap":{"0":{"name":"useVerifier","decl":{"start":{"line":32,"column":40},"end":{"line":109,"column":2}},"loc":{"start":{"line":32,"column":40},"end":{"line":109,"column":2}},"line":32}},"f":{"0":7}} +,"/workspaces/aelf-web-login/packages/bridge/src/utils.ts": {"path":"/workspaces/aelf-web-login/packages/bridge/src/utils.ts","all":false,"statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":58}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":37}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":73}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":77}},"9":{"start":{"line":10,"column":0},"end":{"line":10,"column":63}},"10":{"start":{"line":11,"column":0},"end":{"line":11,"column":48}},"11":{"start":{"line":12,"column":0},"end":{"line":12,"column":19}},"12":{"start":{"line":13,"column":0},"end":{"line":13,"column":56}},"13":{"start":{"line":14,"column":0},"end":{"line":14,"column":3}},"14":{"start":{"line":15,"column":0},"end":{"line":15,"column":84}},"15":{"start":{"line":16,"column":0},"end":{"line":16,"column":45}},"16":{"start":{"line":17,"column":0},"end":{"line":17,"column":49}},"17":{"start":{"line":18,"column":0},"end":{"line":18,"column":12}},"18":{"start":{"line":19,"column":0},"end":{"line":19,"column":31}},"19":{"start":{"line":20,"column":0},"end":{"line":20,"column":5}},"20":{"start":{"line":21,"column":0},"end":{"line":21,"column":20}},"21":{"start":{"line":22,"column":0},"end":{"line":22,"column":2}},"23":{"start":{"line":24,"column":0},"end":{"line":24,"column":93}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":49}},"25":{"start":{"line":26,"column":0},"end":{"line":26,"column":7}},"26":{"start":{"line":27,"column":0},"end":{"line":27,"column":64}},"27":{"start":{"line":28,"column":0},"end":{"line":28,"column":13}},"28":{"start":{"line":29,"column":0},"end":{"line":29,"column":14}},"29":{"start":{"line":30,"column":0},"end":{"line":30,"column":7}},"30":{"start":{"line":31,"column":0},"end":{"line":31,"column":70}},"31":{"start":{"line":32,"column":0},"end":{"line":32,"column":22}},"32":{"start":{"line":33,"column":0},"end":{"line":33,"column":15}},"33":{"start":{"line":34,"column":0},"end":{"line":34,"column":59}},"34":{"start":{"line":35,"column":0},"end":{"line":35,"column":17}},"35":{"start":{"line":36,"column":0},"end":{"line":36,"column":3}},"36":{"start":{"line":37,"column":0},"end":{"line":37,"column":2}}},"s":{"0":1,"5":1,"6":1,"7":1,"9":1,"10":4,"11":4,"12":2,"13":2,"14":4,"15":4,"16":4,"17":4,"18":4,"19":4,"20":2,"21":2,"23":1,"24":2,"25":1,"26":1,"27":1,"28":1,"29":1,"30":0,"31":0,"32":2,"33":1,"34":1,"35":1,"36":2},"branchMap":{"0":{"type":"branch","line":10,"loc":{"start":{"line":10,"column":33},"end":{"line":22,"column":2}},"locations":[{"start":{"line":10,"column":33},"end":{"line":22,"column":2}}]},"1":{"type":"branch","line":12,"loc":{"start":{"line":12,"column":18},"end":{"line":15,"column":80}},"locations":[{"start":{"line":12,"column":18},"end":{"line":15,"column":80}}]},"2":{"type":"branch","line":15,"loc":{"start":{"line":15,"column":66},"end":{"line":15,"column":82}},"locations":[{"start":{"line":15,"column":66},"end":{"line":15,"column":82}}]},"3":{"type":"branch","line":20,"loc":{"start":{"line":20,"column":3},"end":{"line":22,"column":2}},"locations":[{"start":{"line":20,"column":3},"end":{"line":22,"column":2}}]},"4":{"type":"branch","line":24,"loc":{"start":{"line":24,"column":36},"end":{"line":37,"column":2}},"locations":[{"start":{"line":24,"column":36},"end":{"line":37,"column":2}}]},"5":{"type":"branch","line":25,"loc":{"start":{"line":25,"column":47},"end":{"line":30,"column":7}},"locations":[{"start":{"line":25,"column":47},"end":{"line":30,"column":7}}]},"6":{"type":"branch","line":30,"loc":{"start":{"line":30,"column":5},"end":{"line":32,"column":22}},"locations":[{"start":{"line":30,"column":5},"end":{"line":32,"column":22}}]},"7":{"type":"branch","line":33,"loc":{"start":{"line":33,"column":2},"end":{"line":36,"column":3}},"locations":[{"start":{"line":33,"column":2},"end":{"line":36,"column":3}}]}},"b":{"0":[4],"1":[2],"2":[2],"3":[2],"4":[2],"5":[1],"6":[0],"7":[1]},"fnMap":{"0":{"name":"getCaContractBase","decl":{"start":{"line":10,"column":33},"end":{"line":22,"column":2}},"loc":{"start":{"line":10,"column":33},"end":{"line":22,"column":2}},"line":10},"1":{"name":"getIsManagerReadOnly","decl":{"start":{"line":24,"column":36},"end":{"line":37,"column":2}},"loc":{"start":{"line":24,"column":36},"end":{"line":37,"column":2}},"line":24}},"f":{"0":4,"1":2}} } diff --git a/packages/bridge/jest-report.xml b/packages/bridge/jest-report.xml index c30f919..67d07f3 100644 --- a/packages/bridge/jest-report.xml +++ b/packages/bridge/jest-report.xml @@ -1,13 +1,45 @@ - - - + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + intg----getIsManagerReadOnly is fail TypeError: caIns.callViewMethod is not a function at Module.getIsManagerReadOnly [90m(/workspaces/aelf-web-login/packages/bridge/[39msrc/utils.ts:27:28[90m)[39m diff --git a/packages/bridge/jest.config.ts b/packages/bridge/jest.config.ts deleted file mode 100644 index 1bf3ec6..0000000 --- a/packages/bridge/jest.config.ts +++ /dev/null @@ -1,205 +0,0 @@ -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-nocheck skip tsc for jest -/** - * For a detailed explanation regarding each configuration property, visit: - * https://jestjs.io/docs/configuration - */ - -import { compilerOptions } from '../../tsconfig.base.json'; -import path from 'path'; -const config = { - // All imported modules in your tests should be mocked automatically - // automock: false, - - // Stop running tests after `n` failures - // bail: 0, - - // The directory where Jest should store its cached dependency information - // cacheDirectory: "/private/var/folders/46/f0k6l2594mg21yh77r2msl8w0000gn/T/jest_dx", - - // Automatically clear mock calls, instances, contexts and results before every test - clearMocks: true, - - // Indicates whether the coverage information should be collected while executing the test - collectCoverage: true, - - // An array of glob patterns indicating a set of files for which coverage information should be collected - // collectCoverageFrom: undefined, - - // The directory where Jest should output its coverage files - coverageDirectory: 'coverage', - - // An array of regexp pattern strings used to skip coverage collection - // coveragePathIgnorePatterns: [ - // "/node_modules/" - // ], - - // Indicates which provider should be used to instrument code for coverage - // coverageProvider: "babel", - - // A list of reporter names that Jest uses when writing coverage reports - coverageReporters: ['json-summary', 'text'], - - // An object that configures minimum threshold enforcement for coverage results - // coverageThreshold: undefined, - - // A path to a custom dependency extractor - // dependencyExtractor: undefined, - - // Make calling deprecated APIs throw helpful error messages - // errorOnDeprecated: false, - - // The default configuration for fake timers - // fakeTimers: { - // "enableGlobally": false - // }, - - // Force coverage collection from ignored files using an array of glob patterns - // forceCoverageMatch: [], - - // A path to a module which exports an async function that is triggered once before all test suites - // globalSetup: undefined, - - // A path to a module which exports an async function that is triggered once after all test suites - // globalTeardown: undefined, - - // A set of global variables that need to be available in all test environments - - // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. - // maxWorkers: "50%", - - // An array of directory names to be searched recursively up from the requiring module's location - // moduleDirectories: [ - // "node_modules" - // ], - - // An array of file extensions your modules use - moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'], - - // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module - // moduleNameMapper: {}, - - // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader - // modulePathIgnorePatterns: [], - - // Activates notifications for test results - // notify: false, - - // An enum that specifies notification mode. Requires { notify: true } - // notifyMode: "failure-change", - - // A preset that is used as a base for Jest's configuration - // preset: 'babel-jest', - - // Run tests from one or more projects - // projects: undefined, - - // Use this configuration option to add custom reporters to Jest - reporters: [ - 'default', - [ - 'jest-junit', - { - outputDirectory: '.', - outputName: 'jest-report.xml', - }, - ], - ], - - // Automatically reset mock state before every test - // resetMocks: false, - - // Reset the module registry before running each individual test - // resetModules: false, - - // A path to a custom resolver - // resolver: undefined, - - // Automatically restore mock state and implementation before every test - // restoreMocks: false, - - // The root directory that Jest should scan for tests and modules within - // rootDir: './', - - // A list of paths to directories that Jest should use to search for files in - // roots: [ - // "" - // ], - - // Allows you to use a custom runner instead of Jest's default test runner - // runner: "jest-runner", - - // The paths to modules that run some code to configure or set up the testing environment before each test - // setupFiles: [], - - // A list of paths to modules that run some code to configure or set up the testing framework before each test - - // The number of seconds after which a test is considered as slow and reported as such in the results. - // slowTestThreshold: 5, - - // A list of paths to snapshot serializer modules Jest should use for snapshot testing - // snapshotSerializers: [], - - // The test environment that will be used for testing - - // Options that will be passed to the testEnvironment - // testEnvironmentOptions: {}, - - // Adds a location field to test results - // testLocationInResults: false, - - // The glob patterns Jest uses to detect test files - // testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'], - - // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped - // testPathIgnorePatterns: [ - // "/node_modules/" - // ], - - // The regexp pattern or array of patterns that Jest uses to detect test files - // testRegex: [], - - // This option allows the use of a custom results processor - // testResultsProcessor: undefined, - - // This option allows use of a custom test runner - // testRunner: "jest-circus/runner", - - // A map from regular expressions to paths to transformers - transform: { '^.+\\.(js|jsx|ts|tsx)$': 'babel-jest', '^.+\\.js$': 'babel-jest' }, - - // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation - transformIgnorePatterns: [ - '.pnpm/node_modules/(?!((jest-)?react-native(-.*)?|@react-native(-community)?|victory(-.*)?|uuid)|react-navigation|@shopify/react-native-skia|@react-navigation/.*/)', - ], - - // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them - // unmockedModulePathPatterns: undefined, - - // Indicates whether each individual test should be reported during the run - // verbose: undefined, - - // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode - // watchPathIgnorePatterns: [], - - // Whether to use watchman for file crawling - // watchman: true, - roots: [''], - testEnvironment: 'jsdom', - setupFilesAfterEnv: ['/jest.setup.ts'], - modulePaths: ['./', compilerOptions.baseUrl], - moduleDirectories: ['node_modules', 'src'], - moduleNameMapper: { - '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|css|less|scss|sass)$': - 'jest-transform-stub', - ...Object.keys(compilerOptions.paths).reduce( - (prev, k) => ({ - ...prev, - [k]: path.resolve(__dirname, `../../${compilerOptions.paths[k][0]}`), - }), - {}, - ), - }, -}; - -export default config;