Loading tutorials
@salesforce/sfdx-lwc-jest package, its configuration, where test files go, and how to run them. L5 min readcreateElement. It also assumes you know what a promise is and how async/await works. It explains why a test that looks correct can fail because the DOM has not updated yet, and how to wait for the update.5 min read@wire decorator in your component and the data your template renders. Once you can describe that path, the test wire adapters in the next chapter make sense. A test adapter replaces one piece of this path and leaves the rest alone.6 min read@wire decorator, and Apex imports. It also assumes basic Jest (describe, it, expect, jest.fn) and promises with async/await. You should already know how to create a component with5 min read@wire does and how to create a component with createElement. You will test a component that reads a record through getRecord, and you will drive it with data and errors without an org.4 min read@wire and Apex imports, basic Jest (describe, it, expect, jest.fn), and promises with async/await. It also a5 min readasync/await. You should also have a test that creates a component with createElement and waits for rendering, as covered in the ear5 min readcreateElement, flush promises, and drive a wired property or an imperative Apex call from a test. If any of that is unfamiliar, review the earlier chapters on test wire adapters and Apex mocks first.5 min readcreateElement. It also assumes you know how to mock a wired Apex method and an imperative Apex call, and that you are comfortable with async/await. Here you will learn what state survives from one test to the next, and how 6 min read