Skip to content

Commit

Permalink
test: ignore coverage for skipped tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oxdev03 committed Dec 15, 2024
1 parent b9dbd66 commit 692c823
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/utils/iterate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ describe('iterate', () => {

// This won't be supported
it.skip('should handle top-level wildcard for private fields', () => {
/* v8 ignore start */
const obj = {
private: {
_id: 123,
Expand All @@ -502,6 +503,7 @@ describe('iterate', () => {
],
]
`);
/* v8 ignore stop */
});
});
});
4 changes: 4 additions & 0 deletions src/xlucene/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
import * as i from '../../types/ast';
import * as utils from '../../types/guards';

/* v8 ignore start */
// Ignore coverage for grammar specific validation

function validateScopedChars(chars: string[]) {
for (const [idx, char] of chars.entries()) {
if (char === '.' && chars[idx + 1] === '.') {
Expand Down Expand Up @@ -68,5 +71,6 @@ function propagateDefaultField(node: i.Node, field: string): void {
}
}
}
/* v8 ignore stop */

export { propagateDefaultField, validateScopedChars };

0 comments on commit 692c823

Please sign in to comment.