First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open your terminal and run the following command
jmeter -n -t <path to your app>/load-test/demo.jmx -l <path to your app>/load-test/results/demo_results.jtl -e -o <path to your app>/load-test/results/demo_results_temp
Explanation documented in this blog