codemods,workflows: fix codemods tests on windows
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user