codemods,workflows: fix codemods tests on windows

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-06-10 15:16:59 +02:00
parent ed351ec8cf
commit aa204e01e9
2 changed files with 6 additions and 1 deletions
@@ -25,7 +25,8 @@ function runTransform(source: string) {
stats: () => undefined,
report: () => undefined,
};
return coreImportTransform({ source, file: 'test.ts' }, api);
const result = coreImportTransform({ source, file: 'test.ts' }, api);
return result?.split('\r\n').join('\n');
}
describe('core-imports', () => {