fix: Mock chalk in tasks. #12
Annotations
9 errors and 2 warnings
src/logger.test.ts#L32
AssertionError: expected "log" to be called with arguments: [ Array(1) ]
Received:
1st log call:
Array [
- "[TRACE] 2024-09-30T22:00:00.000Z Entering processOrder function with orderId=12345.",
+ "[TRACE] 2024-10-01T00:00:00.000Z Entering processOrder function with orderId=12345.",
]
Number of calls: 1
❯ src/logger.test.ts:32:17
|
src/logger.test.ts#L44
AssertionError: expected "log" to be called with arguments: [ Array(1) ]
Received:
1st log call:
Array [
- "[DEBUG] 2024-09-30T22:00:00.000Z Processing order with orderId=12345.",
+ "[DEBUG] 2024-10-01T00:00:00.000Z Processing order with orderId=12345.",
]
Number of calls: 1
❯ src/logger.test.ts:44:17
|
src/logger.test.ts#L56
AssertionError: expected "log" to be called with arguments: [ Array(1) ]
Received:
1st log call:
Array [
- "[INFO] 2024-09-30T22:00:00.000Z Order processed successfully.",
+ "[INFO] 2024-10-01T00:00:00.000Z Order processed successfully.",
]
Number of calls: 1
❯ src/logger.test.ts:56:17
|
src/logger.test.ts#L68
AssertionError: expected "log" to be called with arguments: [ Array(1) ]
Received:
1st log call:
Array [
- "[WARN] 2024-09-30T22:00:00.000Z Order with orderId=12345 is missing a delivery address.",
+ "[WARN] 2024-10-01T00:00:00.000Z Order with orderId=12345 is missing a delivery address.",
]
Number of calls: 1
❯ src/logger.test.ts:68:17
|
src/logger.test.ts#L80
AssertionError: expected "log" to be called with arguments: [ Array(1) ]
Received:
1st log call:
Array [
- "[ERROR] 2024-09-30T22:00:00.000Z Failed to process order with orderId=12345.",
+ "[ERROR] 2024-10-01T00:00:00.000Z Failed to process order with orderId=12345.",
]
Number of calls: 1
❯ src/logger.test.ts:80:17
|
src/logger.test.ts#L92
AssertionError: expected "log" to be called with arguments: [ Array(1) ]
Received:
1st log call:
Array [
- "[FATAL] 2024-09-30T22:00:00.000Z Failed to start the application.",
+ "[FATAL] 2024-10-01T00:00:00.000Z Failed to start the application.",
]
Number of calls: 1
❯ src/logger.test.ts:92:17
|
src/logger.test.ts#L114
AssertionError: expected "log" to be called with arguments: [ …(2) ]
Received:
1st log call:
Array [
- "[INFO] 2024-09-30T22:00:00.000Z Order processed successfully.",
+ "[INFO] 2024-10-01T00:00:00.000Z Order processed successfully.",
"orderId=12345",
]
Number of calls: 1
❯ src/logger.test.ts:114:17
|
src/logger.test.ts#L124
AssertionError: expected "log" to be called with arguments: [ …(3) ]
Received:
1st log call:
Array [
- "[INFO] 2024-09-30T22:00:00.000Z ",
+ "[INFO] 2024-10-01T00:00:00.000Z ",
Object {
"orderId": 12345,
},
"Order processed successfully.",
]
Number of calls: 1
❯ src/logger.test.ts:124:17
|
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
This job failed
Loading