<commit_before>import runJest from '../__helpers__/runJest';
import * as fs from 'fs';
import * as path from 'path';

describe('hello_world', () => {
  const snapshot =
    `-----------|----------|----------|----------|----------|----------------|
File       |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
-----------|----------|----------|----------|----------|----------------|
 simple${path.sep}   |    90.91 |       50 |       80 |    88.89 |                |
  Hello.ts |    90.91 |       50 |       80 |    88.89 |             20 |
-----------|----------|----------|----------|----------|----------------|
All files  |    90.91 |       50 |       80 |    88.89 |                |
-----------|----------|----------|----------|----------|----------------|
`;

  it('should run successfully', () => {
    runJest('../simple', ['--no-cache', '--coverage']);

    const coveragePath = path.normalize('tests/simple/coverage/remapped/coverage.txt');

    expect(fs.existsSync(coveragePath)).toBeTruthy();
    expect(fs.readFileSync(coveragePath, 'utf-8')).toEqual(snapshot);
  });

});<commit_msg>Fix for travis-ci and #36<commit_after>import runJest from '../__helpers__/runJest';
import * as fs from 'fs';
import * as path from 'path';

describe('hello_world', () => {
  const snapshot =
    `-----------|----------|----------|----------|----------|----------------|
File       |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
-----------|----------|----------|----------|----------|----------------|
 simple${path.sep}   |    90.91 |       50 |       80 |    88.89 |                |
  Hello.ts |    90.91 |       50 |       80 |    88.89 |             20 |
-----------|----------|----------|----------|----------|----------------|
All files  |    90.91 |       50 |       80 |    88.89 |                |
-----------|----------|----------|----------|----------|----------------|
`;

  it('should run successfully', () => {
    runJest('../simple', ['--no-cache', '--coverage']);

    const coveragePath = './tests/simple/coverage/remapped/coverage.txt';

    expect(fs.existsSync(coveragePath)).toBeTruthy();
    expect(fs.readFileSync(coveragePath, 'utf-8')).toEqual(snapshot);
  });

});
{'fraction_non_alphanumeric': 0.3892889288928893, 'fraction_numerical': 0.036003600360036005, 'mean_word_length': 1.0564292321924145, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3086962', 'n_tokens_mistral': 696, 'n_tokens_neox': 610, 'n_words': 110}