From 38975679c3c1144f76d74e7429671d93a87a9999 Mon Sep 17 00:00:00 2001 From: Pavlo <5280742+kurpav@users.noreply.github.com> Date: Thu, 9 Nov 2023 19:40:12 +0200 Subject: [PATCH] refactor(SUP-87): dependencies cleanup part 2 (#7) * refactor: remove uuid lib * refactor: move tests folder out of src * refactor: update jest types --- jest.config.js | 2 +- package.json | 8 +- {src/test => test}/core.int.test.ts | 23 ++-- {src/test => test}/db.json | 0 {src/test => test}/endToEnd.int.test.ts | 9 +- {src/test => test}/initial-db.js | 0 {src/test => test}/json-server-config.ts | 0 tsconfig.json | 114 +++----------------- yarn.lock | 128 +++++++++++++++++++++-- 9 files changed, 145 insertions(+), 139 deletions(-) rename {src/test => test}/core.int.test.ts (97%) rename {src/test => test}/db.json (100%) rename {src/test => test}/endToEnd.int.test.ts (79%) rename {src/test => test}/initial-db.js (100%) rename {src/test => test}/json-server-config.ts (100%) diff --git a/jest.config.js b/jest.config.js index 7c4e04b..fe8a5d8 100644 --- a/jest.config.js +++ b/jest.config.js @@ -4,7 +4,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', clearMocks: true, - roots: ['/src'], + roots: ['/test'], transform: { '^.+\\.(ts|tsx)$': 'ts-jest', '^.+\\.(js)$': 'babel-jest' diff --git a/package.json b/package.json index 1c60844..0bce2cb 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "types": "build/src/index.d.ts", "version": "1.1.41", "scripts": { - "test": "yarn run clean && tsc && NODE_ENV=test jest --setupFiles dotenv/config", + "test": "NODE_ENV=test jest --setupFiles dotenv/config", "clean": "rm -rf build/ && rm -rf supergood-*.log", "build": "yarn run clean && tsc" }, @@ -26,13 +26,12 @@ "signal-exit": "^3.0.7" }, "devDependencies": { - "@jest/globals": "^29.4.1", + "@types/jest": "^29.5.8", "@types/json-server": "^0.14.4", "@types/lodash.get": "^4.4.7", "@types/lodash.set": "^4.3.7", "@types/signal-exit": "^3.0.1", "@types/superagent": "^4.1.16", - "@types/uuid": "^9.0.1", "@typescript-eslint/eslint-plugin": "^5.49.0", "@typescript-eslint/parser": "^5.49.0", "axios": "^1.4.0", @@ -49,8 +48,7 @@ "superagent": "^8.0.9", "ts-jest": "^29.0.5", "typescript": "^4.9.4", - "undici": "^5.23.0", - "uuid": "^9.0.0" + "undici": "^5.23.0" }, "bugs": { "url": "https://github.com/supergoodsystems/supergood-js/issues" diff --git a/src/test/core.int.test.ts b/test/core.int.test.ts similarity index 97% rename from src/test/core.int.test.ts rename to test/core.int.test.ts index 3ed6bec..0c621a3 100644 --- a/src/test/core.int.test.ts +++ b/test/core.int.test.ts @@ -1,20 +1,9 @@ -import Supergood from '..'; -import { postEvents, postError } from '../api'; +import Supergood from '../src'; +import { postEvents, postError } from '../src/api'; import { initialize } from './json-server-config'; -import { errors } from '../constants'; -import { - afterAll, - expect, - test, - jest, - describe, - beforeAll, - beforeEach, - xtest, - xdescribe -} from '@jest/globals'; +import { errors } from '../src/constants'; import { request } from 'undici'; -import { ErrorPayloadType, EventRequestType } from '../types'; +import { ErrorPayloadType, EventRequestType } from '../src/types'; import initialDB from './initial-db'; import http from 'http'; import fs from 'fs'; @@ -25,7 +14,7 @@ import get from 'lodash.get'; import superagent from 'superagent'; import axios from 'axios'; import fetch from 'node-fetch'; -import { sleep } from '../utils'; +import { sleep } from '../src/utils'; const base64Regex = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/; @@ -84,7 +73,7 @@ const getErrors = (mockedPostError: jest.Mock): ErrorPayloadType => { )[1] as ErrorPayloadType; }; -jest.mock('../api', () => ({ +jest.mock('../src/api', () => ({ postEvents: jest.fn(async (eventSinkUrl, data) => ({ data })), postError: jest.fn(async (errorSinkUrl, payload) => ({ payload diff --git a/src/test/db.json b/test/db.json similarity index 100% rename from src/test/db.json rename to test/db.json diff --git a/src/test/endToEnd.int.test.ts b/test/endToEnd.int.test.ts similarity index 79% rename from src/test/endToEnd.int.test.ts rename to test/endToEnd.int.test.ts index 1299369..131024c 100644 --- a/src/test/endToEnd.int.test.ts +++ b/test/endToEnd.int.test.ts @@ -1,11 +1,10 @@ -import Supergood from '..'; -import { xtest, describe, expect } from '@jest/globals'; +import Supergood from '../src'; import postgres from 'postgres'; import axios from 'axios'; -import { v4 as uuid } from 'uuid'; +import crypto from 'node:crypto'; describe('end-to-end tests', () => { - xtest('log to the staging database after a simple get request', async () => { + test('log to the staging database after a simple get request', async () => { await Supergood.init( { clientId: process.env.SUPERGOOD_CLIENT_ID as string, @@ -13,7 +12,7 @@ describe('end-to-end tests', () => { }, process.env.SUPERGOOD_BASE_URL ); - const queryId = `?id=${uuid()}`; + const queryId = `?id=${crypto.randomUUID()}`; const organizationId = process.env.SUPERGOOD_ORGANIZATION_ID as string; await axios.get(`https://supergood-testbed.herokuapp.com/200${queryId}`); await Supergood.close(); diff --git a/src/test/initial-db.js b/test/initial-db.js similarity index 100% rename from src/test/initial-db.js rename to test/initial-db.js diff --git a/src/test/json-server-config.ts b/test/json-server-config.ts similarity index 100% rename from src/test/json-server-config.ts rename to test/json-server-config.ts diff --git a/tsconfig.json b/tsconfig.json index 3edc87b..0265615 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,106 +1,20 @@ { "compilerOptions": { + "baseUrl": ".", "outDir": "./build", "allowJs": true, - /* Visit https://aka.ms/tsconfig to read more about this file */ - - /* Projects */ - // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ - // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ - // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ - // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ - // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ - // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ - - /* Language and Environment */ - "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ - // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ - // "jsx": "preserve", /* Specify what JSX code is generated. */ - // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */ - // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ - // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ - // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ - // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ - // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ - // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ - // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ - // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ - - /* Modules */ - "module": "commonjs", /* Specify what module code is generated. */ - // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ - // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ - // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ - // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ - // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ - // "types": [], /* Specify type package names to be included without being referenced in a source file. */ - // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ - // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ - "resolveJsonModule": true, /* Enable importing .json files. */ - // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ - - /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ - // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ - // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ - - /* Emit */ - "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ - // "declarationMap": true, /* Create sourcemaps for d.ts files. */ - // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ - // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ - // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ - // "outDir": "./", /* Specify an output folder for all emitted files. */ - // "removeComments": true, /* Disable emitting comments. */ - // "noEmit": true, /* Disable emitting files from a compilation. */ - // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ - // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */ - // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ - // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ - // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ - // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ - // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ - // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ - // "newLine": "crlf", /* Set the newline character for emitting files. */ - // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ - // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ - // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ - // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ - // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ - // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ - - /* Interop Constraints */ - // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ - // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ - "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ - // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ - "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ - - /* Type Checking */ - "strict": true, /* Enable all strict type-checking options. */ - // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ - // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ - // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ - // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ - // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ - // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ - // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ - // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ - // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ - // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ - // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ - // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ - // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ - // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ - // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ - // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ - // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ - // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ - - /* Completeness */ - // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ + "removeComments": true, + "target": "es2016", + "module": "commonjs", + "resolveJsonModule": true, + "declaration": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "skipLibCheck": true, + "moduleResolution": "node", + "sourceMap": true, + "allowSyntheticDefaultImports": true }, - "include": ["./src/**/*", "src/test/**/*", "package.json"], + "include": ["./src"] } diff --git a/yarn.lock b/yarn.lock index df20879..20d23ea 100644 --- a/yarn.lock +++ b/yarn.lock @@ -410,6 +410,13 @@ dependencies: jest-get-type "^29.2.0" +"@jest/expect-utils@^29.7.0": + version "29.7.0" + resolved "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz#023efe5d26a8a70f21677d0a1afc0f0a44e3a1c6" + integrity sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA== + dependencies: + jest-get-type "^29.6.3" + "@jest/expect@^29.2.1", "@jest/expect@^29.4.1": version "29.4.1" resolved "https://registry.npmjs.org/@jest/expect/-/expect-29.4.1.tgz" @@ -430,7 +437,7 @@ jest-mock "^29.4.1" jest-util "^29.4.1" -"@jest/globals@^29.2.1", "@jest/globals@^29.4.1": +"@jest/globals@^29.2.1": version "29.4.1" resolved "https://registry.npmjs.org/@jest/globals/-/globals-29.4.1.tgz" integrity sha512-znoK2EuFytbHH0ZSf2mQK2K1xtIgmaw4Da21R2C/NE/+NnItm5mPEFQmn8gmF3f0rfOlmZ3Y3bIf7bFj7DHxAA== @@ -477,6 +484,13 @@ dependencies: "@sinclair/typebox" "^0.25.16" +"@jest/schemas@^29.6.3": + version "29.6.3" + resolved "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03" + integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA== + dependencies: + "@sinclair/typebox" "^0.27.8" + "@jest/source-map@^29.2.0": version "29.2.0" resolved "https://registry.npmjs.org/@jest/source-map/-/source-map-29.2.0.tgz" @@ -539,6 +553,18 @@ "@types/yargs" "^17.0.8" chalk "^4.0.0" +"@jest/types@^29.6.3": + version "29.6.3" + resolved "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz#1131f8cf634e7e84c5e77bab12f052af585fba59" + integrity sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw== + dependencies: + "@jest/schemas" "^29.6.3" + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^17.0.8" + chalk "^4.0.0" + "@jridgewell/gen-mapping@^0.1.0": version "0.1.1" resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz" @@ -624,6 +650,11 @@ resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.21.tgz" integrity sha512-gFukHN4t8K4+wVC+ECqeqwzBDeFeTzBXroBTqE6vcWrQGbEUpHO7LYdG0f4xnvYq4VOEwITSlHlp0JBAIFMS/g== +"@sinclair/typebox@^0.27.8": + version "0.27.8" + resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" + integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== + "@sindresorhus/is@^0.14.0": version "0.14.0" resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz" @@ -755,6 +786,14 @@ dependencies: "@types/istanbul-lib-report" "*" +"@types/jest@^29.5.8": + version "29.5.8" + resolved "https://registry.npmjs.org/@types/jest/-/jest-29.5.8.tgz#ed5c256fe2bc7c38b1915ee5ef1ff24a3427e120" + integrity sha512-fXEFTxMV2Co8ZF5aYFJv+YeA08RTYJfhtN5c9JSv/mFEMe+xxjufCb+PHL+bJcMs/ebPUsBu+UNTEz+ydXrR6g== + dependencies: + expect "^29.0.0" + pretty-format "^29.0.0" + "@types/json-schema@^7.0.9": version "7.0.11" resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz" @@ -869,11 +908,6 @@ "@types/cookiejar" "*" "@types/node" "*" -"@types/uuid@^9.0.1": - version "9.0.1" - resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.1.tgz#98586dc36aee8dacc98cc396dbca8d0429647aa6" - integrity sha512-rFT3ak0/2trgvp4yYZo5iKFEPsET7vKydKF+VRCxlQ9bpheehyAJH89dAkaLEq/j/RZXJIqcgsmPJKUP1Z28HA== - "@types/yargs-parser@*": version "21.0.0" resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz" @@ -1630,6 +1664,11 @@ diff-sequences@^29.3.1: resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.3.1.tgz" integrity sha512-hlM3QR272NXCi4pq+N4Kok4kOp6EsgOM3ZSpJI7Da3UAs+Ttsi8MRmB6trM/lhyzUxGfOgnpkHtgqm5Q/CTcfQ== +diff-sequences@^29.6.3: + version "29.6.3" + resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921" + integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q== + digest-fetch@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/digest-fetch/-/digest-fetch-1.3.0.tgz#898e69264d00012a23cf26e8a3e40320143fc661" @@ -1921,6 +1960,17 @@ exit@^0.1.2: resolved "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz" integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== +expect@^29.0.0: + version "29.7.0" + resolved "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz#578874590dcb3214514084c08115d8aee61e11bc" + integrity sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw== + dependencies: + "@jest/expect-utils" "^29.7.0" + jest-get-type "^29.6.3" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-util "^29.7.0" + expect@^29.4.1: version "29.4.1" resolved "https://registry.npmjs.org/expect/-/expect-29.4.1.tgz" @@ -2697,6 +2747,16 @@ jest-diff@^29.4.1: jest-get-type "^29.2.0" pretty-format "^29.4.1" +jest-diff@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz#017934a66ebb7ecf6f205e84699be10afd70458a" + integrity sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw== + dependencies: + chalk "^4.0.0" + diff-sequences "^29.6.3" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" + jest-docblock@^29.2.0: version "29.2.0" resolved "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.2.0.tgz" @@ -2732,6 +2792,11 @@ jest-get-type@^29.2.0: resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.2.0.tgz" integrity sha512-uXNJlg8hKFEnDgFsrCjznB+sTxdkuqiCL6zMgA75qEbAJjJYTs9XPrvDctrEig2GDow22T/LvHgO57iJhXB/UA== +jest-get-type@^29.6.3: + version "29.6.3" + resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz#36f499fdcea197c1045a127319c0481723908fd1" + integrity sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw== + jest-haste-map@^29.2.1, jest-haste-map@^29.4.1: version "29.4.1" resolved "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.4.1.tgz" @@ -2769,6 +2834,16 @@ jest-matcher-utils@^29.2.1, jest-matcher-utils@^29.4.1: jest-get-type "^29.2.0" pretty-format "^29.4.1" +jest-matcher-utils@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz#ae8fec79ff249fd592ce80e3ee474e83a6c44f12" + integrity sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g== + dependencies: + chalk "^4.0.0" + jest-diff "^29.7.0" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" + jest-message-util@^29.2.1, jest-message-util@^29.4.1: version "29.4.1" resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.4.1.tgz" @@ -2784,6 +2859,21 @@ jest-message-util@^29.2.1, jest-message-util@^29.4.1: slash "^3.0.0" stack-utils "^2.0.3" +jest-message-util@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz#8bc392e204e95dfe7564abbe72a404e28e51f7f3" + integrity sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w== + dependencies: + "@babel/code-frame" "^7.12.13" + "@jest/types" "^29.6.3" + "@types/stack-utils" "^2.0.0" + chalk "^4.0.0" + graceful-fs "^4.2.9" + micromatch "^4.0.4" + pretty-format "^29.7.0" + slash "^3.0.0" + stack-utils "^2.0.3" + jest-mock@^29.2.1, jest-mock@^29.4.1: version "29.4.1" resolved "https://registry.npmjs.org/jest-mock/-/jest-mock-29.4.1.tgz" @@ -2923,6 +3013,18 @@ jest-util@^29.0.0, jest-util@^29.2.1, jest-util@^29.4.1: graceful-fs "^4.2.9" picomatch "^2.2.3" +jest-util@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz#23c2b62bfb22be82b44de98055802ff3710fc0bc" + integrity sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA== + dependencies: + "@jest/types" "^29.6.3" + "@types/node" "*" + chalk "^4.0.0" + ci-info "^3.2.0" + graceful-fs "^4.2.9" + picomatch "^2.2.3" + jest-validate@^29.2.1: version "29.2.1" resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-29.2.1.tgz" @@ -3625,6 +3727,15 @@ prettier@^2.8.1: resolved "https://registry.npmjs.org/prettier/-/prettier-2.8.3.tgz" integrity sha512-tJ/oJ4amDihPoufT5sM0Z1SKEuKay8LfVAMlbbhnnkvt6BUserZylqo2PN+p9KeljLr0OHa2rXHU1T8reeoTrw== +pretty-format@^29.0.0, pretty-format@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812" + integrity sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ== + dependencies: + "@jest/schemas" "^29.6.3" + ansi-styles "^5.0.0" + react-is "^18.0.0" + pretty-format@^29.2.1, pretty-format@^29.4.1: version "29.4.1" resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-29.4.1.tgz" @@ -4238,11 +4349,6 @@ utils-merge@1.0.1: resolved "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz" integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== -uuid@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.0.tgz#592f550650024a38ceb0c562f2f6aa435761efb5" - integrity sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg== - v8-to-istanbul@^9.0.1: version "9.0.1" resolved "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz"