# jest/prefer-ending-with-an-expect 📝 Prefer having the last statement in a test be an assertion. Prefer ending tests with an `expect` assertion. ## Rule details This rule triggers when a test body does not end with an `expect` call, which can indicate an unfinished test. Examples of **incorrect** code for this rule: ```js it('lets me change the selected option', () => { const container = render(MySelect, { props: { options: [1, 2, 3], selected: 1 }, }); expect(container).toBeDefined(); expect(container.toHTML()).toContain('