Comments (7)
karma-browserifast uses a similar strategy (a tmp file) so it's helpful to hear that it's working. karma-bro uses watchify to do incremental bundles rather than trying to implement a separate watcher with chokidar. I don't think it's possible to change the filename without breaking Karma's handling of file matching. Mind whipping up a quick repo with your config so we can try to reproduce this?
from karma-browserify.
Unfortunately, it's all proprietary for the moment, so I can't share much of it. If I find some time in the next few days, I'll see if I can simulate a fake project.
Would simply adding a cache busting parameter (e.g. ?cachebust=<Date.now()>
) also break the karma file matching?
Here's the karma config:
module.exports = (config) ->
config.set
frameworks: [
'mocha'
'browserify'
]
basePath: '.'
files: [
'test/unit/spec/**/*.js'
'test/integration/spec/**/*.js'
]
exclude: [
# skip the shim files, shim config in package.json will load them
'test/unit/spec/**/*.shim.js'
'test/integration/spec/**/*.shim.js'
]
preprocessors:
'test/unit/spec/**/*.js': ['browserify']
'test/integration/spec/**/*.js': ['browserify']
hostname: '127.0.0.1'
port: 8000
reporters: [
'mocha'
]
browserify:
debug: true
watch: true
transform: [
'browserify-shim'
]
browserNoActivityTimeout: 5*60*1000
browsers: [
# 'ChromeWithoutSecurity'
'Chrome'
'Firefox'
'Safari'
]
browserNoActivityTimeout: 5*60*1000
customLaunchers:
ChromeWithoutSecurity:
base: 'Chrome'
flags: ['--disable-web-security']
from karma-browserify.
My understanding is that Karma is responsible for reloading and filenames can't be changed
from karma-browserify.
Yes, karma is 100% in charge of caching files (and appending cache busting parameters, if needed).
Try using chrome and report if the problem persists. If so, it might be a problem with the karma-safari-launcher.
I experienced some caching problems with IE and PhantomJS, too but there is nothing karma-bro can do to mitigate this.
from karma-browserify.
Feel free to reopen the issue if you have a reproducible test case.
from karma-browserify.
I get this all the time running karma interactively (ie: not using a launcher).
from karma-browserify.
Which environment / karma / karma-bro version do you use?
from karma-browserify.
Related Issues (20)
- intellij karma runner doesn't use watchify for bundle rebuild HOT 3
- Cannot read property 'bundleFile' of undefined HOT 2
- Error: Cannot find module HOT 2
- Use global transforms HOT 4
- ERROR [framework.browserify]: Error: Cannot find module HOT 2
- attempting to use node-underscorify with karma-browserify fails HOT 2
- Missing repo nikku/node-browserify breaks older versions (<4.0) HOT 1
- Karma not working with Firefox(FirefoxHeadless) when loading with html page. HOT 1
- Unable to browserify file HOT 1
- Install issues due to browserify peerDependecy condition HOT 1
- karma-browserify HOT 1
- lodash vulnerability reported by "npm audit" HOT 1
- When packaged, my test coverage is always 100% HOT 4
- release with PhantomJS removed? HOT 1
- promisify is not a function HOT 2
- Using karma-browserify with WASM HOT 2
- Cannot use import statement outside a module only on karma-browserify HOT 3
- Support for Browserify v17 HOT 2
- Breaking change coming for karma-browserify/lib/preprocessor.js HOT 4
- Support watchify <= 4 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karma-browserify.