       soFar += (if soFar then pathSep else "") + dir
 
 discoverTests = (dir) ->
-  dir ||= if isComponent() then join(testDirectory(), "static") else "static"
+  dir ||= join testDirectory(), "static"
   return [] if not exists dir
   results = []
   t.dfs dirTree = {path: "."}, (n) ->

sourceDirectory = (dir = ".") ->
  pkgJson(dir).component?.sourceDirectory || "src"

testDirectory = (dir = ".") ->
  pkgJson(dir).component?.testDirectory || ".test"

testTemplate = (dir = ".") ->
  tt = pkgJson(dir).component?.testTemplate


  install: () ->
    components = allComponents()
    componentsDirName = join testDirectory(), "static/components"
    provide componentsDirName
    for component in components
      src = join(component.path, sourceDirectory(component.path))
