- install karma
karma init
-
basePath
: dir where karma loadingfiles
to 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__.file
but 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/base
by default. sort of hard config.paths
,map
,shim
: requirejs config