Skip to content

Commit

Permalink
chore: coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
work-kevin-flynn committed Nov 22, 2024
1 parent 96654ae commit 6f81ea4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
3 changes: 3 additions & 0 deletions packages/bridge/coverage/coverage-summary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{"total": {"lines":{"total":22,"covered":12,"skipped":0,"pct":54.54},"statements":{"total":27,"covered":13,"skipped":0,"pct":48.14},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"branches":{"total":5,"covered":1,"skipped":0,"pct":20},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}}
,"/Users/aelf/Documents/Projects/aelf/aelf-web-login/packages/bridge/src/utils.ts": {"lines":{"total":22,"covered":12,"skipped":0,"pct":54.54},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":27,"covered":13,"skipped":0,"pct":48.14},"branches":{"total":5,"covered":1,"skipped":0,"pct":20}}
}
7 changes: 7 additions & 0 deletions packages/bridge/jest-report.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="jest tests" tests="1" failures="0" errors="0" time="0.914">
<testsuite name="getCaContractBase()" errors="0" failures="0" skipped="0" timestamp="2024-11-22T09:23:05" time="0.605" tests="1">
<testcase classname="getCaContractBase() should throw error if no chainId" name="getCaContractBase() should throw error if no chainId" time="0.003">
</testcase>
</testsuite>
</testsuites>
22 changes: 11 additions & 11 deletions packages/react/jest-report.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="jest tests" tests="8" failures="0" errors="0" time="2.001">
<testsuite name="init" errors="0" failures="0" skipped="0" timestamp="2024-11-21T05:47:44" time="0.861" tests="3">
<testcase classname="init should initialize VConsole if showVconsole is true" name="init should initialize VConsole if showVconsole is true" time="0.154">
<testsuites name="jest tests" tests="8" failures="0" errors="0" time="2.398">
<testsuite name="init" errors="0" failures="0" skipped="0" timestamp="2024-11-22T08:25:32" time="1.185" tests="3">
<testcase classname="init should initialize VConsole if showVconsole is true" name="init should initialize VConsole if showVconsole is true" time="0.16">
</testcase>
<testcase classname="init should not initialize VConsole if showVconsole is false" name="init should not initialize VConsole if showVconsole is false" time="0.001">
</testcase>
<testcase classname="init should call initBridge with the given options" name="init should call initBridge with the given options" time="0.001">
</testcase>
</testsuite>
<testsuite name="useExternalStore" errors="0" failures="0" skipped="0" timestamp="2024-11-21T05:47:44" time="0.929" tests="1">
<testcase classname="useExternalStore should render hook" name="useExternalStore should render hook" time="0.008">
<testsuite name="useExternalStore" errors="0" failures="0" skipped="0" timestamp="2024-11-22T08:25:32" time="1.496" tests="1">
<testcase classname="useExternalStore should render hook" name="useExternalStore should render hook" time="0.259">
</testcase>
</testsuite>
<testsuite name="useConnectWallet" errors="0" failures="0" skipped="0" timestamp="2024-11-21T05:47:44" time="0.944" tests="1">
<testcase classname="useConnectWallet should render hook" name="useConnectWallet should render hook" time="0.008">
<testsuite name="useConnectWallet" errors="0" failures="0" skipped="0" timestamp="2024-11-22T08:25:32" time="1.496" tests="1">
<testcase classname="useConnectWallet should render hook" name="useConnectWallet should render hook" time="0.26">
</testcase>
</testsuite>
<testsuite name="WebLoginProvider" errors="0" failures="0" skipped="0" timestamp="2024-11-21T05:47:44" time="1.275" tests="3">
<testcase classname="WebLoginProvider should render children with provided bridgeAPI" name="WebLoginProvider should render children with provided bridgeAPI" time="0.015">
<testsuite name="WebLoginProvider" errors="0" failures="0" skipped="0" timestamp="2024-11-22T08:25:32" time="1.5" tests="3">
<testcase classname="WebLoginProvider should render children with provided bridgeAPI" name="WebLoginProvider should render children with provided bridgeAPI" time="0.014">
</testcase>
<testcase classname="WebLoginProvider should render children with provided config" name="WebLoginProvider should render children with provided config" time="0.323">
<testcase classname="WebLoginProvider should render children with provided config" name="WebLoginProvider should render children with provided config" time="0.246">
</testcase>
<testcase classname="WebLoginProvider should return null if no bridgeAPI nor config" name="WebLoginProvider should return null if no bridgeAPI nor config" time="0">
<testcase classname="WebLoginProvider should return null if no bridgeAPI nor config" name="WebLoginProvider should return null if no bridgeAPI nor config" time="0.001">
</testcase>
</testsuite>
</testsuites>

0 comments on commit 6f81ea4

Please sign in to comment.