Skip to content

Commit 61933c3

Browse files
author
Dave Bartolomeo
committed
Dump pack contents when expected file not found
1 parent e03c2b1 commit 61933c3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extensions/ql-vscode/test/vscode-tests/cli-integration/variant-analysis/variant-analysis-manager.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ function toExistInPack(
4141
}
4242

4343
const pass = packFS.fileExists(actual);
44+
const files = packFS.allFiles().join("\n");
4445
if (pass) {
4546
return {
4647
pass: true,
@@ -49,7 +50,8 @@ function toExistInPack(
4950
} else {
5051
return {
5152
pass: false,
52-
message: () => `expected ${actual} to exist in pack`,
53+
message: () =>
54+
`expected ${actual} to exist in pack. The following files were found in the pack:\n${files}`,
5355
};
5456
}
5557
}

0 commit comments

Comments
 (0)