Skip to content

Improve error messages #168

Improve error messages

Improve error messages #168

GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) failed Nov 24, 2025 in 0s

Test suite run failed

Failed tests: 33/639. Failed suites: 5/32.

Details

Created failed tests' annotations. To disable them, see documentation.

  ● Content Validation - Comprehensive Test Suite › Query Validation › should validate field UID in query operations

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid fieldUid:", "invalid field"
    Received: "Invalid fieldUid. Provide an alphanumeric field UID and try again."

    Number of calls: 1

      661 |       // Check that console.error was called for invalid field UIDs
      662 |       // Note: The validation function only logs for the first invalid field encountered
    > 663 |       expect(consoleSpy).toHaveBeenCalledWith('Invalid fieldUid:', 'invalid field');
          |                          ^
      664 |       
      665 |       consoleSpy.mockRestore();
      666 |     });

      at Object.<anonymous> (test/unit/content-validation-comprehensive.spec.ts:663:26)

  ● Content Validation - Comprehensive Test Suite › Query Validation › should validate query value types

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid value (expected string or number):", []
    Received
           1: "Invalid fieldUid. Provide an alphanumeric field UID and try again."
           2: "Invalid value. Provide a string or number and try again."
           3: "Invalid value. Provide a string or number and try again."

    Number of calls: 4

      714 |       query.equalTo('title', {} as any);
      715 |       
    > 716 |       expect(consoleSpy).toHaveBeenCalledWith('Invalid value (expected string or number):', []);
          |                          ^
      717 |       expect(consoleSpy).toHaveBeenCalledWith('Invalid value (expected string or number):', {});
      718 |       
      719 |       consoleSpy.mockRestore();

      at Object.<anonymous> (test/unit/content-validation-comprehensive.spec.ts:716:26)


  ● Query Optimization - Comprehensive Test Suite › Parameter Validation › should validate field UIDs for alphanumeric characters

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid fieldUid:", "invalid field"
    Received
           1: "Invalid fieldUid. Provide an alphanumeric field UID and try again."
           2: "Invalid fieldUid. Provide an alphanumeric field UID and try again."
           3: "Invalid fieldUid. Provide an alphanumeric field UID and try again."

    Number of calls: 3

      178 |       query.where('field#hash', QueryOperation.EQUALS, 'value');
      179 |
    > 180 |       expect(consoleSpy).toHaveBeenCalledWith('Invalid fieldUid:', 'invalid field');
          |                          ^
      181 |       expect(consoleSpy).toHaveBeenCalledWith('Invalid fieldUid:', 'field@symbol');
      182 |       expect(consoleSpy).toHaveBeenCalledWith('Invalid fieldUid:', 'field#hash');
      183 |

      at Object.<anonymous> (test/unit/query-optimization-comprehensive.spec.ts:180:26)

  ● Query Optimization - Comprehensive Test Suite › Parameter Validation › should validate containedIn values for proper types

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid value:", [{}, null, undefined]
    Received
           1: "Invalid value. Provide an array of strings, numbers, or booleans and try again."
           2: "Invalid value. Provide an array of strings, numbers, or booleans and try again."

    Number of calls: 2

      208 |       query.containedIn('mixed_invalid', ['valid', {}, 'also_valid'] as any);
      209 |
    > 210 |       expect(consoleSpy).toHaveBeenCalledWith('Invalid value:', [{}, null, undefined]);
          |                          ^
      211 |       expect(consoleSpy).toHaveBeenCalledWith('Invalid value:', ['valid', {}, 'also_valid']);
      212 |
      213 |       consoleSpy.mockRestore();

      at Object.<anonymous> (test/unit/query-optimization-comprehensive.spec.ts:210:26)

  ● Query Optimization - Comprehensive Test Suite › Parameter Validation › should validate value types for comparison operations

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid value (expected string or number):", {}
    Received
           1: "Invalid value. Provide a string or number and try again."
           2: "Invalid value. Provide a string or number and try again."
           3: "Invalid value. Provide a string or number and try again."

    Number of calls: 4

      240 |       query.lessThan('bad_value', {} as any);
      241 |
    > 242 |       expect(consoleSpy).toHaveBeenCalledWith('Invalid value (expected string or number):', {});
          |                          ^
      243 |       expect(consoleSpy).toHaveBeenCalledWith('Invalid value (expected string or number):', []);
      244 |
      245 |       consoleSpy.mockRestore();

      at Object.<anonymous> (test/unit/query-optimization-comprehensive.spec.ts:242:26)

  ● Query Optimization - Comprehensive Test Suite › Parameter Validation › should validate search key for typeahead

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid search"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      255 |       // Invalid search key
      256 |       query.search('invalid search');
    > 257 |       expect(consoleSpy).toHaveBeenCalledWith('Invalid key:', 'invalid search');
          |                          ^
      258 |
      259 |       consoleSpy.mockRestore();
      260 |     });

      at Object.<anonymous> (test/unit/query-optimization-comprehensive.spec.ts:257:26)


  ● Query class › validation error handling › should log error and return this when where() receives invalid fieldUid

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid fieldUid:", "invalid@field!"
    Received: "Invalid fieldUid. Provide an alphanumeric field UID and try again."

    Number of calls: 1

      184 |     it('should log error and return this when where() receives invalid fieldUid', () => {
      185 |       const result = query.where('invalid@field!', QueryOperation.EQUALS, 'value');
    > 186 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid fieldUid:', 'invalid@field!');
          |                               ^
      187 |       expect(result).toBe(query);
      188 |       expect(query._parameters['invalid@field!']).toBeUndefined();
      189 |     });

      at Object.<anonymous> (test/unit/query.spec.ts:186:31)

  ● Query class › validation error handling › should log error and return this when regex() receives invalid fieldUid

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid fieldUid:", "invalid@field!"
    Received: "Invalid fieldUid. Provide an alphanumeric field UID and try again."

    Number of calls: 1

      191 |     it('should log error and return this when regex() receives invalid fieldUid', () => {
      192 |       const result = query.regex('invalid@field!', '^test');
    > 193 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid fieldUid:', 'invalid@field!');
          |                               ^
      194 |       expect(result).toBe(query);
      195 |     });
      196 |

      at Object.<anonymous> (test/unit/query.spec.ts:193:31)

  ● Query class › validation error handling › should log error and return this when containedIn() receives invalid key

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid@key!"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      197 |     it('should log error and return this when containedIn() receives invalid key', () => {
      198 |       const result = query.containedIn('invalid@key!', ['value1', 'value2']);
    > 199 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid key:', 'invalid@key!');
          |                               ^
      200 |       expect(result).toBe(query);
      201 |       expect(query._parameters['invalid@key!']).toBeUndefined();
      202 |     });

      at Object.<anonymous> (test/unit/query.spec.ts:199:31)

  ● Query class › validation error handling › should log error and return this when containedIn() receives invalid value

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid value:", ["value1", {"invalid": "object"}]
    Received: "Invalid value. Provide an array of strings, numbers, or booleans and try again."

    Number of calls: 1

      204 |     it('should log error and return this when containedIn() receives invalid value', () => {
      205 |       const result = query.containedIn('validKey', ['value1', {invalid: 'object'}] as any);
    > 206 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid value:', ['value1', {invalid: 'object'}]);
          |                               ^
      207 |       expect(result).toBe(query);
      208 |     });
      209 |

      at Object.<anonymous> (test/unit/query.spec.ts:206:31)

  ● Query class › validation error handling › should log error and return this when notContainedIn() receives invalid key

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid@key!"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      210 |     it('should log error and return this when notContainedIn() receives invalid key', () => {
      211 |       const result = query.notContainedIn('invalid@key!', ['value1', 'value2']);
    > 212 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid key:', 'invalid@key!');
          |                               ^
      213 |       expect(result).toBe(query);
      214 |     });
      215 |

      at Object.<anonymous> (test/unit/query.spec.ts:212:31)

  ● Query class › validation error handling › should log error and return this when notContainedIn() receives invalid value

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid value:", [null]
    Received: "Invalid value. Provide an array of strings, numbers, or booleans and try again."

    Number of calls: 1

      216 |     it('should log error and return this when notContainedIn() receives invalid value', () => {
      217 |       const result = query.notContainedIn('validKey', [null] as any);
    > 218 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid value:', [null]);
          |                               ^
      219 |       expect(result).toBe(query);
      220 |     });
      221 |

      at Object.<anonymous> (test/unit/query.spec.ts:218:31)

  ● Query class › validation error handling › should log error and return this when exists() receives invalid key

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid@key!"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      222 |     it('should log error and return this when exists() receives invalid key', () => {
      223 |       const result = query.exists('invalid@key!');
    > 224 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid key:', 'invalid@key!');
          |                               ^
      225 |       expect(result).toBe(query);
      226 |     });
      227 |

      at Object.<anonymous> (test/unit/query.spec.ts:224:31)

  ● Query class › validation error handling › should log error and return this when notExists() receives invalid key

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid@key!"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      228 |     it('should log error and return this when notExists() receives invalid key', () => {
      229 |       const result = query.notExists('invalid@key!');
    > 230 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid key:', 'invalid@key!');
          |                               ^
      231 |       expect(result).toBe(query);
      232 |     });
      233 |

      at Object.<anonymous> (test/unit/query.spec.ts:230:31)

  ● Query class › validation error handling › should log error and return this when equalTo() receives invalid key

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid@key!"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      234 |     it('should log error and return this when equalTo() receives invalid key', () => {
      235 |       const result = query.equalTo('invalid@key!', 'value');
    > 236 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid key:', 'invalid@key!');
          |                               ^
      237 |       expect(result).toBe(query);
      238 |     });
      239 |

      at Object.<anonymous> (test/unit/query.spec.ts:236:31)

  ● Query class › validation error handling › should log error and return this when equalTo() receives invalid value (null)

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid value (expected string or number):", null
    Received: "Invalid value. Provide a string or number and try again."

    Number of calls: 1

      240 |     it('should log error and return this when equalTo() receives invalid value (null)', () => {
      241 |       const result = query.equalTo('validKey', null as any);
    > 242 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid value (expected string or number):', null);
          |                               ^
      243 |       expect(result).toBe(query);
      244 |     });
      245 |

      at Object.<anonymous> (test/unit/query.spec.ts:242:31)

  ● Query class › validation error handling › should log error and return this when equalTo() receives invalid value (undefined)

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid value (expected string or number):", undefined
    Received: "Invalid value. Provide a string or number and try again."

    Number of calls: 1

      246 |     it('should log error and return this when equalTo() receives invalid value (undefined)', () => {
      247 |       const result = query.equalTo('validKey', undefined as any);
    > 248 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid value (expected string or number):', undefined);
          |                               ^
      249 |       expect(result).toBe(query);
      250 |     });
      251 |

      at Object.<anonymous> (test/unit/query.spec.ts:248:31)

  ● Query class › validation error handling › should log error and return this when notEqualTo() receives invalid key

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid@key!"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      252 |     it('should log error and return this when notEqualTo() receives invalid key', () => {
      253 |       const result = query.notEqualTo('invalid@key!', 'value');
    > 254 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid key:', 'invalid@key!');
          |                               ^
      255 |       expect(result).toBe(query);
      256 |     });
      257 |

      at Object.<anonymous> (test/unit/query.spec.ts:254:31)

  ● Query class › validation error handling › should log error and return this when notEqualTo() receives invalid value

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid value (expected string or number):", {}
    Received: "Invalid value. Provide a string or number and try again."

    Number of calls: 1

      258 |     it('should log error and return this when notEqualTo() receives invalid value', () => {
      259 |       const result = query.notEqualTo('validKey', {} as any);
    > 260 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid value (expected string or number):', {});
          |                               ^
      261 |       expect(result).toBe(query);
      262 |     });
      263 |

      at Object.<anonymous> (test/unit/query.spec.ts:260:31)

  ● Query class › validation error handling › should log error and return this when referenceIn() receives invalid key

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid@key!"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      265 |       const subQuery = getQueryObject(client, 'content_type_uid');
      266 |       const result = query.referenceIn('invalid@key!', subQuery);
    > 267 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid key:', 'invalid@key!');
          |                               ^
      268 |       expect(result).toBe(query);
      269 |     });
      270 |

      at Object.<anonymous> (test/unit/query.spec.ts:267:31)

  ● Query class › validation error handling › should log error and return this when referenceNotIn() receives invalid key

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid@key!"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      272 |       const subQuery = getQueryObject(client, 'content_type_uid');
      273 |       const result = query.referenceNotIn('invalid@key!', subQuery);
    > 274 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid key:', 'invalid@key!');
          |                               ^
      275 |       expect(result).toBe(query);
      276 |     });
      277 |

      at Object.<anonymous> (test/unit/query.spec.ts:274:31)

  ● Query class › validation error handling › should log error and return this when tags() receives invalid value

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid value:", [{"invalid": "object"}]
    Received: "Invalid value. Provide an array of strings, numbers, or booleans and try again."

    Number of calls: 1

      278 |     it('should log error and return this when tags() receives invalid value', () => {
      279 |       const result = query.tags([{invalid: 'object'}] as any);
    > 280 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid value:', [{invalid: 'object'}]);
          |                               ^
      281 |       expect(result).toBe(query);
      282 |     });
      283 |

      at Object.<anonymous> (test/unit/query.spec.ts:280:31)

  ● Query class › validation error handling › should log error and return this when search() receives invalid key

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid@search!"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      284 |     it('should log error and return this when search() receives invalid key', () => {
      285 |       const result = query.search('invalid@search!');
    > 286 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid key:', 'invalid@search!');
          |                               ^
      287 |       expect(result).toBe(query);
      288 |     });
      289 |

      at Object.<anonymous> (test/unit/query.spec.ts:286:31)

  ● Query class › validation error handling › should log error and return this when lessThan() receives invalid key

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid@key!"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      290 |     it('should log error and return this when lessThan() receives invalid key', () => {
      291 |       const result = query.lessThan('invalid@key!', 10);
    > 292 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid key:', 'invalid@key!');
          |                               ^
      293 |       expect(result).toBe(query);
      294 |     });
      295 |

      at Object.<anonymous> (test/unit/query.spec.ts:292:31)

  ● Query class › validation error handling › should log error and return this when lessThan() receives invalid value

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid value (expected string or number):", {}
    Received: "Invalid value. Provide a string or number and try again."

    Number of calls: 1

      296 |     it('should log error and return this when lessThan() receives invalid value', () => {
      297 |       const result = query.lessThan('validKey', {} as any);
    > 298 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid value (expected string or number):', {});
          |                               ^
      299 |       expect(result).toBe(query);
      300 |     });
      301 |

      at Object.<anonymous> (test/unit/query.spec.ts:298:31)

  ● Query class › validation error handling › should log error and return this when lessThanOrEqualTo() receives invalid key

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid@key!"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      302 |     it('should log error and return this when lessThanOrEqualTo() receives invalid key', () => {
      303 |       const result = query.lessThanOrEqualTo('invalid@key!', 10);
    > 304 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid key:', 'invalid@key!');
          |                               ^
      305 |       expect(result).toBe(query);
      306 |     });
      307 |

      at Object.<anonymous> (test/unit/query.spec.ts:304:31)

  ● Query class › validation error handling › should log error and return this when lessThanOrEqualTo() receives invalid value

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid value (expected string or number):", []
    Received: "Invalid value. Provide a string or number and try again."

    Number of calls: 1

      308 |     it('should log error and return this when lessThanOrEqualTo() receives invalid value', () => {
      309 |       const result = query.lessThanOrEqualTo('validKey', [] as any);
    > 310 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid value (expected string or number):', []);
          |                               ^
      311 |       expect(result).toBe(query);
      312 |     });
      313 |

      at Object.<anonymous> (test/unit/query.spec.ts:310:31)

  ● Query class › validation error handling › should log error and return this when greaterThan() receives invalid key

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid@key!"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      314 |     it('should log error and return this when greaterThan() receives invalid key', () => {
      315 |       const result = query.greaterThan('invalid@key!', 10);
    > 316 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid key:', 'invalid@key!');
          |                               ^
      317 |       expect(result).toBe(query);
      318 |     });
      319 |

      at Object.<anonymous> (test/unit/query.spec.ts:316:31)

  ● Query class › validation error handling › should log error and return this when greaterThan() receives invalid value

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid value (expected string or number):", null
    Received: "Invalid value. Provide a string or number and try again."

    Number of calls: 1

      320 |     it('should log error and return this when greaterThan() receives invalid value', () => {
      321 |       const result = query.greaterThan('validKey', null as any);
    > 322 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid value (expected string or number):', null);
          |                               ^
      323 |       expect(result).toBe(query);
      324 |     });
      325 |

      at Object.<anonymous> (test/unit/query.spec.ts:322:31)

  ● Query class › validation error handling › should log error and return this when greaterThanOrEqualTo() receives invalid key

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid key:", "invalid@key!"
    Received: "Invalid key. Provide an alphanumeric key and try again."

    Number of calls: 1

      326 |     it('should log error and return this when greaterThanOrEqualTo() receives invalid key', () => {
      327 |       const result = query.greaterThanOrEqualTo('invalid@key!', 10);
    > 328 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid key:', 'invalid@key!');
          |                               ^
      329 |       expect(result).toBe(query);
      330 |     });
      331 |

      at Object.<anonymous> (test/unit/query.spec.ts:328:31)

  ● Query class › validation error handling › should log error and return this when greaterThanOrEqualTo() receives invalid value

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Invalid value (expected string or number):", undefined
    Received: "Invalid value. Provide a string or number and try again."

    Number of calls: 1

      332 |     it('should log error and return this when greaterThanOrEqualTo() receives invalid value', () => {
      333 |       const result = query.greaterThanOrEqualTo('validKey', undefined as any);
    > 334 |       expect(consoleErrorSpy).toHaveBeenCalledWith('Invalid value (expected string or number):', undefined);
          |                               ^
      335 |       expect(result).toBe(query);
      336 |     });
      337 |

      at Object.<anonymous> (test/unit/query.spec.ts:334:31)


  ● Entries class › should log error when includeReference called with no arguments

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Argument should be a String or an Array."
    Received: "Invalid argument. Provide a string or an array and try again."

    Number of calls: 1

      47 |     const consoleErrorSpy = jest.spyOn(console, 'error').mockImplementation();
      48 |     entry.includeReference();
    > 49 |     expect(consoleErrorSpy).toHaveBeenCalledWith('Argument should be a String or an Array.');
         |                             ^
      50 |     consoleErrorSpy.mockRestore();
      51 |   });
      52 |

      at Object.<anonymous> (test/unit/entries.spec.ts:49:29)


  ● Entry class › should log error when includeReference called with no arguments

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Argument should be a String or an Array."
    Received: "Invalid argument. Provide a string or an array and try again."

    Number of calls: 1

      53 |     const consoleErrorSpy = jest.spyOn(console, 'error').mockImplementation();
      54 |     entry.includeReference();
    > 55 |     expect(consoleErrorSpy).toHaveBeenCalledWith('Argument should be a String or an Array.');
         |                             ^
      56 |     consoleErrorSpy.mockRestore();
      57 |   });
      58 |

      at Object.<anonymous> (test/unit/entry.spec.ts:55:29)

