import { expect } from 'chai';
describe('some test suite', function () {
it('test should exist', function () {
const test = 'test';
expect(test).to.equal('test');
});
});
When running grit apply chai_to_jest it converts the expect methods but the import { expect } from 'chai; is not removed.
import { expect } from 'chai';
describe('some test suite', function () {
it('test should exist', function () {
const test = 'test';
expect(test).toBe('test');
});
});
Given the following file.
When running
grit apply chai_to_jest
it converts theexpect
methods but theimport { expect } from 'chai
; is not removed.Workaround is to manually call
remove_import
.