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
+4
View File
@@ -53,6 +53,10 @@ jobs:
- name: verify type dependencies
run: yarn lint:type-deps
# The core packages need to be built for the codemods tests to work
- name: build core packages
run: lerna run --scope @backstage/core-* build
- name: test
run: yarn lerna -- run test
env:
@@ -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', () => {