https://supabase.com/ logo
Join Discord
Powered by
# off-topic
  • o

    Olyno

    07/28/2021, 2:29 AM
    It's not real tests
  • o

    Olyno

    07/28/2021, 2:29 AM
    Unit tests able you to repeat tasks
  • o

    Olyno

    07/28/2021, 2:30 AM
    For example: when the user click on the input, the label becomes red. When the user enter a password with less than 6 chars, it shows an error message....
  • f

    Flyken

    07/28/2021, 2:30 AM
    but if it passes once, wouldn't it pass all the time?
  • o

    Olyno

    07/28/2021, 2:31 AM
    Not really. Imagine you're working on a feature, and a day, you're working on a 2nd feature which changed some of your first feature. If your first feature breaks with the 2nd, well this is not good
  • f

    Flyken

    07/28/2021, 2:31 AM
    but like
  • f

    Flyken

    07/28/2021, 2:32 AM
    wouldn't you be able to see without a unit test that something is wrong?
  • f

    Flyken

    07/28/2021, 2:32 AM
    because i can see whether or not the thing i wrote works or not :P does that i mean i don't need a unit test?
  • o

    Olyno

    07/28/2021, 2:32 AM
    When testing yourself the website yeah
  • f

    Flyken

    07/28/2021, 2:33 AM
    oooh ok
  • f

    Flyken

    07/28/2021, 2:33 AM
    so if im testing the website myself, like mnaually
  • f

    Flyken

    07/28/2021, 2:33 AM
    then im doing the same as a unit test
  • o

    Olyno

    07/28/2021, 2:33 AM
    Exactly
  • o

    Olyno

    07/28/2021, 2:33 AM
    But I challenge you to check everything on your website after coding something
  • o

    Olyno

    07/28/2021, 2:33 AM
    Like everytime
  • f

    Flyken

    07/28/2021, 2:33 AM
    i already do
  • o

    Olyno

    07/28/2021, 2:34 AM
    I'm not sure about that, and even if it's true, you're losing a lot of times
  • f

    Flyken

    07/28/2021, 2:34 AM
    well
  • f

    Flyken

    07/28/2021, 2:34 AM
    i test things that are relevant
  • l

    lawrencecchen

    07/28/2021, 2:34 AM
    checking everything every time is also not feasible on hugeee projects
  • o

    Olyno

    07/28/2021, 2:34 AM
    15 minutes to try all features of your website alone, 5 minutes with unit testings way ¯\_(ツ)_/¯
  • f

    Flyken

    07/28/2021, 2:34 AM
    for instance, when testing the subbed gamed features, i don't test whether or not your profile picture show sup
  • f

    Flyken

    07/28/2021, 2:35 AM
    but writing unit tests sounds tedious
  • f

    Flyken

    07/28/2021, 2:35 AM
    i got a lot of shit
  • f

    Flyken

    07/28/2021, 2:35 AM
    plus its like learning a new language just to use jest
  • o

    Olyno

    07/28/2021, 2:35 AM
    You know, I did a lot of internships in a lot of companies, and a thing that ALL my mentors told me is "please, try more", sooooo xD
  • o

    Olyno

    07/28/2021, 2:36 AM
    You can use playwright if you prefer
  • o

    Olyno

    07/28/2021, 2:36 AM
    It makes tests for you
  • f

    Flyken

    07/28/2021, 2:36 AM
    playwrite???
  • f

    Flyken

    07/28/2021, 2:36 AM
    WRITES TESTS FOR ME????/
1...181920...392Latest