`if full_path.endswith('_test.js')` is more robust and easier to read.