I have the following in my test file. I’m trying to use env variables on my scripts then send the value thru commandline.
const MYURL = process.env.URL;
console.log(MYURL)
In the commandline when I run the following:
URL=Test.com npx playwright test
I get an error message:
The term ‘URL=Test.com’ is not recognized as the name of the cmdlet..etc.