Annotations

Check failure on line 645 in test/unit/content-validation-comprehensive.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Content Validation - Comprehensive Test Suite > Query Validation > should validate field UID in query operations

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid fieldUid:", "invalid field"
Received: "Invalid fieldUid. Provide an alphanumeric field UID and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/content-validation-comprehensive.spec.ts:663:26)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 701 in test/unit/content-validation-comprehensive.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Content Validation - Comprehensive Test Suite > Query Validation > should validate query value types

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid value (expected string or number):", []
Received
       1: "Invalid fieldUid. Provide an alphanumeric field UID and try again."
       2: "Invalid value. Provide a string or number and try again."
       3: "Invalid value. Provide a string or number and try again."

Number of calls: 4
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/content-validation-comprehensive.spec.ts:716:26)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 165 in test/unit/query-optimization-comprehensive.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query Optimization - Comprehensive Test Suite > Parameter Validation > should validate field UIDs for alphanumeric characters

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid fieldUid:", "invalid field"
Received
       1: "Invalid fieldUid. Provide an alphanumeric field UID and try again."
       2: "Invalid fieldUid. Provide an alphanumeric field UID and try again."
       3: "Invalid fieldUid. Provide an alphanumeric field UID and try again."

Number of calls: 3
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query-optimization-comprehensive.spec.ts:180:26)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 198 in test/unit/query-optimization-comprehensive.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query Optimization - Comprehensive Test Suite > Parameter Validation > should validate containedIn values for proper types

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid value:", [{}, null, undefined]
Received
       1: "Invalid value. Provide an array of strings, numbers, or booleans and try again."
       2: "Invalid value. Provide an array of strings, numbers, or booleans and try again."

