Drain and press your tofu to get out as much liquid as possible then cut into cubes.
Place oil in a skillet and turn the heat to medium and allow the skillet to heat up for about 2 minutes before adding the tofu.
Place the tofu in the hot skillet, sprinkle it with salt, and allow it to cook for about 2 minutes before giving the skillet a little shake. If the tofu moves freely in the pan, flip it to the other side.
Continue to cook the tofu on each side for about 2 minutes allowing it to get brown and crispy before flipping.
Once all sides of the tofu are browned and crispy, remove from heat and stir in 1/3 cup of fresh vegan pesto. Stir until it's well coated, then serve with pasta or salads.
Notes
Get the pan hot before adding the tofu cubes, this will help them not to stick to the pan.
Only add the pesto after you turn off the heat for the freshest flavor.