larsthorup / mocha-vite-puppeteer

Run your Mocha tests with Vite bundler and Puppeteer.
MIT License
40 stars 5 forks source link

watch mode #32

Open larsthorup opened 2 years ago

larsthorup commented 2 years ago

Only run tests impacted by changes to code / tests since last run. How can this be done?

bjarkihall commented 2 years ago

Regarding the "how", doesn't the vite server have watch mode which provides this information (files changed and their module-graph) to plugins? https://vitejs.dev/guide/api-plugin.html#configureserver

larsthorup commented 2 years ago

Yes, that would probably be a good starting point!