FuelLabs / fuels-ts

Fuel Network Typescript SDK
https://docs.fuel.network/docs/fuels-ts/
Apache License 2.0
44.4k stars 1.32k forks source link

feat: new infra for code snippets #2651

Open arboleya opened 2 days ago

arboleya commented 2 days ago

Summary

This PR introduces a new WYSIWYG split between code snippets and unit tests.

What you see

https://github.com/FuelLabs/fuels-ts/blob/5b4f6782a8277807ee0070821e8270f31f349a2f/apps/docs-snippets2/src/introduction/connecting-to-localnode.ts#L2-L13

Is what you get

wyg

Issues this will fix

A few examples - broken imports:

comment

comment2

github-actions[bot] commented 11 hours ago

Coverage Report:

Lines Branches Functions Statements
79.19%(-0.35%) 71.15%(-0.22%) 76.8%(-0.11%) 79.28%(-0.34%)
Changed Files: | Ok | File (✨=New File) | Lines | Branches | Functions | Statements | | -- | ------------------------------------------------------------------------------------------------------------- | --------------- | --------------- | --------------- | --------------- | | 🔴 | ✨ apps/docs-snippets2/scripts/wrap-snippets.ts | 0%
(+0%) | 0%
(+0%) | 0%
(+0%) | 0%
(+0%) | | 🔴 | ✨ apps/docs-snippets2/src/introduction/connecting-to-localnode.ts | 0%
(+0%) | 100%
(+100%) | 100%
(+100%) | 0%
(+0%) | | 🔴 | ✨ apps/docs-snippets2/src/introduction/connecting-to-localnode.wrapped.ts | 0%
(+0%) | 0%
(+0%) | 0%
(+0%) | 0%
(+0%) | | 🔴 | ✨ apps/docs-snippets2/src/introduction/connecting-to-testnet.ts | 0%
(+0%) | 100%
(+100%) | 100%
(+100%) | 0%
(+0%) | | 🔴 | ✨ apps/docs-snippets2/src/introduction/connecting-to-testnet.wrapped.ts | 100%
(+100%) | 75%
(+75%) | 100%
(+100%) | 100%
(+100%) |