|
1 | 1 | import { vol } from 'memfs'; |
| 2 | +import { join } from 'node:path'; |
2 | 3 | import type { PackageJson } from 'type-fest'; |
3 | 4 | import { MEMFS_VOLUME } from '@code-pushup/test-utils'; |
4 | 5 | import * as utils from '@code-pushup/utils'; |
@@ -217,19 +218,19 @@ describe('listMonorepoProjects', () => { |
217 | 218 | }), |
218 | 219 | ).resolves.toEqual([ |
219 | 220 | { |
220 | | - name: 'backend/api', |
| 221 | + name: join('backend', 'api'), |
221 | 222 | bin: 'npx --no-install code-pushup', |
222 | | - directory: `${MEMFS_VOLUME}/backend/api`, |
| 223 | + directory: join(MEMFS_VOLUME, 'backend', 'api'), |
223 | 224 | }, |
224 | 225 | { |
225 | | - name: 'backend/auth', |
| 226 | + name: join('backend', 'auth'), |
226 | 227 | bin: 'npx --no-install code-pushup', |
227 | | - directory: `${MEMFS_VOLUME}/backend/auth`, |
| 228 | + directory: join(MEMFS_VOLUME, 'backend', 'auth'), |
228 | 229 | }, |
229 | 230 | { |
230 | 231 | name: 'frontend', |
231 | 232 | bin: 'npx --no-install code-pushup', |
232 | | - directory: `${MEMFS_VOLUME}/frontend`, |
| 233 | + directory: join(MEMFS_VOLUME, 'frontend'), |
233 | 234 | }, |
234 | 235 | ] satisfies ProjectConfig[]); |
235 | 236 | }); |
@@ -258,22 +259,22 @@ describe('listMonorepoProjects', () => { |
258 | 259 | { |
259 | 260 | name: 'my-app', |
260 | 261 | bin: 'npx --no-install code-pushup', |
261 | | - directory: MEMFS_VOLUME, |
| 262 | + directory: join(MEMFS_VOLUME), |
262 | 263 | }, |
263 | 264 | { |
264 | 265 | name: 'migrate', |
265 | 266 | bin: 'npx --no-install code-pushup', |
266 | | - directory: `${MEMFS_VOLUME}/scripts/db/migrate`, |
| 267 | + directory: join(MEMFS_VOLUME, 'scripts', 'db', 'migrate'), |
267 | 268 | }, |
268 | 269 | { |
269 | 270 | name: 'seed', |
270 | 271 | bin: 'npx --no-install code-pushup', |
271 | | - directory: `${MEMFS_VOLUME}/scripts/db/seed`, |
| 272 | + directory: join(MEMFS_VOLUME, 'scripts', 'db', 'seed'), |
272 | 273 | }, |
273 | 274 | { |
274 | 275 | name: 'generate-token', |
275 | 276 | bin: 'npx --no-install code-pushup', |
276 | | - directory: `${MEMFS_VOLUME}/scripts/generate-token`, |
| 277 | + directory: join(MEMFS_VOLUME, 'scripts', 'generate-token'), |
277 | 278 | }, |
278 | 279 | ] satisfies ProjectConfig[]); |
279 | 280 | }); |
|
0 commit comments