Number of calls: 2
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query-optimization-comprehensive.spec.ts:210:26)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 227 in test/unit/query-optimization-comprehensive.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query Optimization - Comprehensive Test Suite > Parameter Validation > should validate value types for comparison operations

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid value (expected string or number):", {}
Received
       1: "Invalid value. Provide a string or number and try again."
       2: "Invalid value. Provide a string or number and try again."
       3: "Invalid value. Provide a string or number and try again."

Number of calls: 4
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query-optimization-comprehensive.spec.ts:242:26)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 248 in test/unit/query-optimization-comprehensive.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query Optimization - Comprehensive Test Suite > Parameter Validation > should validate search key for typeahead

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid key:", "invalid search"
Received: "Invalid key. Provide an alphanumeric key and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query-optimization-comprehensive.spec.ts:257:26)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 184 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when where() receives invalid fieldUid

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid fieldUid:", "invalid@field!"
Received: "Invalid fieldUid. Provide an alphanumeric field UID and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:186:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 191 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when regex() receives invalid fieldUid

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid fieldUid:", "invalid@field!"
Received: "Invalid fieldUid. Provide an alphanumeric field UID and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:193:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 197 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when containedIn() receives invalid key

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid key:", "invalid@key!"
Received: "Invalid key. Provide an alphanumeric key and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:199:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 204 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when containedIn() receives invalid value

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid value:", ["value1", {"invalid": "object"}]
Received: "Invalid value. Provide an array of strings, numbers, or booleans and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:206:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 210 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when notContainedIn() receives invalid key

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid key:", "invalid@key!"
Received: "Invalid key. Provide an alphanumeric key and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:212:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 216 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when notContainedIn() receives invalid value

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid value:", [null]
Received: "Invalid value. Provide an array of strings, numbers, or booleans and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:218:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 222 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when exists() receives invalid key

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid key:", "invalid@key!"
Received: "Invalid key. Provide an alphanumeric key and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:224:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 228 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when notExists() receives invalid key

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid key:", "invalid@key!"
Received: "Invalid key. Provide an alphanumeric key and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:230:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 234 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when equalTo() receives invalid key

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid key:", "invalid@key!"
Received: "Invalid key. Provide an alphanumeric key and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:236:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 240 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when equalTo() receives invalid value (null)

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid value (expected string or number):", null
Received: "Invalid value. Provide a string or number and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:242:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 246 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when equalTo() receives invalid value (undefined)

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid value (expected string or number):", undefined
Received: "Invalid value. Provide a string or number and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:248:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 252 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when notEqualTo() receives invalid key

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid key:", "invalid@key!"
Received: "Invalid key. Provide an alphanumeric key and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:254:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 258 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when notEqualTo() receives invalid value

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid value (expected string or number):", {}
Received: "Invalid value. Provide a string or number and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:260:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 264 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when referenceIn() receives invalid key

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid key:", "invalid@key!"
Received: "Invalid key. Provide an alphanumeric key and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:267:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 271 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when referenceNotIn() receives invalid key

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid key:", "invalid@key!"
Received: "Invalid key. Provide an alphanumeric key and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:274:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 278 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when tags() receives invalid value

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid value:", [{"invalid": "object"}]
Received: "Invalid value. Provide an array of strings, numbers, or booleans and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:280:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 284 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when search() receives invalid key

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid key:", "invalid@search!"
Received: "Invalid key. Provide an alphanumeric key and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:286:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 290 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when lessThan() receives invalid key

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid key:", "invalid@key!"
Received: "Invalid key. Provide an alphanumeric key and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:292:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 296 in test/unit/query.spec.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Query class > validation error handling > should log error and return this when lessThan() receives invalid value

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "Invalid value (expected string or number):", {}
Received: "Invalid value. Provide a string or number and try again."

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/unit/query.spec.ts:298:31)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)