async function generateEmFileError() {
	const results = await Promise.allSettled(
		Array.from({ length: FILE_COUNT }, (_, i) => {
			const fileName = `file_${i}.js`;

			return readFile(`${OUTPUT_DIRECTORY}/${fileName}`);
		}),
	);
	const failedResult = results.find(({ status }) => status === "rejected");

	if (failedResult?.reason) {
		throw failedResult.reason;
	}
}
Generates an EMFILE error by reading all files in the output directory.
@returns {undefined}