Karma:当 basePath 为空字符串时,它会被解析成什么?

Karma: What does basePath get resolved to when it's an empty string?

docs 说:

Pattern matching and basePath

  • All of the relative patterns will get resolved using the basePath first.
  • If the basePath is a relative path, it gets resolved to the directory where the configuration file is located.
  • Eventually, all the patterns will get resolved into files using glob, so you can use minimatch expressions like test/unit/**/*.spec.js.

这似乎没有解决以下情况:

basePath: ''

那样的话,会解决成什么?

空字符串相当于.的相对路径。也就是说,相对于这里。