I was recently laid off and have been applying to jobs. I have been adding more code to public repos on sites like GitHub. I started using AI such as ChatGPT to help write some code. While I wouldn't feel comfortable copying the whole program, I have used it for things such as coming up with tests cases or comparing my solution to the one it gives.
Where should the line be drawn when it comes to using code generated by AI to get an interview? As long as I can explain what it does, should I include it in my portfolio?
I realize this is a subject that is actively evolving, one place I interviewed with preferred its workers use AI to its fullest extent including having it write as much code as possible that ends up in production.