chore: upgrade jest everywhere (#7703)

This commit is contained in:
Riqwan Thamir
2024-06-14 07:35:30 +02:00
committed by GitHub
parent f138339cbc
commit 3d33f06e77
67 changed files with 364 additions and 2942 deletions

View File

@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Reporter handles "Error" signature correctly 1`] = `
Object {
{
"level": "error",
"message": "Error",
"stack": Any<Array>,
@@ -9,14 +9,14 @@ Object {
`;
exports[`Reporter handles "String" signature correctly 1`] = `
Object {
{
"level": "error",
"message": "Test log",
}
`;
exports[`Reporter handles "String, Error" signature correctly 1`] = `
Object {
{
"level": "error",
"message": "Test log",
"stack": Any<Array>,

View File

@@ -1,4 +1,4 @@
import logger, { Reporter } from "../"
import { Reporter } from "../"
describe(`Reporter`, () => {
const winstonMock = {
@@ -10,10 +10,10 @@ describe(`Reporter`, () => {
activityLogger: {},
})
const getErrorMessages = fn =>
const getErrorMessages = (fn) =>
fn.mock.calls
.map(([firstArg]) => firstArg)
.filter(structuredMessage => structuredMessage.level === `error`)
.filter((structuredMessage) => structuredMessage.level === `error`)
beforeEach(() => {
winstonMock.log.mockClear()