- install karma
karma init
-
basePath: dir where karma loadingfilesto its cache -
files: what files shall be loaded into cache frombasePath/path/to/an/file/path/to/some/**/*.file{ pattern: 'src/foo/**/*.js', included: false, served: true }load files to__karma__.filebut not load to browser. good for requirejs case. (file shall be loaded into browser by requirejs)
-
exclude: specific files shall be excluded.
deps: test spec filesbaseUrl: usually it's just/baseby default. sort of hard config.paths,map,shim: requirejs config