I have edited the Js file in my module and tried deleting the file in an appropriate location like pub/static/My_Theme/My_Modul/js/test.js But still getting the same file when I checked in the source tab of my browser.
I tried all these below
rm -rf var/cache/* var/generation/* var/page_cache/* var/view_preprocessed/*
rm -rf pub/static/frontend
php bin/magento setup:static-content:deploy -f
My environment is in developer mode too.
Even though how many times I run deployment I'm getting the same file. I cleared the browser cache, tried the private window, and also another newly installer browser. In sometimes I'm getting frustrated on this.