Skip to content

Instantly share code, notes, and snippets.

@lifeart
Last active September 20, 2018 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lifeart/5f75981d5f6262d1bfc4525aebfcf7d5 to your computer and use it in GitHub Desktop.
Save lifeart/5f75981d5f6262d1bfc4525aebfcf7d5 to your computer and use it in GitHub Desktop.
Ember Typescript Code Coverage

Steps:

1.) in tsconfig.json

  {
    compilerOptions: {
     "inlineSourceMap": true,
     "inlineSources": true,
    }
  }

2.) in ember-cli-build.js

  const app = new EmberApp(defaults, {
      babel: {
          sourceMaps: 'inline',
      },
      sourcemaps: {
          enabled: config.sourcemapsEnabled,
          extensions: ['js'],
      }
  });

3.) in package.json

 {
  devDependencies: {
   "ember-cli-code-coverage": "https://github.com/kategengler/ember-cli-code-coverage#master#2018-08-15T15:51:29Zs"
  }
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment