Whisk together the dry ingredients: In a large bowl, whisk the flour, sugar, cinnamon, baking soda, salt, baking powder, and allspice until well combined. As you whisk, the air fills with the warm, heady scent of cinnamon and allspice—a promise of what's to come. Break up any clumps of flour or spice.
Beat the wet ingredients: In a separate small bowl, beat the eggs, grated zucchini, canola oil, and vanilla extract until the eggs are fully incorporated and the mixture looks pale and slightly frothy. You'll hear the gentle splash of the oil blending in. Don't worry if the zucchini separates a little – that's fine.
Combine wet into dry: Pour the wet mixture into the dry ingredients and stir with a spatula or wooden spoon just until no streaks of flour remain. Do not overmix – the batter will look slightly lumpy, which is perfect. Overmixing develops gluten and creates a dense, tough bread.
Fold in the add-ins: Gently fold in the chocolate chips and raisins (if using). The batter turns speckled with dark chocolate and golden raisins—each fold revealing a little more. Reserve a tablespoon of chips to sprinkle on top of the batter right before baking – it makes a pretty crown.
Fill the pans: Divide the batter evenly between two greased 8x4-inch loaf pans. Smooth the tops with the spatula and sprinkle the reserved chocolate chips on top.
Bake: Place pans on the middle rack of the oven. Bake for 60 to 65 minutes, or until a toothpick inserted in the center comes out clean (just a few moist crumbs are okay). Zucchini adds moisture, so baking may take the full 65 minutes – start checking at 60 and add 5-minute increments if needed. If the tops are browning too quickly (usually after 40 minutes), tent the loaves loosely with aluminum foil.
Cool and remove: Let the pans cool on a wire rack for exactly 10 minutes. This resting time lets the loaves set so they don't crumble when you turn them out. Then carefully remove the loaves from the pans and transfer them directly to the wire racks to cool completely – at least another hour if you can wait.