util/logging.ts: Add support for logging #674
396 passed, 6 failed and 1 skipped
βΒ reports/jest-junit.xml
403 tests were completed in 17s with 396 passed, 6 failed and 1 skipped.
β Β tests/functional/client-configuration.test.ts
ClientConfiguration
β
Client exposes a default client configuration
β
can be initialized with an endpoint from the environment
β
Client respects passed in client configuration over defaults
β
A ClientConfiguration setting with no secret throws an error on driver construction
β
endpoints is extensible
β
client allows txn time to be set
β
defaults performance_hints to not setting the x-performance-hints header
β
Setting clientConfiguration linearized leads to it being sent in headers
β
Setting clientConfiguration max_contention_retries leads to it being sent in headers
β
Setting clientConfiguration query_tags leads to it being sent in headers
β
Setting clientConfiguration traceparent leads to it being sent in headers
β
Setting clientConfiguration typecheck leads to it being sent in headers
β
Setting clientConfiguration performance_hints leads to it being sent in headers
β
can accept endpoints with or without a trailing slash.
β
throws if client_timeout_buffer_ms provided is undefined
β
throws if endpoint provided is undefined
β
throws if format provided is undefined
β
throws if http2_session_idle_ms provided is undefined
β
throws if query_timeout_ms provided is undefined
β
throws if http2_max_streams provided is undefined
β
throws if fetch_keepalive provided is undefined
β
throws if long_type provided is undefined
β
throws a RangeError if 'client_timeout_buffer_ms' is less than or equal to zero
β
throws a RangeError if 'query_timeout_ms' is less than or equal to zero
β
throws a RangeError if 'http2_max_streams' is less than or equal to zero
β Β tests/functional/feed-client-configuration.test.ts
FeedClientConfiguration
β
can be instantiated directly with a token
β
can be instantiated directly with a lambda
β
throws a RangeError if 'max_backoff' is less than or equal to zero
β
throws a TypeError if long_type provided is undefined
β
throws a TypeError if httpClient provided is undefined
β
throws a TypeError if max_backoff provided is undefined
β
throws a TypeError if max_attempts provided is undefined
β
throws a TypeError if client_timeout_buffer_ms provided is undefined
β
throws a TypeError if query_timeout_ms provided is undefined
β
throws a TypeError if secret provided is undefined
β
throws a RangeError if 'max_attempts' is less than or equal to zero
β
throws a TypeError is start_ts and cursor are both provided
β
throws a RangeError if 'query_timeout_ms' is less than or equal to zero
β
throws a RangeError if 'client_timeout_buffer_ms' is less than or equal to zero
β
throws a TypeError if 'cursor' is not a string
β Β tests/functional/feed-client.test.ts
FeedClient
β
returns a valid page of events
β
uses a valid HTTPRequest
β
uses page_size when set
β
uses cursor when set
β
uses start_ts when set
β
retries throttling errors
β
throws an error for an error response
β Β tests/functional/stream-client-configuration.test.ts
StreamClientConfiguration
β
can be instantiated directly with a token
β
can be instantiated directly with a lambda
β
throws a TypeError if long_type provided is undefined
β
throws a TypeError if httpStreamClient provided is undefined
β
throws a TypeError if max_backoff provided is undefined
β
throws a TypeError if max_attempts provided is undefined
β
throws a TypeError if secret provided is undefined
β
throws a RangeError if 'max_backoff' is less than or equal to zero
β
throws a RangeError if 'max_attempts' is less than or equal to zero
β Β tests/integration/client-last-txn-tracking.test.ts
last_txn_ts tracking in client
β
Tracks the last_txn_ts datetime and send in the headers
β
Accepts an override of the last_txn_ts datetime and sends in the headers
β
Ignores overrides of the lastTxnTs that are less than the current value or undefined
β Β tests/integration/doc.test.ts
querying for doc types
β
can round-trip Module
β
can round-trip DocumentReference to a non-existent doc
β
can round-trip DocumentReference to an existent doc
β
can round-trip Document
β
can round-trip NamedDocumentReference
β
can round-trip NamedDocument
β
get doc types from FQL
β
can set and read ttl
β Β tests/integration/existing-collection.test.ts
querying for existing data
β
Can query an existing index
β Β tests/integration/feed.test.ts
Client
β
should throw a ClientError if not using a stream token
β
should return a iterable feed from a stream token
β
should return an iterable feed with a lambda
β
should pass configuration to the feed client
β
can resume from a cursor using a query
FeedClient
β
can be instantiated directly with a token and client configuration
β
can pass an existing cursor
β
throws an error on an error event within a page of events
β
can return a flattened array of events
β
throws a QueryTimeoutError if the query times out
β
throws a NetworkError if the client times out
β Β tests/integration/query-limits.test.ts
Query with limits enabled
βͺ succeeds on retry after getting throttled
β Β tests/integration/query-typings.test.ts
query typings
β
allows customers to use their own types in queries
β
allows customers to use their own interfaces in queries
β
allows customers to infer their own types in queries from fql statements
β
allows customers to use subtyped queries
paginate typings
β
allows customers to use their own types in queries
β
allows customers to use their own interfaces in queries
β
allows customers to infer their own types in queries from fql statements
β
allows customers to use subtyped queries
β Β tests/integration/query.test.ts
query
β
Can query an FQL v10 endpoint
β
Can query with arguments
β
Can query with tags
β
respects QueryRequest field format over ClientConfiguration format
β
respects QueryRequest field linearized over ClientConfiguration linearized
β
respects QueryRequest field query_timeout_ms over ClientConfiguration query_timeout_ms
β
respects QueryRequest field max_contention_retries over ClientConfiguration max_contention_retries
β
respects QueryRequest field query_tags over ClientConfiguration query_tags
β
respects QueryRequest field traceparent over ClientConfiguration traceparent
β
respects QueryRequest field typecheck over ClientConfiguration typecheck
β
respects typechecked: undefined
β
can send arguments directly
β
throws a QueryCheckError if the query is invalid
β
throws a QueryRuntimeError if the query hits a runtime error
β
Includes constraint failures when present
β
throws an InvalidRequestError when request is invalid
β
throws a AbortError is the `abort` function is called
β
throws a QueryTimeoutError if the query times out
β
throws a AuthenticationError creds are invalid
β
throws a AuthorizationError if creds are not permissioned.
β
throws a NetworkError if the connection fails.
β
throws a NetworkError on client timeout
β
throws a ClientError if the client fails unexpectedly
β
throws a ProtocolError if the http fails outside Fauna
β
session is closed regardless of number of clients
β
can be called after session idle timeout
query can encode / decode QueryValue correctly
β
treats undefined as unprovided when in object
β
undefined arguments throw a TypeError
β
symbol arguments throw a TypeError
β
function arguments throw a TypeError
β
symbol arguments throw a TypeError in arguments
β
function arguments throw a TypeError in arguments
β Β tests/integration/schema-version.test.ts
schema version is returned by the client
β
returns the schema version
β Β tests/integration/set.test.ts
querying for set
β
can round-trip Page
SetIterator
β
can get single page using for..of when the set is small
β
can get multiple pages using for..of when the set is large
β
can get pages using next()
β
can get pages using a loop with next()
β
can can stop the iterator with the return method
β
can can stop the iterator with the throw method
β
can paginate a query that returns a set
β
can paginate a query that does NOT return a set
β
can be flattened
β
each page respects QueryOptions using an existing Page
β
each page respects QueryOptions using an a query
β Β tests/integration/stream.test.ts
Client
β
can initiate a stream from a Client
β
can initiate a stream from a Client, providing a query
β
can resume a stream from an event cursor
β
rejects cursor when not using a stream token
StreamClient
β
can initiate a stream
β
can initiate a stream with a lambda
β
can get events with async iterator
β
can get events with callbacks
β
catches InvalidRequestError when establishing a stream
β
handles InvalidRequestError via callback when establishing a stream
β
catches an AbortError if abort is called when processing an event
β
catches a QueryRuntimeError when processing an event
β
handles an AbortError via callback if abort is called when processing an event
β
handles a QueryRuntimeError via callback when processing an event
β
decodes values from streams correctly
β
yields all events when Fauna sends them as a single chunk
β Β tests/integration/template-format.test.ts
query using template format
β
succeeds with no arguments
β
succeeds with a string variable
β
succeeds with an Int variable
β
succeeds with a Long variable
β
succeeds with a Double variable
β
succeeds with a boolean variable
β
succeeds with a null variable
β
succeeds with an object variable
β
succeeds with an array variable
β
succeeds with multiple variables
β
succeeds with nested expressions
β
succeeds with deep nested expressions
β
succeeds with deep nested expressions - example 2
β
succeeds with expressions nested within objects
β
succeeds with expressions nested within arrays
β
succeeds with expressions nested within arrays and objects combined
β
succeeds with multiple layers of nesting of arrays and objects
β
succeeds with FQL string interpolation
β
succeeds with a Date arg
β
succeeds with an ArrayBuffer variable
β
succeeds with Uint8Array variables
β
fails with [Function Int8Array] variables
β
fails with [Function Uint8ClampedArray] variables
β
fails with [Function Int16Array] variables
β
fails with [Function Uint16Array] variables
β
fails with [Function Int32Array] variables
β
fails with [Function Uint32Array] variables
β
fails with [Function Float32Array] variables
β
fails with [Function Float64Array] variables
β
fails with [Function BigInt64Array] variables
β
fails with [Function BigUint64Array] variables
β
succeeds using Node Buffer to encode strings
β Β tests/unit/client.test.ts
Client
β
Allows setting a secret in query
β
Refuses further requests after close
β
Refuses calls to close after client is closed.
β
Allows for creation and usage of a new client after first client closed.
β Β tests/unit/datetime.test.ts
values
β
can construct TimeStub from strings: Z
β
can construct TimeStub from strings: - HH:MM
β
can construct TimeStub from strings: - HHMM
β
can construct TimeStub from strings: + HH:MM
β
can construct TimeStub from strings: + HHMM
β
can construct TimeStub from strings: +yyyyy
β
can construct TimeStub from strings: -yyyy
β
can construct DateStub from strings: some date
β
can construct DateStub from strings: leap year
β
can construct TimeStub from Date: Z
β
can construct TimeStub from Date: - HH:MM
β
can construct TimeStub from Date: + HH:MM
β
can construct TimeStub from Date: no timezone
β
can construct TimeStub from Date: no time
β
can construct DateStub from Date: Z
β
can construct DateStub from Date: - HH:MM
β
can construct DateStub from Date: + HH:MM
β
can construct DateStub from Date: no timezone
β
can construct DateStub from Date: no time
β
can deconstruct TimeStub into a Date: Z
β
can deconstruct TimeStub into a Date: - HH:MM
β
can deconstruct TimeStub into a Date: - HHMM
β
can deconstruct TimeStub into a Date: + HH:MM
β
can deconstruct TimeStub into a Date: + HHMM
β
can deconstruct TimeStub into a Date: +yyyyy
β
can deconstruct TimeStub into a Date: -yyyy
β
can deconstruct DateStub into a Date: some date
β
can deconstruct DateStub into a Date: leap year
β Β tests/unit/doc.test.ts
Module
β
can be constructed directly
DocumentReference
β
can be constructed directly
Document
β
can be constructed directly
β
can access ttl
β
can access user data
NamedDocumentReference
β
can be constructed directly
NamedDocument
β
can be constructed without data
β
can be constructed without data
NullDocument
β
can be constructed directly with a DocumentReference
β
can be constructed directly with a NamedDocumentReference
β Β tests/unit/error.test.ts
query
β
QueryFailures with status '400' and code 'invalid_query' are correctly mapped to [Function QueryCheckError]
β
QueryFailures with status '400' and code 'unbound_variable' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'index_out_of_bounds' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'type_mismatch' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_argument' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_bounds' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_regex' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_schema' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_document_id' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'document_id_exists' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'document_not_found' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'document_deleted' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_function_invocation' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_index_invocation' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'null_value' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_null_access' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_cursor' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'permission_denied' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_effect' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_write' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'internal_failure' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'divide_by_zero' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_id' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_secret' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_time' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_unit' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_date' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'limit_exceeded' are correctly mapped to [Function ThrottlingError]
β
QueryFailures with status '400' and code 'stack_overflow' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_computed_field_access' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'disabled_feature' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_receiver' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_timestamp_field_access' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '400' and code 'invalid_request' are correctly mapped to [Function InvalidRequestError]
β
QueryFailures with status '400' and code 'abort' are correctly mapped to [Function AbortError]
β
QueryFailures with status '400' and code 'constraint_failure' are correctly mapped to [Function ConstraintFailureError]
β
QueryFailures with status '401' and code 'unauthorized' are correctly mapped to [Function AuthenticationError]
β
QueryFailures with status '403' and code 'forbidden' are correctly mapped to [Function AuthorizationError]
β
QueryFailures with status '409' and code 'contended_transaction' are correctly mapped to [Function ContendedTransactionError]
β
QueryFailures with status '429' and code 'limit_exceeded' are correctly mapped to [Function ThrottlingError]
β
QueryFailures with status '440' and code 'time_out' are correctly mapped to [Function QueryTimeoutError]
β
QueryFailures with status '503' and code 'time_out' are correctly mapped to [Function QueryTimeoutError]
β
QueryFailures with status '500' and code 'internal_error' are correctly mapped to [Function ServiceInternalError]
β
QueryFailures with status '400' and code 'some unhandled code' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '401' and code 'some unhandled code' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '403' and code 'some unhandled code' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '409' and code 'some unhandled code' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '429' and code 'some unhandled code' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '440' and code 'some unhandled code' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '500' and code 'some unhandled code' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '503' and code 'some unhandled code' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status '999' and code 'some unhandled code' are correctly mapped to [Function QueryRuntimeError]
β
QueryFailures with status 'undefined' and code 'some unhandled code' are correctly mapped to [Function QueryRuntimeError]
β Β tests/unit/fetch-client.test.ts
fetch client
β
returns a valid query response on success
β
returns a valid query response on failure
β
returns a NetworkError if fetch rejects
β
returns a NetworkError if client timeout causes an abort
β
uses the default path if one is not provided in HttpRequest
β
uses the path provided in the HttpRequest if provided
βΒ tests/unit/logger.test.ts
logging βΊ parseDebugLevel
β
correctly parses '0' to log level '0'
β
correctly parses '1' to log level '1'
β
correctly parses '2' to log level '2'
β
correctly parses '3' to log level '3'
β
correctly parses '4' to log level '4'
β
correctly parses '5' to log level '5'
β
correctly parses '6' to log level '6'
β
correctly parses LOG_LEVELS.TRACE to log level '0'
β
correctly parses LOG_LEVELS.DEBUG to log level '1'
β
correctly parses LOG_LEVELS.INFO to log level '2'
β
correctly parses LOG_LEVELS.WARN to log level '3'
β
correctly parses LOG_LEVELS.ERROR to log level '4'
β
correctly parses LOG_LEVELS.FATAL to log level '5'
β
correctly parses LOG_LEVELS.OFF to log level '6'
β correctly parses empty to log level '6'
Error: expect(received).toBe(expected) // Object.is equality
β correctly parses null to log level '6'
Error: expect(received).toBe(expected) // Object.is equality
β correctly parses undefined to log level '6'
Error: expect(received).toBe(expected) // Object.is equality
β correctly parses unkown number string to log level '6'
Error: expect(received).toBe(expected) // Object.is equality
β correctly parses unknown string to log level '6'
Error: expect(received).toBe(expected) // Object.is equality
β correctly parses number to log level '6'
Error: expect(received).toBe(expected) // Object.is equality
β Β tests/unit/node-http2-client.test.ts
node http2 client
β
default client for Node.js is the NodeHTTP2Client
β
uses the default request path if none is provided
β
uses the path provided in HttpRequest if provided
β Β tests/unit/package-verison.test.ts
package version
β
is correct
β Β tests/unit/query-builder.test.ts
fql method producing Querys
β
parses with no variables
β
parses with a string variable
β
parses with a number variable
β
parses with a boolean variable
β
parses with a null variable
β
parses with an object variable
β
parses with an object variable having a toQuery property
β
parses with an array variable
β
parses with multiple variables
β
parses nested expressions
β
parses deep nested expressions
β
parses with FQL string interpolation
β Β tests/unit/query.test.ts
query
β
throws an [Function AuthorizationError] on a 403
β
throws an [Function QueryTimeoutError] on a 440
β
throws an [Function ServiceError] on a 999
β
throws an [Function ThrottlingError] on a 429
β
throws an [Function ServiceInternalError] on a 500
β
throws an [Function QueryTimeoutError] on a 503
β
Includes a summary when not present in error field but present at top-level
β
Includes a summary when not present in error field but present at top-level
β
Includes a summary when not present in error field but present at top-level
β
Includes a summary when not present in error field but present at top-level
β
Includes a summary when not present in error field but present at top-level
β
Includes a summary when not present in error field but present at top-level
β
retries throttling errors and then succeeds
β
Includes a summary in a QueryResult when present at top-level
β Β tests/unit/retryable.test.ts
retryable
β
should retry
β
should throw the last error if attempts are greater than or equal to maxAttempts
β
should not retry if shouldRetry returns false
β
should backoff
β Β tests/unit/set.test.ts
Page
β
can be constructed directly
β
after is optional
Embedded Set
β
can be constructed directly
SetIterator
β
can be constructed from a Page
β
can be constructed from an EmbeddedSet
β
can be constructed with an initial thunk for a T
β
can be constructed with an initial thunk for a Page<T>
β
can be constructed with an initial thunk for an EmbeddedSet
β
can be flattened
β
can flatten a Page
β
throws if data and after are both undefined
β Β tests/unit/tagged-format.test.ts
tagged format with long_type number
β
can be decoded
β
can be encoded
β
can be encoded as interpolation query
β
handles conflicts
β
handles conflicts in interpolation queries
β
handles nested conflict types
β
handles nested conflict types in interpolation queries
β
wraps user-provided `@` fields
β
Properly encodes and decodes number -(2**63)
β
Properly encodes and decodes number -(2**53)
β
Properly encodes and decodes number -(2**53 - 1)
β
Properly encodes and decodes number -(2**31) - 1
β
Properly encodes and decodes number -(2**31)
β
Properly encodes and decodes number 0 (Int)
β
Properly encodes and decodes number 1 (Int)
β
Properly encodes and decodes number 0 (Long)
β
Properly encodes and decodes number 2**31 - 1
β
Properly encodes and decodes number 2**31
β
Properly encodes and decodes number 2**53 - 1
β
Properly encodes and decodes number 2**53
β
Properly encodes and decodes number 2**64 - 1
β
Properly encodes and decodes number 1.3**63
β
Properly encodes and decodes number 1.3
β
Properly encodes and decodes number 0.000000008
β
Throws if BigInt value is lower than -(2**63) - 1
β
Throws if BigInt value is greater than 2**63
β
Throws if BigInt value is NEGATIVE_INFINITY
β
Throws if BigInt value is POSITIVE_INFINITY
tagged format with long_type bigint
β
can be decoded
β
can be encoded
β
can be encoded as interpolation query
β
handles conflicts
β
handles conflicts in interpolation queries
β
handles nested conflict types
β
handles nested conflict types in interpolation queries
β
wraps user-provided `@` fields
β
Properly encodes and decodes number -(2**63)
β
Properly encodes and decodes number -(2**53)
β
Properly encodes and decodes number -(2**53 - 1)
β
Properly encodes and decodes number -(2**31) - 1
β
Properly encodes and decodes number -(2**31)
β
Properly encodes and decodes number 0 (Int)
β
Properly encodes and decodes number 1 (Int)
β
Properly encodes and decodes number 0 (Long)
β
Properly encodes and decodes number 2**31 - 1
β
Properly encodes and decodes number 2**31
β
Properly encodes and decodes number 2**53 - 1
β
Properly encodes and decodes number 2**53
β
Properly encodes and decodes number 2**64 - 1
β
Properly encodes and decodes number 1.3**63
β
Properly encodes and decodes number 1.3
β
Properly encodes and decodes number 0.000000008
β
Throws if BigInt value is lower than -(2**63) - 1
β
Throws if BigInt value is greater than 2**63
β
Throws if BigInt value is NEGATIVE_INFINITY
β
Throws if BigInt value is POSITIVE_INFINITY
Annotations
Check failure on line 0 in reports/jest-junit.xml
github-actions / Jest Tests 18
__tests__/unit/logger.test.ts βΊ logging βΊ parseDebugLevel βΊ correctly parses empty to log level '6'
Failed test found in:
reports/jest-junit.xml
Error:
Error: expect(received).toBe(expected) // Object.is equality
Raw output
Error: expect(received).toBe(expected) // Object.is equality
Expected: 6
Received: "6"
at /home/runner/work/fauna-js/fauna-js/__tests__/unit/logger.test.ts:30:40
at Object.<anonymous> (/home/runner/work/fauna-js/fauna-js/node_modules/jest-each/build/bind.js:81:13)
at Promise.then.completed (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/testWorker.js:106:12)
Check failure on line 0 in reports/jest-junit.xml
github-actions / Jest Tests 18
__tests__/unit/logger.test.ts βΊ logging βΊ parseDebugLevel βΊ correctly parses null to log level '6'
Failed test found in:
reports/jest-junit.xml
Error:
Error: expect(received).toBe(expected) // Object.is equality
Raw output
Error: expect(received).toBe(expected) // Object.is equality
Expected: 6
Received: "6"
at /home/runner/work/fauna-js/fauna-js/__tests__/unit/logger.test.ts:30:40
at Object.<anonymous> (/home/runner/work/fauna-js/fauna-js/node_modules/jest-each/build/bind.js:81:13)
at Promise.then.completed (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/testWorker.js:106:12)
Check failure on line 0 in reports/jest-junit.xml
github-actions / Jest Tests 18
__tests__/unit/logger.test.ts βΊ logging βΊ parseDebugLevel βΊ correctly parses undefined to log level '6'
Failed test found in:
reports/jest-junit.xml
Error:
Error: expect(received).toBe(expected) // Object.is equality
Raw output
Error: expect(received).toBe(expected) // Object.is equality
Expected: 6
Received: "6"
at /home/runner/work/fauna-js/fauna-js/__tests__/unit/logger.test.ts:30:40
at Object.<anonymous> (/home/runner/work/fauna-js/fauna-js/node_modules/jest-each/build/bind.js:81:13)
at Promise.then.completed (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/testWorker.js:106:12)
Check failure on line 0 in reports/jest-junit.xml
github-actions / Jest Tests 18
__tests__/unit/logger.test.ts βΊ logging βΊ parseDebugLevel βΊ correctly parses unkown number string to log level '6'
Failed test found in:
reports/jest-junit.xml
Error:
Error: expect(received).toBe(expected) // Object.is equality
Raw output
Error: expect(received).toBe(expected) // Object.is equality
Expected: 6
Received: "6"
at /home/runner/work/fauna-js/fauna-js/__tests__/unit/logger.test.ts:30:40
at Object.<anonymous> (/home/runner/work/fauna-js/fauna-js/node_modules/jest-each/build/bind.js:81:13)
at Promise.then.completed (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/testWorker.js:106:12)
Check failure on line 0 in reports/jest-junit.xml
github-actions / Jest Tests 18
__tests__/unit/logger.test.ts βΊ logging βΊ parseDebugLevel βΊ correctly parses unknown string to log level '6'
Failed test found in:
reports/jest-junit.xml
Error:
Error: expect(received).toBe(expected) // Object.is equality
Raw output
Error: expect(received).toBe(expected) // Object.is equality
Expected: 6
Received: "6"
at /home/runner/work/fauna-js/fauna-js/__tests__/unit/logger.test.ts:30:40
at Object.<anonymous> (/home/runner/work/fauna-js/fauna-js/node_modules/jest-each/build/bind.js:81:13)
at Promise.then.completed (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/testWorker.js:106:12)
Check failure on line 0 in reports/jest-junit.xml
github-actions / Jest Tests 18
__tests__/unit/logger.test.ts βΊ logging βΊ parseDebugLevel βΊ correctly parses number to log level '6'
Failed test found in:
reports/jest-junit.xml
Error:
Error: expect(received).toBe(expected) // Object.is equality
Raw output
Error: expect(received).toBe(expected) // Object.is equality
Expected: 6
Received: "6"
at /home/runner/work/fauna-js/fauna-js/__tests__/unit/logger.test.ts:30:40
at Object.<anonymous> (/home/runner/work/fauna-js/fauna-js/node_modules/jest-each/build/bind.js:81:13)
at Promise.then.completed (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/fauna-js/fauna-js/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/fauna-js/fauna-js/node_modules/jest-runner/build/testWorker.js:106:12)