       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) ->


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

    port = process.env.PORT || 1335
    host = process.env.HOST || "localhost"
    components = allComponents()
    staticDirName = join testDirectory(), "static"
    return listTests(discoverTests(staticDirName), host, port) if argv.list
    commands.install()
    tests = discoverTests staticDirName
