-TypeScriptSimple = require('typescript-simple').TypeScriptSimple
-
-tss = new TypeScriptSimple(
-  {
-    "target": "es6",
-    "sourceMap": true,
-    "emitDecoratorMetadata": true,
-    "experimentalDecorators": true
-  },
-  false   # ingore semantic errors
-)
-
-typescriptCompiler =
-  transpile: (content, options, path) ->
-    tss.compile(content, path)
-
 module.exports = (config) ->
   config.set
     # The base path to resolve files is the top-level qiprofile directory.

      # Include config and typings for TypeScript?
      serveFiles: ['src/**/*!(.spec).*', 'tsconfig.json', 'typings/**/*.d.ts']

    # The preprocessor settings are unnecessary since jspm takes over file
    # resolution and invokes the jspm transpilers. 
    # preprocessors:
    #   'src/**/*.js': ['babel', 'sourcemap']
    #
    # # The test suite language pre-processors.
    # # CoffeeScript is supported out of the box.
    # #
    # # Note: the karma babel preprocessor fails due to the following bug:
    # # * Running karma on a js with the babel preprocessor results in the
    # #   following error:
    # #     path.charAt is not a function
    # #
    # # Note: the karma typescript preprocessor fails due to the following bug:
    # # * Running karma on a typescript test suite results in the following error:
    # #
    # # preprocessors:
    # #   'src/**/*.js': ['babel', 'sourcemap']
    # #   'src/**/*.ts': ['typescript', 'sourcemap']
    #
    # # The babel ec6-to-ec5 compiler options.
    # # karma-sourcemap-loader generates the source maps.
    # # The filename function is used for messages.
    # # The sourceFileName function specifies the
    # # transpiled file to use as the source map key.
    # babelPreprocessor:
    #   options:
    #     # This preset option might be unnecessary, since it is also specified
    #     # in .babelrc.
    #     # TODO - Confirm this.
    #     presets: ['es2015']
    #     sourceMap: 'inline'
    #     sourceFileName: (file) ->
    #       file.originalPath
    #
    # # The TypeScript compiler options.
    # typescriptPreprocessor:
    #   typescript: typescriptCompiler

    # The test results reporter.
    # Possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
    # and (thanks to karma-spec-reporter) 'spec'.
    reporters: ['progress']

    # Flag indicating whether to display colors in the reporter and log output.
    colors: true

    # The proxies map the file paths to the karma root url /base.
    # Each directory referenced by a test file must be mapped as
    # a proxy.
    #
    # Note: /app is mapped to /src by jspm, so we don't need a separate
    #   /app/ mapping here.
    proxies:
      '/src/': '/base/src/'
      '/jspm_packages/': '/base/jspm_packages/'
