function* getBasicInvalidTests() {
	for (const [type, templates] of Object.entries(loopTemplates)) {
		for (const template of templates) {
			yield* invalidLoopBodies.map(body => ({
				code: getSourceCode(template, body),
				errors: [{ type, messageId: "invalid" }],
			}));
		}
	}
}
Generates basic invalid tests from `loopTemplates` and `invalidLoopBodies`
@returns {IterableIterator<Object>} The list of objects for the invalid[] array.