Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions extractors/cds/tools/test/src/cds/indexer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,14 @@
orchestrateCdsIndexer(graph, '/source', new Map());

expect(projectInstaller.projectInstallDependencies).toHaveBeenCalledWith(project, '/source');

// The cds-indexer must run before the full dependency installation, so
// that dependencies are only installed after a successful indexer run.
const indexerSpawnOrder = (childProcess.spawnSync as jest.Mock).mock

Check failure on line 520 in extractors/cds/tools/test/src/cds/indexer.test.ts

View workflow job for this annotation

GitHub Actions / CDS extractor bundle validation

Delete `⏎········`
.invocationCallOrder[0];
const installOrder = (projectInstaller.projectInstallDependencies as jest.Mock).mock
.invocationCallOrder[0];
expect(indexerSpawnOrder).toBeLessThan(installOrder);
});

it('should not install full project dependencies when cds-indexer fails', () => {
Expand Down
Loading