mantoni / mochify.js

☕️ TDD with Browserify, Mocha, Headless Chrome and WebDriver
MIT License
346 stars 57 forks source link

Serve files with content-type headers #188

Closed mantoni closed 5 years ago

mantoni commented 5 years ago

This adds mime as a dependency to lookup the content-type based on the file extension. This package was chosen because it's already used by Puppeteer, hence it's not adding any weight.

Fixes the failing webworker test in https://github.com/sinonjs/sinon/pull/1950 🎉