Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: individualizing jest configs #714

Closed
wants to merge 6 commits into from

Conversation

arboleya
Copy link
Member

@arboleya arboleya commented Dec 30, 2022

This PR does a couple of things:

  1. Adds a new <rootDir>/toolbox workspace
  2. Adds a new <rootDir>/toolbox/tests package
  3. Individualize jest.config.ts configs for all packages (like we do for tsconfig.json)
  4. Set minimum coverage threshold for all packages (requires new iterations to be fully tested)

This is the first small step towards a better organization for our repo-related tooling, which should provide a better SOC by segregating things that belong to the SDK (the library) from general scripts and utilities intended to support the repo and its development cycle, while also targeting those building on Fuel (think about test utilities and whatnot).

@github-actions
Copy link
Contributor

github-actions bot commented Dec 30, 2022

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
79.53% (-14.26% 🔻)
3426/4308
🔴 Branches
55.57% (-24.08% 🔻)
499/898
🟡 Functions
68.89% (-21.78% 🔻)
598/868
🟡 Lines
79.61% (-14.03% 🔻)
3319/4169
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢 math/src/bn.ts
87.5% (-6.82% 🔻)
85.37% (-4.88% 🔻)
78.79% (-12.12% 🔻)
87.21% (-6.98% 🔻)
🟢
... / function-fragment.ts
100%
0% (-100% 🔻)
100% 100%
🟢
... / param-type.ts
95.45% (-2.27% 🔻)
78.95% (-5.26% 🔻)
100%
95% (-2.5% 🔻)
🟢
... / interface.ts
80.28% (-9.86% 🔻)
59.38% (-15.63% 🔻)
69.23% (-23.08% 🔻)
81.43% (-8.57% 🔻)
🟢
... / abi-coder.ts
88.3% (-6.38% 🔻)
76.92% (-10.26% 🔻)
100%
87.91% (-6.59% 🔻)
🔴
... / option.ts
16.67% (-83.33% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
16.67% (-83.33% 🔻)
🟢
... / utilities.ts
87.1% (-12.9% 🔻)
70% (-20% 🔻)
100%
85.71% (-14.29% 🔻)
🔴
... / json-abi.ts
30.95% (-66.67% 🔻)
28.57% (-57.14% 🔻)
21.43% (-78.57% 🔻)
28.57% (-68.57% 🔻)
🟡
... / input.ts
78.23% (-20.41% 🔻)
70% (-10% 🔻)
86.67% (-13.33% 🔻)
78.23% (-20.41% 🔻)
🟢
... / receipt.ts
94.88% (-2.71% 🔻)
84.62% (-3.85% 🔻)
91.89% (-5.41% 🔻)
94.88% (-2.71% 🔻)
🟡
... / base-locked-wallet.ts
75.96% (-16.35% 🔻)
56.52% (-21.74% 🔻)
68.75% (-25% 🔻)
75.96% (-16.35% 🔻)
🟢
... / base-unlocked-wallet.ts
89.66% (-10.34% 🔻)
100%
88.89% (-11.11% 🔻)
89.29% (-10.71% 🔻)
🟢
... / address.ts
84.85% (-12.12% 🔻)
37.5% (-50% 🔻)
73.33% (-26.67% 🔻)
84.85% (-12.12% 🔻)
🟢
... / utils.ts
83.78% (-13.51% 🔻)
83.33% (-8.33% 🔻)
80% (-20% 🔻)
85.29% (-11.76% 🔻)
🔴
... / provider.ts
32.22% (-42.78% 🔻)
14.58% (-50% 🔻)
26.67% (-46.67% 🔻)
32.95% (-41.04% 🔻)
🟡
... / operations.ts
68.52% (-14.81% 🔻)
100%
37.04% (-29.63% 🔻)
68.22% (-14.95% 🔻)
🔴
... / coin-quantity.ts
38.46% (-61.54% 🔻)
0% (-83.33% 🔻)
0% (-100% 🔻)
33.33% (-66.67% 🔻)
🟢
... / resource.ts
66.67% (-16.67% 🔻)
100%
0% (-50% 🔻)
80%
🔴
... / input.ts
40% (-53.33% 🔻)
0% (-85.71% 🔻)
0% (-100% 🔻)
35.71% (-57.14% 🔻)
🔴
... / output.ts
42.86% (-50% 🔻)
0% (-85.71% 🔻)
0% (-100% 🔻)
38.46% (-53.85% 🔻)
🔴
... / transaction-request.ts
30% (-48.13% 🔻)
26.67% (-37.33% 🔻)
12.07% (-58.62% 🔻)
30.32% (-47.74% 🔻)
🟡
... / util.ts
69.81% (-28.3% 🔻)
52% (-40% 🔻)
46.15% (-53.85% 🔻)
67.39% (-30.43% 🔻)
🔴
... / storage-slot.ts
30.77% (-53.85% 🔻)
0% (-50% 🔻)
0% (-100% 🔻)
25% (-58.33% 🔻)
🔴
... / witness.ts
60% (-40% 🔻)
100%
0% (-100% 🔻)
50% (-50% 🔻)
🔴
... / transaction-response.ts
20.51% (-74.36% 🔻)
0% (-72.73% 🔻)
0% (-100% 🔻)
20.51% (-74.36% 🔻)
🟡
... / script.ts
72.41% (-10.34% 🔻)
37.5% (-25% 🔻)
66.67% (-16.67% 🔻)
72.41% (-10.34% 🔻)
🔴
... / errors.ts
33.33% (-66.67% 🔻)
0% (-83.33% 🔻)
0% (-100% 🔻)
33.33% (-66.67% 🔻)
🔴 script/src/utils.ts
44.44% (-55.56% 🔻)
0% (-60% 🔻)
0% (-100% 🔻)
37.5% (-62.5% 🔻)
🟢
... / signer.ts
84.62% (-15.38% 🔻)
50% (-50% 🔻)
75% (-25% 🔻)
84.62% (-15.38% 🔻)
🟢
... / keystore.ts
100% 50%
33.33% (-33.33% 🔻)
100%
🟢
... / contract.ts
89.47% (-10.53% 🔻)
71.43% (-28.57% 🔻)
60% (-40% 🔻)
94.44% (-5.56% 🔻)
🔴
... / invocation-scope.ts
16.67% (-83.33% 🔻)
0% (-57.14% 🔻)
0% (-100% 🔻)
16.67% (-83.33% 🔻)
🔴
... / base-invocation-scope.ts
8.05% (-91.95% 🔻)
0% (-92.86% 🔻)
0% (-100% 🔻)
8.33% (-91.67% 🔻)
🔴
... / scripts.ts
15.38% (-80.77% 🔻)
0% (-87.5% 🔻)
0% (-100% 🔻)
16% (-80% 🔻)
🔴
... / util.ts
40.63% (-56.25% 🔻)
0%
0% (-100% 🔻)
36% (-60% 🔻)
🔴
... / invocation-results.ts
16.67% (-80.95% 🔻)
0% (-66.67% 🔻)
0% (-100% 🔻)
17.07% (-80.49% 🔻)
🔴
... / multicall-scope.ts
33.33% (-66.67% 🔻)
100%
0% (-100% 🔻)
33.33% (-66.67% 🔻)
🟡
... / hasher.ts
65.85% (-34.15% 🔻)
37.5% (-62.5% 🔻)
100%
65.85% (-34.15% 🔻)

Test suite run success

669 tests passing in 94 suites.

Report generated by 🧪jest coverage report action from eaf5876

@arboleya arboleya self-assigned this Dec 30, 2022
@arboleya arboleya force-pushed the aa/chore/individualizing-jest-configs branch from 11df7d5 to eaf5876 Compare January 1, 2023 12:43
@arboleya arboleya closed this Mar 6, 2023
@arboleya arboleya deleted the aa/chore/individualizing-jest-configs branch March 27, 2023 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant