Merge pull request #15397 from backstage/jhaals/repo-tools

repo-tools/chore: Update tests to pass on windows
This commit is contained in:
Johan Haals
2022-12-22 17:03:35 +01:00
committed by GitHub
2 changed files with 21 additions and 18 deletions
@@ -16,7 +16,7 @@
import fs from 'fs-extra';
import mockFs from 'mock-fs';
import { resolve as resolvePath } from 'path';
import { resolve as resolvePath, join as joinPath } from 'path';
import { paths } from '../../paths';
import { Task } from '../../tasks';
import { FactoryRegistry } from '../FactoryRegistry';
@@ -73,7 +73,7 @@ describe('webLibraryPackage factory', () => {
'',
`Creating web-library package ${expectedwebLibraryPackageName}`,
'Checking Prerequisites:',
`availability packages/${expectedwebLibraryPackageName}`,
`availability ${joinPath('packages', expectedwebLibraryPackageName)}`,
'creating temp dir',
'Executing Template:',
'copying .eslintrc.js',
@@ -82,7 +82,7 @@ describe('webLibraryPackage factory', () => {
'templating index.ts.hbs',
'copying setupTests.ts',
'Installing:',
`moving packages/${expectedwebLibraryPackageName}`,
`moving ${joinPath('packages', expectedwebLibraryPackageName)}`,
]);
await expect(