import { } from 'jest';
import { } from 'node';
import runJest from '../__helpers__/runJest';

describe('use strict', () => {

  it('should show the error locations for "use strict" violations', () => {

    const result = runJest('../use-strict', ['--no-cache', '-t', 'Invalid Strict']);

    const stderr = result.stderr.toString();

    expect(result.status).toBe(1);
    expect(stderr).toContain('Strict.ts:4:4');
    expect(stderr).toContain('Strict.test.ts:9:5');

  });

  it('should work with "use strict"', () => {

    const result = runJest('../use-strict', ['--no-cache', '-t', 'Strict1']);

    expect(result.status).toBe(0);

  });

});
import { } from 'jest';
import { } from 'node';
import runJest from '../__helpers__/runJest';

describe('use strict', () => {

  fit('should show the error locations for "use strict" violations', () => {

    const result = runJest('../use-strict', ['--no-cache', '-t', 'Invalid Strict']);

    const stderr = result.stderr.toString();

    expect(stderr).toContain('Strict.ts:4:4');
    expect(stderr).toContain('Strict.test.ts:9:5');

  });

  it('should work with "use strict"', () => {

    const result = runJest('../use-strict', ['--no-cache', '-t', 'Strict1']);

    expect(result.status).toBe(0);

  });

});

Update use strict test to only check for line numbers
Update use strict test to only check for line numbers
