Skip to content

Commit

Permalink
test(ci): fix expected paths on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk committed Oct 15, 2024
1 parent 9cede34 commit 138e180
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions packages/ci/src/lib/monorepo/list-projects.unit.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { vol } from 'memfs';
import { join } from 'node:path';
import type { PackageJson } from 'type-fest';
import { MEMFS_VOLUME } from '@code-pushup/test-utils';
import * as utils from '@code-pushup/utils';
Expand Down Expand Up @@ -217,19 +218,19 @@ describe('listMonorepoProjects', () => {
}),
).resolves.toEqual([
{
name: 'backend/api',
name: join('backend', 'api'),
bin: 'npx --no-install code-pushup',
directory: `${MEMFS_VOLUME}/backend/api`,
directory: join(MEMFS_VOLUME, 'backend', 'api'),
},
{
name: 'backend/auth',
name: join('backend', 'auth'),
bin: 'npx --no-install code-pushup',
directory: `${MEMFS_VOLUME}/backend/auth`,
directory: join(MEMFS_VOLUME, 'backend', 'auth'),
},
{
name: 'frontend',
bin: 'npx --no-install code-pushup',
directory: `${MEMFS_VOLUME}/frontend`,
directory: join(MEMFS_VOLUME, 'frontend'),
},
] satisfies ProjectConfig[]);
});
Expand Down Expand Up @@ -258,22 +259,22 @@ describe('listMonorepoProjects', () => {
{
name: 'my-app',
bin: 'npx --no-install code-pushup',
directory: MEMFS_VOLUME,
directory: join(MEMFS_VOLUME),
},
{
name: 'migrate',
bin: 'npx --no-install code-pushup',
directory: `${MEMFS_VOLUME}/scripts/db/migrate`,
directory: join(MEMFS_VOLUME, 'scripts', 'db', 'migrate'),
},
{
name: 'seed',
bin: 'npx --no-install code-pushup',
directory: `${MEMFS_VOLUME}/scripts/db/seed`,
directory: join(MEMFS_VOLUME, 'scripts', 'db', 'seed'),
},
{
name: 'generate-token',
bin: 'npx --no-install code-pushup',
directory: `${MEMFS_VOLUME}/scripts/generate-token`,
directory: join(MEMFS_VOLUME, 'scripts', 'generate-token'),
},
] satisfies ProjectConfig[]);
});
Expand Down

0 comments on commit 138e180

Please sign in to comment.