sfdx-lwc-jest
apex-recipes
Our great sponsors
- Appwrite - The open-source backend cloud platform
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
- Onboard AI - Learn any GitHub repo in 59 seconds
sfdx-lwc-jest | apex-recipes | |
---|---|---|
2 | 3 | |
150 | 840 | |
0.7% | 1.7% | |
5.7 | 0.0 | |
16 days ago | 2 days ago | |
JavaScript | Apex | |
MIT License | Creative Commons Zero v1.0 Universal |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sfdx-lwc-jest
-
Apex Unit Testing on Salesforce
For those who are familiar with testing in Javascript but not in APEX or vice-versa, here are some key things to note. The Apex language comes with system methods for writing apex unit tests classes. For JavaScript, there are a number of different testing frameworks but Salesforce recommends using Jest for Lightning Web Components and LWC OSS because of its popularity, ease-of-use, and open-source framework. Jest for Lightning Web Components is available at the sfdx-lwc-jest Github repo. The following table draws some comparisons between the frameworks.
- Javascript Unit Testing
apex-recipes
- apex git hub repos
-
Apex Unit Testing on Salesforce
More information on testing HTTP callout methods and code samples can be found at the APEX Developer Guide as well as the APEX recipes Github repo.
What are some alternatives?
vscode-jest - The optimal flow for Jest based testing in VS Code
NebulaLogger - The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.
sfdc-ui-lookup-lwc - Salesforce Lookup Component built with Lightning Web Components.
ecars - Sample application for Lightning Web Components and Salesforce Platform runtime and compute capabilities. Part of the sample gallery. Electric car manufacturer use case. Get inspired and learn best practices.
lwc-virtual-scroll-sample - Virtual Scroll in Lightning Web Component
ApexTestKit - A way to simplify your Salesforce data creation and method stubbing.
lwc-recipes - A collection of easy-to-digest code examples for Lightning Web Components on Salesforce Platform
approval-process-reminders - CloudAnswers Approval Process Reminders AppExchange App
sfdc-trigger-framework - A minimal trigger framework for your Salesforce Apex Triggers
common-coding-conventions - A concise and universal guide to clear software design.
eslint-plugin-lwc - Official ESLint rules for LWC