If you know the problem domain and environment well - you good to write the unit/integration/functional tests before development.
Otherwise write a trivial e2e test first and keep discovering the nuances. The rest of tests could be written later
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.