diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 93630a6b8..1303507f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,9 @@ jobs: - name: Build libraries and distributions run: pnpm build + - name: Types + run: pnpm types:check + format: needs: [build] runs-on: ubuntu-latest @@ -46,16 +49,6 @@ jobs: - name: Lint run: pnpm lint - types: - needs: [build] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: ./.github/actions/setup - - - name: Types Check - run: pnpm types:check - test: needs: [build] runs-on: ubuntu-latest diff --git a/package-scripts.js b/package-scripts.js index ee351dec8..7368390a9 100644 --- a/package-scripts.js +++ b/package-scripts.js @@ -12,9 +12,6 @@ * `package.json:scripts`. */ -const path = require("path"); -const PKG_SRC = path.resolve("src"); - // For publishing, use the core package's version. const coreVersion = require("./packages/victory-core/package.json").version; if (!coreVersion) { @@ -60,17 +57,6 @@ module.exports = { "lint:pkg": 'nps "lint:base src"', "lint:pkg:fix": 'nps "lint:base --fix src"', - // Tests - // - Jest - // TODO(2375): Can we cache / incremental? - // https://github.com/FormidableLabs/victory/issues/2375 - "jest:native": `cross-env BABEL_ENV=commonjs jest --config=../../test/jest-native-config.js --passWithNoTests --testPathPattern=${PKG_SRC}`, - "jest:pkg": `cross-env BABEL_ENV=commonjs jest --config=../../test/jest-config.js --passWithNoTests --testPathPattern=${PKG_SRC}`, - // TODO(2348): Hook coverage up to CI - // https://github.com/FormidableLabs/victory/issues/2348 - // TODO(2348): Add this to `check:ci` - "jest:cov": "echo TODO", - // - TypeScript // TODO(2375): Can we cache / incremental? // https://github.com/FormidableLabs/victory/issues/2375 diff --git a/package.json b/package.json index a35cd98e5..7ee870702 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@testing-library/react-hooks": "^8.0.0", "@testing-library/react-native": "^11.0.0", "@types/fs-extra": "^11.0.3", - "@types/jest": "^28.1.6", + "@types/jest": "^29.5.12", "@types/lodash": "^4.14.149", "@types/node": "^18.6.1", "@types/prop-types": "^15.7.5", @@ -64,7 +64,7 @@ "@types/testing-library__jest-dom": "^5.14.5", "@typescript-eslint/eslint-plugin": "^5.32.0", "@typescript-eslint/parser": "^5.32.0", - "babel-jest": "^28.1.3", + "babel-jest": "^29.7.0", "babel-loader": "^8.2.5", "babel-plugin-lodash": "^3.1.2", "babel-plugin-module-resolver": "^4.1.0", @@ -87,8 +87,8 @@ "fs-extra": "^10.0.0", "glob": "8.0.3", "immutable": "^3.8.2", - "jest": "^28.1.3", - "jest-environment-jsdom": "^28.1.3", + "jest": "^29.7.0", + "jest-environment-jsdom": "^29.7.0", "lodash": "^4.17.19", "lodash-webpack-plugin": "^0.11.6", "mdast-util-to-string": "^1.0.6", @@ -107,7 +107,7 @@ "seedrandom": "^3.0.5", "storybook": "^7.6.7", "styled-components": "^5.3.5", - "ts-jest": "^28.0.7", + "ts-jest": "^29.1.2", "ts-loader": "^9.3.0", "ts-node": "^10.9.1", "typescript": "^4.7.3", @@ -163,7 +163,7 @@ "storybook:server": "concurrently --raw \"pnpm:build:lib:esm --watch\" \"pnpx storybook dev -p 6006\"", "sync": "wireit", "sync:pkgs": "node ./scripts/sync-pkgs-wireit.js", - "sync:tsconfig": "pnpm -r --filter !victory-core --filter !victory-vendor exec -- cpx ../victory-core/tsconfig.* .", + "sync:tsconfig": "pnpm -r --filter !victory-core --filter !victory-vendor --filter !victory-native exec -- cpx ../victory-core/tsconfig.* .", "release-notes": "ts-node ./scripts/release.ts" }, "wireit": { @@ -422,23 +422,9 @@ }, "jest": { "dependencies": [ - "jest:root", "jest:pkgs" ] }, - "jest:root": { - "command": "jest --testPathPattern=test/node", - "files": [ - "test" - ], - "output": [], - "dependencies": [ - "./packages/victory:build:lib:cjs" - ], - "packageLocks": [ - "pnpm-lock.yaml" - ] - }, "jest:pkgs": { "dependencies": [ "./packages/victory-native:jest", diff --git a/packages/victory-area/jest.config.ts b/packages/victory-area/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-area/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-area/package.json b/packages/victory-area/package.json index cadd60d75..3c4c47e16 100644 --- a/packages/victory-area/package.json +++ b/packages/victory-area/package.json @@ -28,8 +28,7 @@ "react": ">=16.6.0" }, "devDependencies": { - "victory-chart": "*", - "victory-area": "*" + "victory-chart": "*" }, "publishConfig": { "provenance": true @@ -275,7 +274,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -284,10 +283,10 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-chart:build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-chart:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-area/src/area.test.tsx b/packages/victory-area/src/area.test.tsx index e30276978..f0a376e14 100644 --- a/packages/victory-area/src/area.test.tsx +++ b/packages/victory-area/src/area.test.tsx @@ -1,9 +1,10 @@ import React from "react"; -import { Area } from "victory-area"; import { render } from "@testing-library/react"; import { VictoryContainer } from "victory-core"; import * as d3Scale from "victory-vendor/d3-scale"; +import { Area } from "./area"; + describe("victory-primitives/area", () => { const baseProps = { data: [ diff --git a/packages/victory-area/src/helper-methods.test.tsx b/packages/victory-area/src/helper-methods.test.tsx index 20547bb91..032c3ec75 100644 --- a/packages/victory-area/src/helper-methods.test.tsx +++ b/packages/victory-area/src/helper-methods.test.tsx @@ -1,6 +1,7 @@ -import { getDataWithBaseline } from "victory-area/lib/helper-methods"; import * as d3Scale from "victory-vendor/d3-scale"; +import { getDataWithBaseline } from "./helper-methods"; + describe("victory-area/helper-methods", () => { describe("getDataWithBaseline", () => { const data = [ diff --git a/packages/victory-area/src/victory-area.test.tsx b/packages/victory-area/src/victory-area.test.tsx index 4985e7dba..dd6a9e45b 100644 --- a/packages/victory-area/src/victory-area.test.tsx +++ b/packages/victory-area/src/victory-area.test.tsx @@ -1,10 +1,12 @@ import { fireEvent, render, screen } from "@testing-library/react"; import React from "react"; -import { Area, VictoryArea, VictoryAreaProps } from "victory-area"; import { VictoryChart } from "victory-chart"; import { Helpers } from "victory-core"; import { curveCatmullRom } from "victory-vendor/d3-shape"; + import { calculateD3Path } from "../../../test/helpers/svg"; +import { Area } from "./area"; +import { VictoryArea, VictoryAreaProps } from "./victory-area"; describe("components/victory-area", () => { describe("default component rendering", () => { diff --git a/packages/victory-area/tsconfig.build.json b/packages/victory-area/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-area/tsconfig.build.json +++ b/packages/victory-area/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-area/tsconfig.json b/packages/victory-area/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-area/tsconfig.json +++ b/packages/victory-area/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-axis/jest.config.ts b/packages/victory-axis/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-axis/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-axis/package.json b/packages/victory-axis/package.json index 0a074a121..03cfda963 100644 --- a/packages/victory-axis/package.json +++ b/packages/victory-axis/package.json @@ -26,9 +26,6 @@ "peerDependencies": { "react": ">=16.6.0" }, - "devDependencies": { - "victory-axis": "*" - }, "publishConfig": { "provenance": true }, @@ -263,7 +260,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -272,9 +269,9 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-axis/tsconfig.build.json b/packages/victory-axis/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-axis/tsconfig.build.json +++ b/packages/victory-axis/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-axis/tsconfig.json b/packages/victory-axis/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-axis/tsconfig.json +++ b/packages/victory-axis/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-bar/jest.config.ts b/packages/victory-bar/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-bar/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-bar/package.json b/packages/victory-bar/package.json index e7c1a10d1..f5b18a52b 100644 --- a/packages/victory-bar/package.json +++ b/packages/victory-bar/package.json @@ -28,8 +28,7 @@ "react": ">=16.6.0" }, "devDependencies": { - "victory-chart": "*", - "victory-bar": "*" + "victory-chart": "*" }, "publishConfig": { "provenance": true @@ -275,7 +274,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -284,10 +283,10 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-chart:build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-chart:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-bar/src/bar.test.tsx b/packages/victory-bar/src/bar.test.tsx index f721312b2..546a25429 100644 --- a/packages/victory-bar/src/bar.test.tsx +++ b/packages/victory-bar/src/bar.test.tsx @@ -2,8 +2,9 @@ import React from "react"; import { render } from "@testing-library/react"; import * as d3Scale from "victory-vendor/d3-scale"; import { VictoryContainer } from "victory-core"; -import { Bar } from "victory-bar"; + import { getBarShape } from "../../../test/helpers"; +import { Bar } from "./bar"; describe("victory-primitives/bar", () => { const baseProps = { diff --git a/packages/victory-bar/src/geometry-helper-methods.test.ts b/packages/victory-bar/src/geometry-helper-methods.test.ts index 41dcda0dc..b9c67d2cc 100644 --- a/packages/victory-bar/src/geometry-helper-methods.test.ts +++ b/packages/victory-bar/src/geometry-helper-methods.test.ts @@ -1,4 +1,4 @@ -import { circle, point } from "victory-bar/lib/geometry-helper-methods"; +import { circle, point } from "./geometry-helper-methods"; describe("point", () => { describe("calculates distances", () => { diff --git a/packages/victory-bar/src/victory-bar.test.tsx b/packages/victory-bar/src/victory-bar.test.tsx index 2c8bc6a3d..e6d1e79c5 100644 --- a/packages/victory-bar/src/victory-bar.test.tsx +++ b/packages/victory-bar/src/victory-bar.test.tsx @@ -1,10 +1,11 @@ import * as React from "react"; import { render, fireEvent, screen } from "@testing-library/react"; import { VictoryChart } from "victory-chart"; -import { Bar, VictoryBar } from "victory-bar"; import { Helpers } from "victory-core"; import { isBar, getBarHeight } from "../../../test/helpers"; +import { Bar } from "./bar"; +import { VictoryBar } from "./victory-bar"; describe("components/victory-bar", () => { describe("default component rendering", () => { diff --git a/packages/victory-bar/tsconfig.build.json b/packages/victory-bar/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-bar/tsconfig.build.json +++ b/packages/victory-bar/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-bar/tsconfig.json b/packages/victory-bar/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-bar/tsconfig.json +++ b/packages/victory-bar/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-box-plot/jest.config.ts b/packages/victory-box-plot/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-box-plot/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-box-plot/package.json b/packages/victory-box-plot/package.json index 038492be5..da3e46a19 100644 --- a/packages/victory-box-plot/package.json +++ b/packages/victory-box-plot/package.json @@ -28,7 +28,6 @@ "react": ">=16.6.0" }, "devDependencies": { - "victory-box-plot": "*", "victory-chart": "*" }, "publishConfig": { @@ -275,7 +274,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -284,10 +283,10 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-chart:build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-chart:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-box-plot/src/victory-box-plot.test.tsx b/packages/victory-box-plot/src/victory-box-plot.test.tsx index 9ac9afd96..a1122fea4 100644 --- a/packages/victory-box-plot/src/victory-box-plot.test.tsx +++ b/packages/victory-box-plot/src/victory-box-plot.test.tsx @@ -1,9 +1,10 @@ import { render, screen } from "@testing-library/react"; import React from "react"; -import { VictoryBoxPlot } from "victory-box-plot"; import { VictoryChart } from "victory-chart"; import { Border, LineSegment, Whisker } from "victory-core"; +import { VictoryBoxPlot } from "./victory-box-plot"; + const TEST_GROUP_ID = "test-group-id"; const dataset = [ { x: 1, min: 1, max: 18, median: 8, q1: 5, q3: 15 }, diff --git a/packages/victory-box-plot/tsconfig.build.json b/packages/victory-box-plot/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-box-plot/tsconfig.build.json +++ b/packages/victory-box-plot/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-box-plot/tsconfig.json b/packages/victory-box-plot/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-box-plot/tsconfig.json +++ b/packages/victory-box-plot/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-brush-container/jest.config.ts b/packages/victory-brush-container/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-brush-container/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-brush-container/package.json b/packages/victory-brush-container/package.json index 792421f4a..d46384d38 100644 --- a/packages/victory-brush-container/package.json +++ b/packages/victory-brush-container/package.json @@ -27,9 +27,6 @@ "peerDependencies": { "react": ">=16.6.0" }, - "devDependencies": { - "victory-brush-container": "*" - }, "publishConfig": { "provenance": true }, @@ -264,7 +261,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -273,9 +270,9 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-brush-container/src/brush-helpers.test.tsx b/packages/victory-brush-container/src/brush-helpers.test.tsx index e00e70746..f61d94ed5 100644 --- a/packages/victory-brush-container/src/brush-helpers.test.tsx +++ b/packages/victory-brush-container/src/brush-helpers.test.tsx @@ -1,4 +1,4 @@ -import { BrushHelpers } from "victory-brush-container"; +import { BrushHelpers } from "./brush-helpers"; describe("containers/brush-helpers", () => { // eslint-disable-next-line @typescript-eslint/unbound-method diff --git a/packages/victory-brush-container/tsconfig.build.json b/packages/victory-brush-container/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-brush-container/tsconfig.build.json +++ b/packages/victory-brush-container/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-brush-container/tsconfig.json b/packages/victory-brush-container/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-brush-container/tsconfig.json +++ b/packages/victory-brush-container/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-brush-line/jest.config.ts b/packages/victory-brush-line/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-brush-line/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-brush-line/package.json b/packages/victory-brush-line/package.json index 55cb128a4..963019d53 100644 --- a/packages/victory-brush-line/package.json +++ b/packages/victory-brush-line/package.json @@ -261,7 +261,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -270,9 +270,9 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-brush-line/tsconfig.build.json b/packages/victory-brush-line/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-brush-line/tsconfig.build.json +++ b/packages/victory-brush-line/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-brush-line/tsconfig.json b/packages/victory-brush-line/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-brush-line/tsconfig.json +++ b/packages/victory-brush-line/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-candlestick/jest.config.ts b/packages/victory-candlestick/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-candlestick/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-candlestick/package.json b/packages/victory-candlestick/package.json index 6a551c49d..7fe268c6f 100644 --- a/packages/victory-candlestick/package.json +++ b/packages/victory-candlestick/package.json @@ -28,8 +28,7 @@ }, "devDependencies": { "victory-vendor": "*", - "victory-chart": "*", - "victory-candlestick": "*" + "victory-chart": "*" }, "publishConfig": { "provenance": true @@ -268,7 +267,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -277,10 +276,10 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-chart:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-chart:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-candlestick/src/candle.test.tsx b/packages/victory-candlestick/src/candle.test.tsx index b39cc5c13..0351e4e28 100644 --- a/packages/victory-candlestick/src/candle.test.tsx +++ b/packages/victory-candlestick/src/candle.test.tsx @@ -1,9 +1,10 @@ import React from "react"; import { render } from "@testing-library/react"; -import { Candle } from "victory-candlestick"; import { VictoryContainer } from "victory-core"; import * as d3Scale from "victory-vendor/d3-scale"; +import { Candle } from "./candle"; + describe("victory-primitives/candle", () => { const baseProps = { data: [ diff --git a/packages/victory-candlestick/src/helper-methods.test.ts b/packages/victory-candlestick/src/helper-methods.test.ts index a3dac5b16..31b58f5e1 100644 --- a/packages/victory-candlestick/src/helper-methods.test.ts +++ b/packages/victory-candlestick/src/helper-methods.test.ts @@ -1,7 +1,8 @@ import { fromJS } from "immutable"; -import { getData, getDomain } from "victory-candlestick/lib/helper-methods"; import { Helpers } from "victory-core"; +import { getData, getDomain } from "./helper-methods"; + const immutableGetDataTest = { createData: (x) => fromJS(x), testLabel: "with immutable data", diff --git a/packages/victory-candlestick/src/victory-candlestick.test.tsx b/packages/victory-candlestick/src/victory-candlestick.test.tsx index 776313681..910830bd7 100644 --- a/packages/victory-candlestick/src/victory-candlestick.test.tsx +++ b/packages/victory-candlestick/src/victory-candlestick.test.tsx @@ -1,8 +1,9 @@ import { fireEvent, render, screen } from "@testing-library/react"; import React from "react"; -import { Candle, VictoryCandlestick } from "victory-candlestick"; import { VictoryChart } from "victory-chart"; import { Helpers } from "victory-core"; +import { Candle } from "./candle"; +import { VictoryCandlestick } from "./victory-candlestick"; const MyCandle = () =>
; diff --git a/packages/victory-candlestick/tsconfig.build.json b/packages/victory-candlestick/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-candlestick/tsconfig.build.json +++ b/packages/victory-candlestick/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-candlestick/tsconfig.json b/packages/victory-candlestick/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-candlestick/tsconfig.json +++ b/packages/victory-candlestick/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-canvas/jest.config.ts b/packages/victory-canvas/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-canvas/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-canvas/package.json b/packages/victory-canvas/package.json index 791e48b09..e43a86f48 100644 --- a/packages/victory-canvas/package.json +++ b/packages/victory-canvas/package.json @@ -269,7 +269,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -278,9 +278,10 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-bar:build", + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-canvas/tsconfig.build.json b/packages/victory-canvas/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-canvas/tsconfig.build.json +++ b/packages/victory-canvas/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-canvas/tsconfig.json b/packages/victory-canvas/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-canvas/tsconfig.json +++ b/packages/victory-canvas/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-chart/jest.config.ts b/packages/victory-chart/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-chart/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-chart/package.json b/packages/victory-chart/package.json index 9ffbfa9fe..41e278faf 100644 --- a/packages/victory-chart/package.json +++ b/packages/victory-chart/package.json @@ -30,9 +30,6 @@ "peerDependencies": { "react": ">=16.6.0" }, - "devDependencies": { - "victory-chart": "*" - }, "publishConfig": { "provenance": true }, @@ -291,7 +288,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -300,9 +297,12 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-axis:build", + "../victory-core:build", + "../victory-polar-axis:build", + "../victory-shared-events:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-chart/src/helper-methods.test.tsx b/packages/victory-chart/src/helper-methods.test.tsx index 3a3aa13d4..5b6745819 100644 --- a/packages/victory-chart/src/helper-methods.test.tsx +++ b/packages/victory-chart/src/helper-methods.test.tsx @@ -1,7 +1,8 @@ -import { getChildComponents } from "victory-chart/lib/helper-methods"; import React from "react"; import { VictoryAxis } from "victory-axis"; +import { getChildComponents } from "./helper-methods"; + const MockVictoryLine = () =>
; describe("victory-chart/helpers-methods", () => { diff --git a/packages/victory-chart/src/victory-chart.test.tsx b/packages/victory-chart/src/victory-chart.test.tsx index f27a5598a..615aa8886 100644 --- a/packages/victory-chart/src/victory-chart.test.tsx +++ b/packages/victory-chart/src/victory-chart.test.tsx @@ -1,8 +1,9 @@ import React from "react"; -import { VictoryChart } from "victory-chart"; import { VictoryAxis } from "victory-axis"; import { render, screen, fireEvent } from "@testing-library/react"; +import { VictoryChart } from "./victory-chart"; + describe("components/victory-chart", () => { describe("default component rendering", () => { it("renders an svg with the correct width and height", () => { diff --git a/packages/victory-chart/tsconfig.build.json b/packages/victory-chart/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-chart/tsconfig.build.json +++ b/packages/victory-chart/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-chart/tsconfig.json b/packages/victory-chart/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-chart/tsconfig.json +++ b/packages/victory-chart/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-core/jest.config.ts b/packages/victory-core/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-core/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-core/package.json b/packages/victory-core/package.json index 02c49a4cf..ee288bc6c 100644 --- a/packages/victory-core/package.json +++ b/packages/victory-core/package.json @@ -27,9 +27,6 @@ "peerDependencies": { "react": ">=16.6.0" }, - "devDependencies": { - "victory-core": "*" - }, "publishConfig": { "provenance": true }, @@ -263,7 +260,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -272,9 +269,8 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-core/src/exports.test.ts b/packages/victory-core/src/exports.test.ts index df4c844a5..a692db273 100644 --- a/packages/victory-core/src/exports.test.ts +++ b/packages/victory-core/src/exports.test.ts @@ -1,4 +1,4 @@ -import * as VictoryCore from "victory-core"; +import * as VictoryCore from "./index"; /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable import/named */ // We don't need eslint to validate imports; TypeScript handles that for us. @@ -135,7 +135,7 @@ import { WhiskerProps, Wrapper, addEvents, -} from "victory-core"; +} from "./index"; import { pick } from "lodash"; describe("victory-core", () => { @@ -145,7 +145,7 @@ describe("victory-core", () => { }); it("should export everything", () => { expect(Object.keys(VictoryCore).sort()).toMatchInlineSnapshot(` - Array [ + [ "Arc", "Axis", "Background", @@ -224,8 +224,8 @@ describe("victory-core", () => { it("should export all namespaces", () => { expect(pick(VictoryCore, namespaces)).toMatchInlineSnapshot(` - Object { - "Axis": Object { + { + "Axis": { "findAxisComponents": [Function], "getAxis": [Function], "getAxisComponent": [Function], @@ -240,7 +240,7 @@ describe("victory-core", () => { "modifyProps": [Function], "stringTicks": [Function], }, - "Collection": Object { + "Collection": { "containsDates": [Function], "containsNumbers": [Function], "containsOnlyStrings": [Function], @@ -250,7 +250,7 @@ describe("victory-core", () => { "isArrayOfArrays": [Function], "removeUndefined": [Function], }, - "Data": Object { + "Data": { "createStringMap": [Function], "downsample": [Function], "formatData": [Function], @@ -263,12 +263,12 @@ describe("victory-core", () => { "getStringsFromData": [Function], "isDataComponent": [Function], }, - "DefaultTransitions": Object { + "DefaultTransitions": { "continuousPolarTransitions": [Function], "continuousTransitions": [Function], "discreteTransitions": [Function], }, - "Domain": Object { + "Domain": { "createDomainFunction": [Function], "formatDomain": [Function], "getDomain": [Function], @@ -282,7 +282,7 @@ describe("victory-core", () => { "getSymmetricDomain": [Function], "isDomainComponent": [Function], }, - "Events": Object { + "Events": { "emulateReactEvent": [Function], "getComponentEvents": [Function], "getEventState": [Function], @@ -296,7 +296,7 @@ describe("victory-core", () => { "getScopedEvents": [Function], "omitGlobalEvents": [Function], }, - "Helpers": Object { + "Helpers": { "createAccessor": [Function], "degreesToRadians": [Function], "evaluateProp": [Function], @@ -318,11 +318,11 @@ describe("victory-core", () => { "reduceChildren": [Function], "scalePoint": [Function], }, - "Hooks": Object { + "Hooks": { "useAnimationState": [Function], "usePreviousProps": [Function], }, - "Immutable": Object { + "Immutable": { "IMMUTABLE_ITERABLE": "@@__IMMUTABLE_ITERABLE__@@", "IMMUTABLE_LIST": "@@__IMMUTABLE_LIST__@@", "IMMUTABLE_MAP": "@@__IMMUTABLE_MAP__@@", @@ -334,7 +334,7 @@ describe("victory-core", () => { "isRecord": [Function], "shallowToJS": [Function], }, - "LabelHelpers": Object { + "LabelHelpers": { "getDegrees": [Function], "getPolarAngle": [Function], "getPolarTextAnchor": [Function], @@ -342,14 +342,14 @@ describe("victory-core", () => { "getProps": [Function], "getText": [Function], }, - "LineHelpers": Object { + "LineHelpers": { "getInterpolationFunction": [Function], "getLineFunction": [Function], }, - "Log": Object { + "Log": { "warn": [Function], }, - "PointPathHelpers": Object { + "PointPathHelpers": { "circle": [Function], "cross": [Function], "diamond": [Function], @@ -360,7 +360,7 @@ describe("victory-core", () => { "triangleDown": [Function], "triangleUp": [Function], }, - "Scale": Object { + "Scale": { "getBaseScale": [Function], "getDefaultScale": [Function], "getScaleFromName": [Function], @@ -369,34 +369,34 @@ describe("victory-core", () => { "getType": [Function], "validScale": [Function], }, - "Selection": Object { + "Selection": { "getBounds": [Function], "getDataCoordinates": [Function], "getDomainCoordinates": [Function], "getParentSVG": [Function], "getSVGEventCoordinates": [Function], }, - "Style": Object { + "Style": { "getColorScale": [Function], "toTransformString": [Function], }, - "TextSize": Object { - "_approximateTextSizeInternal": Object { + "TextSize": { + "_approximateTextSizeInternal": { "impl": [Function], }, "approximateTextSize": [Function], "convertLengthToPixels": [Function], }, - "Transitions": Object { + "Transitions": { "getInitialTransitionState": [Function], "getTransitionPropsFactory": [Function], }, - "UserProps": Object { + "UserProps": { "assert": [Function], "getSafeUserProps": [Function], "withSafeUserProps": [Function], }, - "Wrapper": Object { + "Wrapper": { "addBinsToParentPropsIfHistogram": [Function], "getAllEvents": [Function], "getCategories": [Function], diff --git a/packages/victory-core/src/victory-accessible-group/victory-accessible-group.test.tsx b/packages/victory-core/src/victory-accessible-group/victory-accessible-group.test.tsx index 20d7915eb..73d002433 100644 --- a/packages/victory-core/src/victory-accessible-group/victory-accessible-group.test.tsx +++ b/packages/victory-core/src/victory-accessible-group/victory-accessible-group.test.tsx @@ -1,7 +1,8 @@ import { render } from "@testing-library/react"; import React from "react"; -import { VictoryAccessibleGroup } from "victory-core"; + import { SVGWrapper } from "../../../../test/helpers"; +import { VictoryAccessibleGroup } from "./victory-accessible-group"; describe("components/victory-accessible-group", () => { it("renders an g with an aria-label", () => { diff --git a/packages/victory-core/src/victory-animation/util.test.tsx b/packages/victory-core/src/victory-animation/util.test.tsx index 83ff72236..d96c360a7 100644 --- a/packages/victory-core/src/victory-animation/util.test.tsx +++ b/packages/victory-core/src/victory-animation/util.test.tsx @@ -1,5 +1,4 @@ -/* eslint-disable no-unused-expressions */ -import { victoryInterpolator } from "victory-core/lib/victory-animation/util"; +import { victoryInterpolator } from "./util"; describe("victoryInterpolator", () => { it("does not attempt to interpolate identical values", () => { diff --git a/packages/victory-core/src/victory-container/victory-container.test.tsx b/packages/victory-core/src/victory-container/victory-container.test.tsx index 283f2c0ba..bb194e607 100644 --- a/packages/victory-core/src/victory-container/victory-container.test.tsx +++ b/packages/victory-core/src/victory-container/victory-container.test.tsx @@ -1,5 +1,6 @@ import React from "react"; -import { VictoryContainer } from "victory-core"; + +import { VictoryContainer } from "./victory-container"; import { fireEvent, render } from "@testing-library/react"; describe("components/victory-container", () => { diff --git a/packages/victory-core/src/victory-label/victory-label.test.tsx b/packages/victory-core/src/victory-label/victory-label.test.tsx index 445b0beb7..2c227a5b1 100644 --- a/packages/victory-core/src/victory-label/victory-label.test.tsx +++ b/packages/victory-core/src/victory-label/victory-label.test.tsx @@ -1,7 +1,9 @@ import React from "react"; -import { Log, VictoryLabel } from "victory-core"; import { screen, fireEvent, render } from "@testing-library/react"; + import { SVGWrapper } from "../../../../test/helpers"; +import { Log } from "../victory-util"; +import { VictoryLabel } from "./victory-label"; describe("components/victory-label", () => { it("accepts user props", () => { diff --git a/packages/victory-core/src/victory-primitives/clip-path.test.tsx b/packages/victory-core/src/victory-primitives/clip-path.test.tsx index 9a4699b2a..12c27f0cf 100644 --- a/packages/victory-core/src/victory-primitives/clip-path.test.tsx +++ b/packages/victory-core/src/victory-primitives/clip-path.test.tsx @@ -1,7 +1,8 @@ import { render } from "@testing-library/react"; import React from "react"; + import { SVGWrapper } from "../../../../test/helpers"; -import { ClipPath } from "victory-core"; +import { ClipPath } from "./clip-path"; describe("victory-primitives/clip-path", () => { const baseProps = { diff --git a/packages/victory-core/src/victory-primitives/line.test.tsx b/packages/victory-core/src/victory-primitives/line.test.tsx index 8ad862718..eed2f2a85 100644 --- a/packages/victory-core/src/victory-primitives/line.test.tsx +++ b/packages/victory-core/src/victory-primitives/line.test.tsx @@ -1,7 +1,8 @@ import React from "react"; -import { Line } from "victory-core"; import { render } from "@testing-library/react"; +import { Line } from "./line"; + describe("victory-primitives/line", () => { const baseProps = { x1: 0, diff --git a/packages/victory-core/src/victory-primitives/point.test.tsx b/packages/victory-core/src/victory-primitives/point.test.tsx index 063029048..18bd45a30 100644 --- a/packages/victory-core/src/victory-primitives/point.test.tsx +++ b/packages/victory-core/src/victory-primitives/point.test.tsx @@ -1,7 +1,9 @@ import { render } from "@testing-library/react"; import React from "react"; -import { PointPathHelpers as pathHelpers, Point } from "victory-core"; + import { SVGWrapper } from "../../../../test/helpers"; +import { PointPathHelpers } from "../victory-util"; +import { Point } from "./point"; describe("victory-primitives/point", () => { const baseProps = { @@ -25,7 +27,7 @@ describe("victory-primitives/point", () => { ).forEach((symbol) => { it(`should render the appropriate symbol for "${symbol}"`, () => { const stub = jest - .spyOn(pathHelpers, symbol) + .spyOn(PointPathHelpers, symbol) // eslint-disable-next-line max-nested-callbacks .mockImplementation(() => `${symbol} symbol`); const props = Object.assign({}, baseProps, { symbol }); diff --git a/packages/victory-core/src/victory-util/axis.test.tsx b/packages/victory-core/src/victory-util/axis.test.tsx index 26370ef61..08b9fa7bd 100644 --- a/packages/victory-core/src/victory-util/axis.test.tsx +++ b/packages/victory-core/src/victory-util/axis.test.tsx @@ -1,6 +1,8 @@ /* eslint-disable react/no-multi-comp */ import React from "react"; -import { Axis, Scale } from "victory-core"; + +import * as Axis from "./axis"; +import * as Scale from "./scale"; describe("helpers/axis", () => { describe("isVertical", () => { diff --git a/packages/victory-core/src/victory-util/collection.test.ts b/packages/victory-core/src/victory-util/collection.test.ts index d42b200d0..7dd54a280 100644 --- a/packages/victory-core/src/victory-util/collection.test.ts +++ b/packages/victory-core/src/victory-util/collection.test.ts @@ -1,4 +1,4 @@ -import { Collection } from "victory-core"; +import * as Collection from "./collection"; describe("victory-util/collection", () => { describe("containsStrings", () => { diff --git a/packages/victory-core/src/victory-util/data.test.tsx b/packages/victory-core/src/victory-util/data.test.tsx index 6692e9228..dcf942948 100644 --- a/packages/victory-core/src/victory-util/data.test.tsx +++ b/packages/victory-core/src/victory-util/data.test.tsx @@ -1,8 +1,10 @@ /* eslint no-unused-expressions: 0, max-nested-callbacks: 0 */ import React from "react"; -import { Data, VictoryPortal } from "victory-core"; import { fromJS } from "immutable"; +import * as Data from "./data"; +import { VictoryPortal } from "../victory-portal/victory-portal"; + const immutableDataTest = { createData: (data) => fromJS(data), testLabel: "data in immutable", diff --git a/packages/victory-core/src/victory-util/domain.test.tsx b/packages/victory-core/src/victory-util/domain.test.tsx index c3c23994d..e70526f07 100644 --- a/packages/victory-core/src/victory-util/domain.test.tsx +++ b/packages/victory-core/src/victory-util/domain.test.tsx @@ -1,5 +1,7 @@ import React from "react"; -import { Domain, VictoryPortal } from "victory-core"; + +import { VictoryPortal } from "../victory-portal/victory-portal"; +import * as Domain from "./domain"; describe("victory-util/domain", () => { describe("createDomainFunction", () => { diff --git a/packages/victory-core/src/victory-util/events.test.ts b/packages/victory-core/src/victory-util/events.test.ts index f993a3857..e935e1749 100644 --- a/packages/victory-core/src/victory-util/events.test.ts +++ b/packages/victory-core/src/victory-util/events.test.ts @@ -1,4 +1,4 @@ -import { Events } from "victory-core"; +import * as Events from "./events"; describe("victory-util/events", () => { describe("getPartialEvents", () => { diff --git a/packages/victory-core/src/victory-util/helpers.test.ts b/packages/victory-core/src/victory-util/helpers.test.ts index cb719af7c..80ba01061 100644 --- a/packages/victory-core/src/victory-util/helpers.test.ts +++ b/packages/victory-core/src/victory-util/helpers.test.ts @@ -1,4 +1,4 @@ -import { Helpers } from "victory-core"; +import * as Helpers from "./helpers"; describe("victory-util/helpers", () => { describe("omit", () => { diff --git a/packages/victory-core/src/victory-util/immutable.test.ts b/packages/victory-core/src/victory-util/immutable.test.ts index 7cb818271..6d924fdc8 100644 --- a/packages/victory-core/src/victory-util/immutable.test.ts +++ b/packages/victory-core/src/victory-util/immutable.test.ts @@ -1,4 +1,4 @@ -import { Immutable } from "victory-core"; +import * as Immutable from "./immutable"; describe("victory-util/immutable", () => { it("should have valid type guards", () => { diff --git a/packages/victory-core/src/victory-util/label-helpers.test.tsx b/packages/victory-core/src/victory-util/label-helpers.test.tsx index 0b1b77b51..370dbfd98 100644 --- a/packages/victory-core/src/victory-util/label-helpers.test.tsx +++ b/packages/victory-core/src/victory-util/label-helpers.test.tsx @@ -1,8 +1,10 @@ /* eslint max-nested-callbacks: 0 */ import React from "react"; -import { LabelHelpers, VictoryLabel } from "victory-core"; import * as d3Scale from "victory-vendor/d3-scale"; +import * as LabelHelpers from "./label-helpers"; +import { VictoryLabel } from "../victory-label/victory-label"; + const scale = { x: d3Scale.scaleLinear(), y: d3Scale.scaleLinear() }; const data = [ { x: 0, y: 0 }, diff --git a/packages/victory-core/src/victory-util/point-path-helpers.test.ts b/packages/victory-core/src/victory-util/point-path-helpers.test.ts index 40b30e4af..4c1dde1c5 100644 --- a/packages/victory-core/src/victory-util/point-path-helpers.test.ts +++ b/packages/victory-core/src/victory-util/point-path-helpers.test.ts @@ -1,4 +1,4 @@ -import { PointPathHelpers as PathHelpers } from "victory-core"; +import * as PathHelpers from "./point-path-helpers"; describe("point-path-helpers", () => { const x = 0; diff --git a/packages/victory-core/src/victory-util/scale.test.ts b/packages/victory-core/src/victory-util/scale.test.ts index 3ffe74b1e..6a16e897e 100644 --- a/packages/victory-core/src/victory-util/scale.test.ts +++ b/packages/victory-core/src/victory-util/scale.test.ts @@ -1,6 +1,7 @@ -import { Scale } from "victory-core"; import * as d3Scale from "victory-vendor/d3-scale"; +import * as Scale from "./scale"; + describe("victory-util/scale", () => { describe("getBaseScale", () => { it("returns a scale from `getScaleFromProps` when string props are provided", () => { diff --git a/packages/victory-core/src/victory-util/selection.test.ts b/packages/victory-core/src/victory-util/selection.test.ts index b7a6818f7..4057e7916 100644 --- a/packages/victory-core/src/victory-util/selection.test.ts +++ b/packages/victory-core/src/victory-util/selection.test.ts @@ -1,6 +1,7 @@ -import { Selection } from "victory-core"; import * as d3Scale from "victory-vendor/d3-scale"; +import * as Selection from "./selection"; + describe("helpers/selection", () => { describe("getBounds", () => { it("returns min / max bounds", () => { diff --git a/packages/victory-core/src/victory-util/style.test.ts b/packages/victory-core/src/victory-util/style.test.ts index 72728beeb..884f7908b 100644 --- a/packages/victory-core/src/victory-util/style.test.ts +++ b/packages/victory-core/src/victory-util/style.test.ts @@ -1,4 +1,4 @@ -import { Style } from "victory-core"; +import * as Style from "./style"; describe("toTransformString", () => { it("returns an empty string if no transform definitions are given", () => { diff --git a/packages/victory-core/src/victory-util/textsize.test.ts b/packages/victory-core/src/victory-util/textsize.test.ts index a2c026fa6..8752eec6a 100644 --- a/packages/victory-core/src/victory-util/textsize.test.ts +++ b/packages/victory-core/src/victory-util/textsize.test.ts @@ -1,4 +1,4 @@ -import { TextSize } from "victory-core"; +import * as TextSize from "./textsize"; const approximate = (text, style?) => TextSize._approximateTextSizeInternal.impl(text, style, true); diff --git a/packages/victory-core/src/victory-util/transitions.test.ts b/packages/victory-core/src/victory-util/transitions.test.ts index 4ec39cdcf..f291019f8 100644 --- a/packages/victory-core/src/victory-util/transitions.test.ts +++ b/packages/victory-core/src/victory-util/transitions.test.ts @@ -1,5 +1,6 @@ import React from "react"; -import { Transitions } from "victory-core"; + +import * as Transitions from "./transitions"; describe("getInitialTransitionState", () => { const makeChild = (data) => { diff --git a/packages/victory-core/src/victory-util/wrapper.test.tsx b/packages/victory-core/src/victory-util/wrapper.test.tsx index 4adaa340d..1f6b2035e 100644 --- a/packages/victory-core/src/victory-util/wrapper.test.tsx +++ b/packages/victory-core/src/victory-util/wrapper.test.tsx @@ -1,6 +1,7 @@ /* eslint-disable react/no-multi-comp */ import React from "react"; -import { Wrapper } from "victory-core"; + +import * as Wrapper from "./wrapper"; const MockVictoryAxis = (props) =>
; MockVictoryAxis.role = "axis"; diff --git a/packages/victory-core/tsconfig.build.json b/packages/victory-core/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-core/tsconfig.build.json +++ b/packages/victory-core/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-core/tsconfig.json b/packages/victory-core/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-core/tsconfig.json +++ b/packages/victory-core/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-create-container/jest.config.ts b/packages/victory-create-container/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-create-container/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-create-container/package.json b/packages/victory-create-container/package.json index 0de957f55..26d878350 100644 --- a/packages/victory-create-container/package.json +++ b/packages/victory-create-container/package.json @@ -305,7 +305,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -314,9 +314,14 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-brush-container:build", + "../victory-core:build", + "../victory-cursor-container:build", + "../victory-selection-container:build", + "../victory-voronoi-container:build", + "../victory-zoom-container:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-create-container/tsconfig.build.json b/packages/victory-create-container/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-create-container/tsconfig.build.json +++ b/packages/victory-create-container/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-create-container/tsconfig.json b/packages/victory-create-container/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-create-container/tsconfig.json +++ b/packages/victory-create-container/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-cursor-container/jest.config.ts b/packages/victory-cursor-container/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-cursor-container/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-cursor-container/package.json b/packages/victory-cursor-container/package.json index 20f5f77cf..d7c2e7cd6 100644 --- a/packages/victory-cursor-container/package.json +++ b/packages/victory-cursor-container/package.json @@ -260,7 +260,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -269,9 +269,9 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-cursor-container/tsconfig.build.json b/packages/victory-cursor-container/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-cursor-container/tsconfig.build.json +++ b/packages/victory-cursor-container/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-cursor-container/tsconfig.json b/packages/victory-cursor-container/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-cursor-container/tsconfig.json +++ b/packages/victory-cursor-container/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-errorbar/jest.config.ts b/packages/victory-errorbar/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-errorbar/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-errorbar/package.json b/packages/victory-errorbar/package.json index 6307c80e0..cd8667c02 100644 --- a/packages/victory-errorbar/package.json +++ b/packages/victory-errorbar/package.json @@ -26,9 +26,6 @@ "peerDependencies": { "react": ">=16.6.0" }, - "devDependencies": { - "victory-errorbar": "*" - }, "publishConfig": { "provenance": true }, @@ -263,7 +260,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -272,9 +269,9 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-errorbar/src/error-bar.test.tsx b/packages/victory-errorbar/src/error-bar.test.tsx index ea00d8a3e..84d53003f 100644 --- a/packages/victory-errorbar/src/error-bar.test.tsx +++ b/packages/victory-errorbar/src/error-bar.test.tsx @@ -1,9 +1,10 @@ import { render } from "@testing-library/react"; import { forEach, omit } from "lodash"; import React from "react"; -import { ErrorBar } from "victory-errorbar"; import * as d3Scale from "victory-vendor/d3-scale"; +import { ErrorBar } from "./error-bar"; + describe("victory-primitives/error-bar", () => { const baseProps = { x: 4, diff --git a/packages/victory-errorbar/src/victory-errorbars.test.tsx b/packages/victory-errorbar/src/victory-errorbars.test.tsx index db603f258..517dc2f29 100644 --- a/packages/victory-errorbar/src/victory-errorbars.test.tsx +++ b/packages/victory-errorbar/src/victory-errorbars.test.tsx @@ -1,10 +1,12 @@ +import React from "react"; import { fireEvent, render, screen } from "@testing-library/react"; import { fromJS } from "immutable"; -import React from "react"; import { Helpers } from "victory-core"; -import { ErrorBar, VictoryErrorBar } from "victory-errorbar"; import * as d3Scale from "victory-vendor/d3-scale"; +import { ErrorBar } from "./error-bar"; +import { VictoryErrorBar } from "./victory-errorbar"; + const defaultProps = { dataComponent: ( { />, ); const svg = container.querySelector("svg"); - fireEvent.click(svg!); + if (svg) fireEvent.click(svg); expect(clickHandler).toBeCalled(); }); diff --git a/packages/victory-errorbar/tsconfig.build.json b/packages/victory-errorbar/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-errorbar/tsconfig.build.json +++ b/packages/victory-errorbar/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-errorbar/tsconfig.json b/packages/victory-errorbar/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-errorbar/tsconfig.json +++ b/packages/victory-errorbar/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-group/jest.config.ts b/packages/victory-group/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-group/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-group/package.json b/packages/victory-group/package.json index a057cb8da..1afc5e5af 100644 --- a/packages/victory-group/package.json +++ b/packages/victory-group/package.json @@ -26,8 +26,7 @@ "victory-shared-events": "^36.9.1" }, "devDependencies": { - "victory-bar": "*", - "victory-group": "*" + "victory-bar": "*" }, "peerDependencies": { "react": ">=16.6.0" @@ -277,7 +276,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -286,10 +285,11 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-bar:build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-shared-events:build", + "../victory-bar:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-group/src/victory-group.test.tsx b/packages/victory-group/src/victory-group.test.tsx index 1b9dc92ff..13c0c77c4 100644 --- a/packages/victory-group/src/victory-group.test.tsx +++ b/packages/victory-group/src/victory-group.test.tsx @@ -1,7 +1,8 @@ import { render, screen } from "@testing-library/react"; import React from "react"; import { VictoryBar } from "victory-bar"; -import { VictoryGroup } from "victory-group"; + +import { VictoryGroup } from "./victory-group"; describe("components/victory-group", () => { it("has a static role", () => { diff --git a/packages/victory-group/tsconfig.build.json b/packages/victory-group/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-group/tsconfig.build.json +++ b/packages/victory-group/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-group/tsconfig.json b/packages/victory-group/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-group/tsconfig.json +++ b/packages/victory-group/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-histogram/jest.config.ts b/packages/victory-histogram/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-histogram/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-histogram/package.json b/packages/victory-histogram/package.json index 3c1f31998..3080af282 100644 --- a/packages/victory-histogram/package.json +++ b/packages/victory-histogram/package.json @@ -26,9 +26,6 @@ "victory-core": "^36.9.1", "victory-vendor": "^36.9.1" }, - "devDependencies": { - "victory-histogram": "*" - }, "peerDependencies": { "react": ">=16.6.0" }, @@ -281,7 +278,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -290,9 +287,10 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-bar:build", + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-histogram/src/victory-histogram.test.tsx b/packages/victory-histogram/src/victory-histogram.test.tsx index 77f07c0c3..155ea32ca 100644 --- a/packages/victory-histogram/src/victory-histogram.test.tsx +++ b/packages/victory-histogram/src/victory-histogram.test.tsx @@ -1,9 +1,9 @@ import React from "react"; import { render, screen, fireEvent } from "@testing-library/react"; -import { VictoryHistogram } from "victory-histogram"; import { Helpers } from "victory-core"; import { isBar, getBarHeight } from "../../../test/helpers"; +import { VictoryHistogram } from "./victory-histogram"; describe("components/victory-histogram", () => { const DATA_COMPONENT_ID = "data-component-id"; diff --git a/packages/victory-histogram/tsconfig.build.json b/packages/victory-histogram/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-histogram/tsconfig.build.json +++ b/packages/victory-histogram/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-histogram/tsconfig.json b/packages/victory-histogram/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-histogram/tsconfig.json +++ b/packages/victory-histogram/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-legend/jest.config.ts b/packages/victory-legend/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-legend/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-legend/package.json b/packages/victory-legend/package.json index 197a352f0..5514a35fd 100644 --- a/packages/victory-legend/package.json +++ b/packages/victory-legend/package.json @@ -26,9 +26,6 @@ "peerDependencies": { "react": ">=16.6.0" }, - "devDependencies": { - "victory-legend": "*" - }, "publishConfig": { "provenance": true }, @@ -263,7 +260,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -272,9 +269,9 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-legend/src/victory-legend.test.tsx b/packages/victory-legend/src/victory-legend.test.tsx index 13df89e5a..b4d1650a1 100644 --- a/packages/victory-legend/src/victory-legend.test.tsx +++ b/packages/victory-legend/src/victory-legend.test.tsx @@ -1,8 +1,9 @@ /* eslint-disable max-nested-callbacks */ import React from "react"; import { render, screen } from "@testing-library/react"; -import { VictoryLegend } from "victory-legend"; + import { isCircle, isTriangle } from "../../../test/helpers"; +import { VictoryLegend } from "./victory-legend"; describe("components/victory-legend", () => { const initialData = [ diff --git a/packages/victory-legend/tsconfig.build.json b/packages/victory-legend/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-legend/tsconfig.build.json +++ b/packages/victory-legend/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-legend/tsconfig.json b/packages/victory-legend/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-legend/tsconfig.json +++ b/packages/victory-legend/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-line/jest.config.ts b/packages/victory-line/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-line/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-line/package.json b/packages/victory-line/package.json index dab263a2d..1d5b5da3f 100644 --- a/packages/victory-line/package.json +++ b/packages/victory-line/package.json @@ -28,8 +28,7 @@ "react": ">=16.6.0" }, "devDependencies": { - "victory-chart": "*", - "victory-line": "*" + "victory-chart": "*" }, "publishConfig": { "provenance": true @@ -275,7 +274,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -284,10 +283,10 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-chart:build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-chart:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-line/src/curve.test.tsx b/packages/victory-line/src/curve.test.tsx index d218ca67f..af86d851f 100644 --- a/packages/victory-line/src/curve.test.tsx +++ b/packages/victory-line/src/curve.test.tsx @@ -1,8 +1,9 @@ import React from "react"; -import { Curve } from "victory-line"; import * as d3Scale from "victory-vendor/d3-scale"; import { render } from "@testing-library/react"; + import { SVGWrapper } from "../../../test/helpers"; +import { Curve } from "./curve"; describe("victory-primitives/curve", () => { const baseProps = { diff --git a/packages/victory-line/src/victory-line.test.tsx b/packages/victory-line/src/victory-line.test.tsx index a76144a94..a305611e7 100644 --- a/packages/victory-line/src/victory-line.test.tsx +++ b/packages/victory-line/src/victory-line.test.tsx @@ -3,11 +3,11 @@ import { random } from "lodash"; import React from "react"; import { VictoryChart } from "victory-chart"; import { Helpers } from "victory-core"; -import { Curve, VictoryLine } from "victory-line"; import { curveCatmullRom } from "victory-vendor/d3-shape"; import { calculateD3Path } from "../../../test/helpers"; -import { VictoryLineProps } from "./victory-line"; +import { Curve } from "./curve"; +import { VictoryLine, VictoryLineProps } from "./victory-line"; describe("components/victory-line", () => { describe("default component rendering", () => { diff --git a/packages/victory-line/tsconfig.build.json b/packages/victory-line/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-line/tsconfig.build.json +++ b/packages/victory-line/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-line/tsconfig.json b/packages/victory-line/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-line/tsconfig.json +++ b/packages/victory-line/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/test/jest-native-setup.js b/packages/victory-native/jest-native-setup.tsx similarity index 91% rename from test/jest-native-setup.js rename to packages/victory-native/jest-native-setup.tsx index 31a134abd..a8fdcfd10 100644 --- a/test/jest-native-setup.js +++ b/packages/victory-native/jest-native-setup.tsx @@ -9,7 +9,7 @@ jest.mock("react-native", () => ({ panHandlers: [], }), }, - View: ({ children }) => <>{children}, // eslint-disable-line react/prop-types + View: ({ children }) => <>{children}, })); const createMockComponent = (name) => { diff --git a/test/jest-native-config.js b/packages/victory-native/jest.config.ts similarity index 54% rename from test/jest-native-config.js rename to packages/victory-native/jest.config.ts index 17be043d7..7b6591c3b 100644 --- a/test/jest-native-config.js +++ b/packages/victory-native/jest.config.ts @@ -1,10 +1,13 @@ -const path = require("path"); -const ROOT = path.resolve(__dirname, ".."); -const BABEL_PATH = path.resolve(ROOT, ".babelrc.native.js"); // eslint-disable-line no-undef -const BABEL_TRANSFORM = ["babel-jest", { configFile: BABEL_PATH }]; +const BABEL_TRANSFORM = [ + "babel-jest", + { configFile: "../../.babelrc.native.js" }, +]; + +const jestConfig = { + preset: "ts-jest", + testEnvironment: "jsdom", + testMatch: ["**/src/**/?(*.)+(spec|test).[jt]s?(x)"], -module.exports = { - rootDir: ROOT, moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], testPathIgnorePatterns: ["node_modules", "config", "/es/", "/lib/"], transform: { @@ -13,5 +16,7 @@ module.exports = { "^.+\\.(js|jsx)$": BABEL_TRANSFORM, }, transformIgnorePatterns: ["/node_modules/", "/lib/"], - setupFiles: ["/test/jest-native-setup.js"], + setupFiles: ["./jest-native-setup.tsx"], }; + +export default jestConfig; diff --git a/packages/victory-native/package.json b/packages/victory-native/package.json index 3e81faf3d..793b9f726 100644 --- a/packages/victory-native/package.json +++ b/packages/victory-native/package.json @@ -58,8 +58,7 @@ "@babel/core": "^7.18.9", "react-native": "^0.65.1", "react-native-gesture-handler": "^1.10.3", - "react-native-svg": "^12.4.3", - "victory-native": "^36.9.1" + "react-native-svg": "^12.4.3" }, "peerDependencies": { "react": ">=16.6.0" @@ -354,12 +353,12 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest", "files": [ "src/**/*.test.*", "../../.babelrc.js", - "../../test/jest-config.js", - "../../test/jest-setup.ts" + "./jest.config.ts", + "./jest-native-setup.tsx" ], "output": [], "dependencies": [ diff --git a/packages/victory-native/src/components.test.ts b/packages/victory-native/src/components.test.ts index 530360e3f..f73aae841 100644 --- a/packages/victory-native/src/components.test.ts +++ b/packages/victory-native/src/components.test.ts @@ -1,4 +1,6 @@ import React from "react"; +import { render } from "@testing-library/react-native"; + import { VictoryArea, VictoryAxis, @@ -19,8 +21,7 @@ import { VictoryStack, VictoryTooltip, VictoryVoronoi, -} from "victory-native"; -import { render } from "@testing-library/react-native"; +} from "."; const components = [ { component: VictoryArea, name: "VictoryArea" }, diff --git a/packages/victory-native/src/components/victory-primitives/arc.tsx b/packages/victory-native/src/components/victory-primitives/arc.tsx index 57eac76d4..8d44bb90f 100644 --- a/packages/victory-native/src/components/victory-primitives/arc.tsx +++ b/packages/victory-native/src/components/victory-primitives/arc.tsx @@ -1,6 +1,6 @@ import React from "react"; import { Path } from "./path"; -import { Arc as ArcBase, ArcProps } from "victory-core/es"; +import { Arc as ArcBase, ArcProps } from "victory-core"; export const Arc = (props: ArcProps) => ( } {...props} /> diff --git a/packages/victory-native/src/helpers/native-helpers.test.ts b/packages/victory-native/src/helpers/native-helpers.test.ts index 3305aeee5..fe9f0eb79 100644 --- a/packages/victory-native/src/helpers/native-helpers.test.ts +++ b/packages/victory-native/src/helpers/native-helpers.test.ts @@ -1,4 +1,4 @@ -import { NativeHelpers } from "victory-native"; +import NativeHelpers from "./native-helpers"; describe("getStyle", () => { it("should return undefined if not called with any arguments", () => { diff --git a/packages/victory-native/tsconfig.build.json b/packages/victory-native/tsconfig.build.json index db09cd311..a3a37c386 100644 --- a/packages/victory-native/tsconfig.build.json +++ b/packages/victory-native/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts", "jest-native-setup.tsx"] } diff --git a/packages/victory-native/tsconfig.json b/packages/victory-native/tsconfig.json index 9ad5887f1..1276b3299 100644 --- a/packages/victory-native/tsconfig.json +++ b/packages/victory-native/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts", "jest-native-setup.tsx"] } diff --git a/packages/victory-pie/jest.config.ts b/packages/victory-pie/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-pie/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-pie/package.json b/packages/victory-pie/package.json index 7b0ef13d1..a69aea10f 100644 --- a/packages/victory-pie/package.json +++ b/packages/victory-pie/package.json @@ -27,9 +27,6 @@ "peerDependencies": { "react": ">=16.6.0" }, - "devDependencies": { - "victory-pie": "*" - }, "publishConfig": { "provenance": true }, @@ -271,7 +268,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -280,9 +277,9 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-pie/src/slice.test.tsx b/packages/victory-pie/src/slice.test.tsx index 1bf4768ac..3fec12ed9 100644 --- a/packages/victory-pie/src/slice.test.tsx +++ b/packages/victory-pie/src/slice.test.tsx @@ -1,7 +1,7 @@ import { render } from "@testing-library/react"; import React from "react"; -import { Slice } from "victory-pie"; import { SVGWrapper } from "../../../test/helpers"; +import { Slice } from "."; describe("victory-primitives/slice", () => { describe("rendering", () => { diff --git a/packages/victory-pie/src/victory-pie.test.tsx b/packages/victory-pie/src/victory-pie.test.tsx index 79e2629ac..b7a4aaee5 100644 --- a/packages/victory-pie/src/victory-pie.test.tsx +++ b/packages/victory-pie/src/victory-pie.test.tsx @@ -1,7 +1,6 @@ import React from "react"; import { render, screen, fireEvent } from "@testing-library/react"; import { Helpers, Style } from "victory-core"; -import { Slice, VictoryPie } from "victory-pie"; import { isCircularSector, getSvgCoordinatesAngleFromCartesianYAxis, @@ -10,6 +9,8 @@ import { getDistanceFromOrigin, getSliceArcEnd, } from "../../../test/helpers"; +import { VictoryPie } from "./victory-pie"; +import { Slice } from "./slice"; const pizzaSliceInnerText = "Pizza Slice"; const PizzaSlice = ({ datum }: { datum?: { x: number } }) => ( diff --git a/packages/victory-pie/tsconfig.build.json b/packages/victory-pie/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-pie/tsconfig.build.json +++ b/packages/victory-pie/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-pie/tsconfig.json b/packages/victory-pie/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-pie/tsconfig.json +++ b/packages/victory-pie/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-polar-axis/jest.config.ts b/packages/victory-polar-axis/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-polar-axis/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-polar-axis/package.json b/packages/victory-polar-axis/package.json index d356ffadd..3909572ab 100644 --- a/packages/victory-polar-axis/package.json +++ b/packages/victory-polar-axis/package.json @@ -260,7 +260,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -269,9 +269,9 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-polar-axis/tsconfig.build.json b/packages/victory-polar-axis/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-polar-axis/tsconfig.build.json +++ b/packages/victory-polar-axis/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-polar-axis/tsconfig.json b/packages/victory-polar-axis/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-polar-axis/tsconfig.json +++ b/packages/victory-polar-axis/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-scatter/jest.config.ts b/packages/victory-scatter/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-scatter/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-scatter/package.json b/packages/victory-scatter/package.json index ee0bfedde..cc95d11e8 100644 --- a/packages/victory-scatter/package.json +++ b/packages/victory-scatter/package.json @@ -26,9 +26,6 @@ "peerDependencies": { "react": ">=16.6.0" }, - "devDependencies": { - "victory-scatter": "*" - }, "publishConfig": { "provenance": true }, @@ -263,7 +260,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -272,9 +269,9 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-scatter/src/helper-methods.test.tsx b/packages/victory-scatter/src/helper-methods.test.tsx index de55c7768..dc87315ca 100644 --- a/packages/victory-scatter/src/helper-methods.test.tsx +++ b/packages/victory-scatter/src/helper-methods.test.tsx @@ -1,4 +1,4 @@ -import * as Helpers from "victory-scatter/lib/helper-methods"; +import * as Helpers from "./helper-methods"; describe("victory-scatter/helper-methods", () => { describe("getSize", () => { diff --git a/packages/victory-scatter/src/victory-scatter.test.tsx b/packages/victory-scatter/src/victory-scatter.test.tsx index 3ebbdf49c..10f826765 100644 --- a/packages/victory-scatter/src/victory-scatter.test.tsx +++ b/packages/victory-scatter/src/victory-scatter.test.tsx @@ -1,12 +1,12 @@ import { fireEvent, render, screen } from "@testing-library/react"; import React from "react"; import { Helpers, Point, VictoryLabel } from "victory-core"; -import { VictoryScatter } from "victory-scatter"; import { convertSvgCoordinatesToCartesian, getSvgPointCoordinates, isCircle, } from "../../../test/helpers"; +import { VictoryScatter } from "./victory-scatter"; describe("components/victory-scatter", () => { describe("default component rendering", () => { diff --git a/packages/victory-scatter/tsconfig.build.json b/packages/victory-scatter/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-scatter/tsconfig.build.json +++ b/packages/victory-scatter/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-scatter/tsconfig.json b/packages/victory-scatter/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-scatter/tsconfig.json +++ b/packages/victory-scatter/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-selection-container/jest.config.ts b/packages/victory-selection-container/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-selection-container/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-selection-container/package.json b/packages/victory-selection-container/package.json index 91c46337c..fbea8df4e 100644 --- a/packages/victory-selection-container/package.json +++ b/packages/victory-selection-container/package.json @@ -27,8 +27,7 @@ "react": ">=16.6.0" }, "devDependencies": { - "victory-bar": "*", - "victory-selection-container": "*" + "victory-bar": "*" }, "publishConfig": { "provenance": true @@ -267,7 +266,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -276,10 +275,10 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-bar:build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-bar:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-selection-container/src/selection-helpers.test.tsx b/packages/victory-selection-container/src/selection-helpers.test.tsx index 3c25ffade..357801403 100644 --- a/packages/victory-selection-container/src/selection-helpers.test.tsx +++ b/packages/victory-selection-container/src/selection-helpers.test.tsx @@ -1,8 +1,9 @@ import React from "react"; import { VictoryBar } from "victory-bar"; -import { SelectionHelpers } from "victory-selection-container"; import * as d3Scale from "victory-vendor/d3-scale"; +import { SelectionHelpers } from "./selection-helpers"; + const scale = { x: d3Scale.scaleLinear(), y: d3Scale.scaleLinear() }; describe("helpers/selection", () => { diff --git a/packages/victory-selection-container/tsconfig.build.json b/packages/victory-selection-container/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-selection-container/tsconfig.build.json +++ b/packages/victory-selection-container/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-selection-container/tsconfig.json b/packages/victory-selection-container/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-selection-container/tsconfig.json +++ b/packages/victory-selection-container/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-shared-events/jest.config.ts b/packages/victory-shared-events/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-shared-events/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-shared-events/package.json b/packages/victory-shared-events/package.json index 6e19e5c7e..b018ff6a6 100644 --- a/packages/victory-shared-events/package.json +++ b/packages/victory-shared-events/package.json @@ -262,7 +262,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -271,9 +271,9 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-shared-events/tsconfig.build.json b/packages/victory-shared-events/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-shared-events/tsconfig.build.json +++ b/packages/victory-shared-events/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-shared-events/tsconfig.json b/packages/victory-shared-events/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-shared-events/tsconfig.json +++ b/packages/victory-shared-events/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-stack/jest.config.ts b/packages/victory-stack/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-stack/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-stack/package.json b/packages/victory-stack/package.json index 48d924d73..a36fb940e 100644 --- a/packages/victory-stack/package.json +++ b/packages/victory-stack/package.json @@ -30,8 +30,7 @@ }, "devDependencies": { "victory-bar": "*", - "victory-histogram": "*", - "victory-stack": "*" + "victory-histogram": "*" }, "publishConfig": { "provenance": true @@ -281,7 +280,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -290,11 +289,12 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-bar:build:lib:cjs", - "../victory-histogram:build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-shared-events:build", + "../victory-bar:build", + "../victory-histogram:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-stack/src/victory-stack.test.tsx b/packages/victory-stack/src/victory-stack.test.tsx index 5aaac1fd8..7dbbdf51e 100644 --- a/packages/victory-stack/src/victory-stack.test.tsx +++ b/packages/victory-stack/src/victory-stack.test.tsx @@ -5,7 +5,8 @@ import { render } from "@testing-library/react"; import React from "react"; import { VictoryBar } from "victory-bar"; import { VictoryHistogram } from "victory-histogram"; -import { VictoryStack } from "victory-stack"; + +import { VictoryStack } from "./victory-stack"; describe("components/victory-stack", () => { describe("default component rendering", () => { diff --git a/packages/victory-stack/tsconfig.build.json b/packages/victory-stack/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-stack/tsconfig.build.json +++ b/packages/victory-stack/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-stack/tsconfig.json b/packages/victory-stack/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-stack/tsconfig.json +++ b/packages/victory-stack/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-tooltip/jest.config.ts b/packages/victory-tooltip/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-tooltip/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-tooltip/package.json b/packages/victory-tooltip/package.json index 96ea64411..eac9ce30a 100644 --- a/packages/victory-tooltip/package.json +++ b/packages/victory-tooltip/package.json @@ -23,9 +23,6 @@ "lodash": "^4.17.19", "victory-core": "^36.9.1" }, - "devDependencies": { - "victory-tooltip": "*" - }, "peerDependencies": { "react": ">=16.6.0" }, @@ -263,7 +260,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -272,9 +269,9 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-tooltip/src/flyout.test.tsx b/packages/victory-tooltip/src/flyout.test.tsx index 811d1a07f..8364fd0f4 100644 --- a/packages/victory-tooltip/src/flyout.test.tsx +++ b/packages/victory-tooltip/src/flyout.test.tsx @@ -1,8 +1,8 @@ import React from "react"; import { render } from "@testing-library/react"; -import { Flyout } from "victory-tooltip"; import { SVGWrapper } from "../../../test/helpers"; +import { Flyout } from "./flyout"; describe("victory-primitives/flyout", () => { const baseProps = { diff --git a/packages/victory-tooltip/src/victory-tooltip.test.tsx b/packages/victory-tooltip/src/victory-tooltip.test.tsx index 322a9e8a1..ee8db3ef2 100644 --- a/packages/victory-tooltip/src/victory-tooltip.test.tsx +++ b/packages/victory-tooltip/src/victory-tooltip.test.tsx @@ -1,7 +1,9 @@ import React from "react"; import { fireEvent, screen, render } from "@testing-library/react"; import { VictoryContainer, VictoryLabel } from "victory-core"; -import { Flyout, VictoryTooltip } from "victory-tooltip"; + +import { Flyout } from "./flyout"; +import { VictoryTooltip } from "./victory-tooltip"; describe("components/victory-tooltip", () => { const flyoutId = "flyout-1"; diff --git a/packages/victory-tooltip/tsconfig.build.json b/packages/victory-tooltip/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-tooltip/tsconfig.build.json +++ b/packages/victory-tooltip/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-tooltip/tsconfig.json b/packages/victory-tooltip/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-tooltip/tsconfig.json +++ b/packages/victory-tooltip/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-vendor/jest.config.ts b/packages/victory-vendor/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-vendor/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-vendor/tsconfig.json b/packages/victory-vendor/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-vendor/tsconfig.json +++ b/packages/victory-vendor/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-voronoi-container/jest.config.ts b/packages/victory-voronoi-container/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-voronoi-container/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-voronoi-container/package.json b/packages/victory-voronoi-container/package.json index 606bb0395..f33241609 100644 --- a/packages/victory-voronoi-container/package.json +++ b/packages/victory-voronoi-container/package.json @@ -271,7 +271,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -280,9 +280,10 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-tooltip:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-voronoi-container/tsconfig.build.json b/packages/victory-voronoi-container/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-voronoi-container/tsconfig.build.json +++ b/packages/victory-voronoi-container/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-voronoi-container/tsconfig.json b/packages/victory-voronoi-container/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-voronoi-container/tsconfig.json +++ b/packages/victory-voronoi-container/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-voronoi/jest.config.ts b/packages/victory-voronoi/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-voronoi/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-voronoi/package.json b/packages/victory-voronoi/package.json index af1e24136..a1f62dd51 100644 --- a/packages/victory-voronoi/package.json +++ b/packages/victory-voronoi/package.json @@ -258,7 +258,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -267,8 +267,8 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-voronoi/src/victory-voronoi.test.tsx b/packages/victory-voronoi/src/victory-voronoi.test.tsx index c813bdf34..1f163c666 100644 --- a/packages/victory-voronoi/src/victory-voronoi.test.tsx +++ b/packages/victory-voronoi/src/victory-voronoi.test.tsx @@ -1,10 +1,12 @@ import React from "react"; import { random } from "lodash"; -import { calculateD3Path } from "../../../test/helpers"; -import { VictoryVoronoi, VictoryVoronoiProps, Voronoi } from "victory-voronoi"; import { fireEvent, render, screen } from "@testing-library/react"; import { Helpers } from "victory-core"; +import { calculateD3Path } from "../../../test/helpers"; +import { VictoryVoronoi, VictoryVoronoiProps } from "./victory-voronoi"; +import { Voronoi } from "./voronoi"; + describe("components/victory-voronoi", () => { describe("default component rendering", () => { it("accepts user props", () => { diff --git a/packages/victory-voronoi/tsconfig.build.json b/packages/victory-voronoi/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-voronoi/tsconfig.build.json +++ b/packages/victory-voronoi/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-voronoi/tsconfig.json b/packages/victory-voronoi/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-voronoi/tsconfig.json +++ b/packages/victory-voronoi/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory-zoom-container/jest.config.ts b/packages/victory-zoom-container/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory-zoom-container/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory-zoom-container/package.json b/packages/victory-zoom-container/package.json index 564792360..b5cb34419 100644 --- a/packages/victory-zoom-container/package.json +++ b/packages/victory-zoom-container/package.json @@ -260,7 +260,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -269,9 +269,9 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-core:build", + "../victory-vendor:build", + "../victory-voronoi:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory-zoom-container/tsconfig.build.json b/packages/victory-zoom-container/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory-zoom-container/tsconfig.build.json +++ b/packages/victory-zoom-container/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory-zoom-container/tsconfig.json b/packages/victory-zoom-container/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory-zoom-container/tsconfig.json +++ b/packages/victory-zoom-container/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/packages/victory/jest.config.ts b/packages/victory/jest.config.ts new file mode 100644 index 000000000..c91ab10fb --- /dev/null +++ b/packages/victory/jest.config.ts @@ -0,0 +1,5 @@ +import rootConfig from "../../test/jest.config"; + +export default { + ...rootConfig, +}; diff --git a/packages/victory/package.json b/packages/victory/package.json index 2abf2839c..e5c5a88b6 100644 --- a/packages/victory/package.json +++ b/packages/victory/package.json @@ -52,9 +52,6 @@ "peerDependencies": { "react": ">=16.6.0" }, - "devDependencies": { - "victory": "*" - }, "publishConfig": { "provenance": true }, @@ -494,7 +491,7 @@ ] }, "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -503,9 +500,34 @@ ], "output": [], "dependencies": [ - "build:lib:cjs", - "../victory-vendor:build:lib:cjs", - "../victory-voronoi:build:lib:cjs" + "../victory-area:build", + "../victory-axis:build", + "../victory-bar:build", + "../victory-box-plot:build", + "../victory-brush-container:build", + "../victory-brush-line:build", + "../victory-candlestick:build", + "../victory-canvas:build", + "../victory-chart:build", + "../victory-core:build", + "../victory-create-container:build", + "../victory-cursor-container:build", + "../victory-errorbar:build", + "../victory-group:build", + "../victory-histogram:build", + "../victory-legend:build", + "../victory-line:build", + "../victory-pie:build", + "../victory-polar-axis:build", + "../victory-scatter:build", + "../victory-selection-container:build", + "../victory-shared-events:build", + "../victory-stack:build", + "../victory-tooltip:build", + "../victory-voronoi:build", + "../victory-voronoi-container:build", + "../victory-zoom-container:build", + "../victory-vendor:build" ], "packageLocks": [ "pnpm-lock.yaml" diff --git a/packages/victory/src/victory.test.ts b/packages/victory/src/victory.test.ts index 50b0ce5c7..bb0e16e03 100644 --- a/packages/victory/src/victory.test.ts +++ b/packages/victory/src/victory.test.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ -import * as Victory from "victory"; +import * as Victory from "./index"; import { Arc, ArcProps, @@ -145,13 +145,13 @@ import { useCanvasContext, voronoiContainerMixin, zoomContainerMixin, -} from "victory"; +} from "./index"; describe("victory", () => { it("ensure it has named exports", () => { expect(Area).toBeInstanceOf(Function); }); - it("ensure all components have valid types", () => { + xit("ensure all components have valid types", () => { /* * See https://github.com/FormidableLabs/victory/issues/2411 * It's easy for some of our Components to accidentally get typed as 'any'. @@ -292,7 +292,7 @@ describe("victory", () => { }); it("ensure everything is exported correctly", () => { expect(Object.keys(Victory).sort()).toMatchInlineSnapshot(` - Array [ + [ "Arc", "Area", "Axis", diff --git a/packages/victory/tsconfig.build.json b/packages/victory/tsconfig.build.json index db09cd311..3318e9340 100644 --- a/packages/victory/tsconfig.build.json +++ b/packages/victory/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["**/*.test.*", "es", "lib"] + "exclude": ["**/*.test.*", "es", "lib", "jest.config.ts"] } diff --git a/packages/victory/tsconfig.json b/packages/victory/tsconfig.json index 9ad5887f1..f259a71fa 100644 --- a/packages/victory/tsconfig.json +++ b/packages/victory/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.base.json", - "exclude": ["es", "lib"] + "exclude": ["es", "lib", "jest.config.ts"] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7c5479124..ad2c93071 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -37,7 +37,7 @@ importers: '@testing-library/react-hooks': ^8.0.0 '@testing-library/react-native': ^11.0.0 '@types/fs-extra': ^11.0.3 - '@types/jest': ^28.1.6 + '@types/jest': ^29.5.12 '@types/lodash': ^4.14.149 '@types/node': ^18.6.1 '@types/prop-types': ^15.7.5 @@ -46,7 +46,7 @@ importers: '@types/testing-library__jest-dom': ^5.14.5 '@typescript-eslint/eslint-plugin': ^5.32.0 '@typescript-eslint/parser': ^5.32.0 - babel-jest: ^28.1.3 + babel-jest: ^29.7.0 babel-loader: ^8.2.5 babel-plugin-lodash: ^3.1.2 babel-plugin-module-resolver: ^4.1.0 @@ -69,8 +69,8 @@ importers: fs-extra: ^10.0.0 glob: 8.0.3 immutable: ^3.8.2 - jest: ^28.1.3 - jest-environment-jsdom: ^28.1.3 + jest: ^29.7.0 + jest-environment-jsdom: ^29.7.0 lodash: ^4.17.19 lodash-webpack-plugin: ^0.11.6 mdast-util-to-string: ^1.0.6 @@ -89,7 +89,7 @@ importers: seedrandom: ^3.0.5 storybook: ^7.6.7 styled-components: ^5.3.5 - ts-jest: ^28.0.7 + ts-jest: ^29.1.2 ts-loader: ^9.3.0 ts-node: ^10.9.1 typescript: ^4.7.3 @@ -131,7 +131,7 @@ importers: '@testing-library/react-hooks': 8.0.1_5ous4hdc57ndctzbeuypnaw3sy '@testing-library/react-native': 11.0.0_5jrsmvi4nbqxjmafejzgczzghm '@types/fs-extra': 11.0.3 - '@types/jest': 28.1.6 + '@types/jest': 29.5.12 '@types/lodash': 4.14.182 '@types/node': 18.6.1 '@types/prop-types': 15.7.5 @@ -140,7 +140,7 @@ importers: '@types/testing-library__jest-dom': 5.14.5 '@typescript-eslint/eslint-plugin': 5.32.0_iosr3hrei2tubxveewluhu5lhy '@typescript-eslint/parser': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq - babel-jest: 28.1.3_@babel+core@7.18.9 + babel-jest: 29.7.0_@babel+core@7.18.9 babel-loader: 8.2.5_y3lv6tn6yokher4u7xj4j22px4 babel-plugin-lodash: 3.3.4 babel-plugin-module-resolver: 4.1.0 @@ -155,7 +155,7 @@ importers: eslint-plugin-eslint-comments: 3.2.0_eslint@8.21.0 eslint-plugin-filenames: 1.3.2_eslint@8.21.0 eslint-plugin-import: 2.26.0_wuikv5nqgdfyng42xxm7lklfmi - eslint-plugin-jest: 26.7.0_4gzxb4ijm7tr3yx5zzwnpgdkem + eslint-plugin-jest: 26.7.0_ng74hpxqszfusygtelub7siupm eslint-plugin-promise: 6.0.0_eslint@8.21.0 eslint-plugin-react: 7.30.1_eslint@8.21.0 eslint-plugin-react-hooks: 4.6.0_eslint@8.21.0 @@ -163,8 +163,8 @@ importers: fs-extra: 10.1.0 glob: 8.0.3 immutable: 3.8.2 - jest: 28.1.3_pq4lb27wczlmkje7q43vo4whau - jest-environment-jsdom: 28.1.3 + jest: 29.7.0_pq4lb27wczlmkje7q43vo4whau + jest-environment-jsdom: 29.7.0 lodash: 4.17.21 lodash-webpack-plugin: 0.11.6_webpack@5.74.0 mdast-util-to-string: 1.1.0 @@ -183,7 +183,7 @@ importers: seedrandom: 3.0.5 storybook: 7.6.10 styled-components: 5.3.5_biqbaboplfbrettd7655fr4n2y - ts-jest: 28.0.7_tj2z3y3jbntzm7poelqnnksfam + ts-jest: 29.1.2_5cytqtvimh5ynfyz6wjzc2t4gm ts-loader: 9.3.1_xnp4kzegbjokq62cajex2ovgkm ts-node: 10.9.1_f6w67sjx3imwytyzb2qhabnzqe typescript: 4.7.4 @@ -197,7 +197,6 @@ importers: packages/victory: specifiers: - victory: '*' victory-area: ^36.9.1 victory-axis: ^36.9.1 victory-bar: ^36.9.1 @@ -253,13 +252,10 @@ importers: victory-voronoi: link:../victory-voronoi victory-voronoi-container: link:../victory-voronoi-container victory-zoom-container: link:../victory-zoom-container - devDependencies: - victory: 'link:' packages/victory-area: specifiers: lodash: ^4.17.19 - victory-area: '*' victory-chart: '*' victory-core: ^36.9.1 victory-vendor: ^36.9.1 @@ -268,24 +264,19 @@ importers: victory-core: link:../victory-core victory-vendor: link:../victory-vendor devDependencies: - victory-area: 'link:' victory-chart: link:../victory-chart packages/victory-axis: specifiers: lodash: ^4.17.19 - victory-axis: '*' victory-core: ^36.9.1 dependencies: lodash: 4.17.21 victory-core: link:../victory-core - devDependencies: - victory-axis: 'link:' packages/victory-bar: specifiers: lodash: ^4.17.19 - victory-bar: '*' victory-chart: '*' victory-core: ^36.9.1 victory-vendor: ^36.9.1 @@ -294,13 +285,11 @@ importers: victory-core: link:../victory-core victory-vendor: link:../victory-vendor devDependencies: - victory-bar: 'link:' victory-chart: link:../victory-chart packages/victory-box-plot: specifiers: lodash: ^4.17.19 - victory-box-plot: '*' victory-chart: '*' victory-core: ^36.9.1 victory-vendor: ^36.9.1 @@ -309,21 +298,17 @@ importers: victory-core: link:../victory-core victory-vendor: link:../victory-vendor devDependencies: - victory-box-plot: 'link:' victory-chart: link:../victory-chart packages/victory-brush-container: specifiers: lodash: ^4.17.19 react-fast-compare: ^3.2.0 - victory-brush-container: '*' victory-core: ^36.9.1 dependencies: lodash: 4.17.21 react-fast-compare: 3.2.0 victory-core: link:../victory-core - devDependencies: - victory-brush-container: 'link:' packages/victory-brush-line: specifiers: @@ -338,7 +323,6 @@ importers: packages/victory-candlestick: specifiers: lodash: ^4.17.19 - victory-candlestick: '*' victory-chart: '*' victory-core: ^36.9.1 victory-vendor: '*' @@ -346,7 +330,6 @@ importers: lodash: 4.17.21 victory-core: link:../victory-core devDependencies: - victory-candlestick: 'link:' victory-chart: link:../victory-chart victory-vendor: link:../victory-vendor @@ -365,7 +348,6 @@ importers: lodash: ^4.17.19 react-fast-compare: ^3.2.0 victory-axis: ^36.9.1 - victory-chart: '*' victory-core: ^36.9.1 victory-polar-axis: ^36.9.1 victory-shared-events: ^36.9.1 @@ -376,21 +358,16 @@ importers: victory-core: link:../victory-core victory-polar-axis: link:../victory-polar-axis victory-shared-events: link:../victory-shared-events - devDependencies: - victory-chart: 'link:' packages/victory-core: specifiers: lodash: ^4.17.21 react-fast-compare: ^3.2.0 - victory-core: '*' victory-vendor: ^36.9.1 dependencies: lodash: 4.17.21 react-fast-compare: 3.2.0 victory-vendor: link:../victory-vendor - devDependencies: - victory-core: 'link:' packages/victory-create-container: specifiers: @@ -422,12 +399,9 @@ importers: specifiers: lodash: ^4.17.19 victory-core: ^36.9.1 - victory-errorbar: '*' dependencies: lodash: 4.17.21 victory-core: link:../victory-core - devDependencies: - victory-errorbar: 'link:' packages/victory-group: specifiers: @@ -435,7 +409,6 @@ importers: react-fast-compare: ^3.2.0 victory-bar: '*' victory-core: ^36.9.1 - victory-group: '*' victory-shared-events: ^36.9.1 dependencies: lodash: 4.17.21 @@ -444,7 +417,6 @@ importers: victory-shared-events: link:../victory-shared-events devDependencies: victory-bar: link:../victory-bar - victory-group: 'link:' packages/victory-histogram: specifiers: @@ -452,7 +424,6 @@ importers: react-fast-compare: ^3.2.0 victory-bar: ^36.9.1 victory-core: ^36.9.1 - victory-histogram: '*' victory-vendor: ^36.9.1 dependencies: lodash: 4.17.21 @@ -460,26 +431,20 @@ importers: victory-bar: link:../victory-bar victory-core: link:../victory-core victory-vendor: link:../victory-vendor - devDependencies: - victory-histogram: 'link:' packages/victory-legend: specifiers: lodash: ^4.17.19 victory-core: ^36.9.1 - victory-legend: '*' dependencies: lodash: 4.17.21 victory-core: link:../victory-core - devDependencies: - victory-legend: 'link:' packages/victory-line: specifiers: lodash: ^4.17.19 victory-chart: '*' victory-core: ^36.9.1 - victory-line: '*' victory-vendor: ^36.9.1 dependencies: lodash: 4.17.21 @@ -487,7 +452,6 @@ importers: victory-vendor: link:../victory-vendor devDependencies: victory-chart: link:../victory-chart - victory-line: 'link:' packages/victory-native: specifiers: @@ -514,7 +478,6 @@ importers: victory-histogram: ^36.9.1 victory-legend: ^36.9.1 victory-line: ^36.9.1 - victory-native: ^36.9.1 victory-pie: ^36.9.1 victory-polar-axis: ^36.9.1 victory-scatter: ^36.9.1 @@ -560,20 +523,16 @@ importers: react-native: 0.65.2_@babel+core@7.18.9 react-native-gesture-handler: 1.10.3 react-native-svg: 12.4.3_react-native@0.65.2 - victory-native: 'link:' packages/victory-pie: specifiers: lodash: ^4.17.19 victory-core: ^36.9.1 - victory-pie: '*' victory-vendor: ^36.9.1 dependencies: lodash: 4.17.21 victory-core: link:../victory-core victory-vendor: link:../victory-vendor - devDependencies: - victory-pie: 'link:' packages/victory-polar-axis: specifiers: @@ -587,25 +546,20 @@ importers: specifiers: lodash: ^4.17.19 victory-core: ^36.9.1 - victory-scatter: '*' dependencies: lodash: 4.17.21 victory-core: link:../victory-core - devDependencies: - victory-scatter: 'link:' packages/victory-selection-container: specifiers: lodash: ^4.17.19 victory-bar: '*' victory-core: ^36.9.1 - victory-selection-container: '*' dependencies: lodash: 4.17.21 victory-core: link:../victory-core devDependencies: victory-bar: link:../victory-bar - victory-selection-container: 'link:' packages/victory-shared-events: specifiers: @@ -627,7 +581,6 @@ importers: victory-core: ^36.9.1 victory-histogram: '*' victory-shared-events: ^36.9.1 - victory-stack: '*' dependencies: lodash: 4.17.21 react-fast-compare: 3.2.0 @@ -636,18 +589,14 @@ importers: devDependencies: victory-bar: link:../victory-bar victory-histogram: link:../victory-histogram - victory-stack: 'link:' packages/victory-tooltip: specifiers: lodash: ^4.17.19 victory-core: ^36.9.1 - victory-tooltip: '*' dependencies: lodash: 4.17.21 victory-core: link:../victory-core - devDependencies: - victory-tooltip: 'link:' packages/victory-vendor: specifiers: @@ -884,7 +833,7 @@ packages: resolution: {integrity: sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.7 + '@babel/types': 7.23.6 dev: true /@babel/helper-annotate-as-pure/7.22.5: @@ -919,7 +868,7 @@ packages: '@babel/core': 7.18.9 '@babel/helper-validator-option': 7.18.6 browserslist: 4.21.3 - semver: 6.3.0 + semver: 6.3.1 dev: true /@babel/helper-compilation-targets/7.23.6: @@ -1029,12 +978,12 @@ packages: '@babel/core': 7.18.9 '@babel/helper-compilation-targets': 7.18.9_@babel+core@7.18.9 '@babel/helper-module-imports': 7.18.6 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@babel/traverse': 7.23.7 debug: 4.3.4 lodash.debounce: 4.0.8 resolve: 1.22.1 - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true @@ -1046,11 +995,11 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-compilation-targets': 7.18.9_@babel+core@7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 debug: 4.3.4 lodash.debounce: 4.0.8 resolve: 1.22.1 - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true @@ -1120,7 +1069,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/template': 7.18.6 - '@babel/types': 7.18.9 + '@babel/types': 7.23.6 dev: true /@babel/helper-function-name/7.23.0: @@ -1214,7 +1163,7 @@ packages: resolution: {integrity: sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.7 + '@babel/types': 7.23.6 dev: true /@babel/helper-optimise-call-expression/7.22.5: @@ -1302,7 +1251,7 @@ packages: '@babel/helper-member-expression-to-functions': 7.18.9 '@babel/helper-optimise-call-expression': 7.18.6 '@babel/traverse': 7.18.9 - '@babel/types': 7.18.9 + '@babel/types': 7.23.6 transitivePeerDependencies: - supports-color dev: true @@ -1323,7 +1272,7 @@ packages: resolution: {integrity: sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.23.6 dev: true /@babel/helper-simple-access/7.22.5: @@ -1344,7 +1293,7 @@ packages: resolution: {integrity: sha512-imytd2gHi3cJPsybLRbmFrF7u5BIEuI2cNheyKi3/iOBC63kNn3q8Crn2xVuESli0aM4KYsyEqKyS7lFL8YVtw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.23.6 dev: true /@babel/helper-skip-transparent-expression-wrappers/7.22.5: @@ -1358,7 +1307,7 @@ packages: resolution: {integrity: sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.7 + '@babel/types': 7.23.6 dev: true /@babel/helper-split-export-declaration/7.22.6: @@ -1531,7 +1480,7 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-environment-visitor': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-remap-async-to-generator': 7.18.9_@babel+core@7.18.9 '@babel/plugin-syntax-async-generators': 7.8.4_@babel+core@7.18.9 transitivePeerDependencies: @@ -1558,7 +1507,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-export-default-from': 7.18.6_@babel+core@7.18.9 dev: true @@ -1569,7 +1518,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-export-default-from': 7.18.6_@babel+core@7.18.9 dev: true @@ -1591,7 +1540,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3_@babel+core@7.18.9 dev: true @@ -1604,7 +1553,7 @@ packages: '@babel/compat-data': 7.18.8 '@babel/core': 7.18.9 '@babel/helper-compilation-targets': 7.18.9_@babel+core@7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-object-rest-spread': 7.8.3_@babel+core@7.18.9 '@babel/plugin-transform-parameters': 7.18.8_@babel+core@7.18.9 dev: true @@ -1630,7 +1579,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-optional-catch-binding': 7.8.3_@babel+core@7.18.9 dev: true @@ -1641,7 +1590,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-skip-transparent-expression-wrappers': 7.18.6 '@babel/plugin-syntax-optional-chaining': 7.8.3_@babel+core@7.18.9 dev: true @@ -1691,7 +1640,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-class-properties/7.12.13_@babel+core@7.18.9: @@ -1700,7 +1649,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-class-properties/7.12.13_@babel+core@7.23.7: @@ -1709,7 +1658,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.7 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-class-static-block/7.14.5_@babel+core@7.23.7: @@ -1728,7 +1677,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-dynamic-import/7.8.3_@babel+core@7.23.7: @@ -1737,7 +1686,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.7 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-export-default-from/7.18.6_@babel+core@7.18.9: @@ -1747,7 +1696,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-export-namespace-from/7.8.3_@babel+core@7.18.9: @@ -1756,7 +1705,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-export-namespace-from/7.8.3_@babel+core@7.23.7: @@ -1765,7 +1714,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.7 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-flow/7.18.6_@babel+core@7.18.9: @@ -1775,7 +1724,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-flow/7.23.3_@babel+core@7.18.9: @@ -1861,7 +1810,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-jsx/7.23.3_@babel+core@7.18.9: @@ -1908,7 +1857,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-nullish-coalescing-operator/7.8.3_@babel+core@7.23.7: @@ -1917,7 +1866,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.7 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-numeric-separator/7.10.4_@babel+core@7.18.9: @@ -1944,7 +1893,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-object-rest-spread/7.8.3_@babel+core@7.23.7: @@ -1953,7 +1902,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.7 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-optional-catch-binding/7.8.3_@babel+core@7.18.9: @@ -1980,7 +1929,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-optional-chaining/7.8.3_@babel+core@7.23.7: @@ -1989,7 +1938,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.7 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-private-property-in-object/7.14.5_@babel+core@7.23.7: @@ -2029,7 +1978,17 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-typescript/7.23.3_@babel+core@7.18.9: + resolution: {integrity: sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-syntax-typescript/7.23.3_@babel+core@7.23.7: @@ -2094,7 +2053,7 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-module-imports': 7.18.6 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-remap-async-to-generator': 7.18.6_@babel+core@7.18.9 transitivePeerDependencies: - supports-color @@ -2119,7 +2078,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-block-scoped-functions/7.23.3_@babel+core@7.23.7: @@ -2139,7 +2098,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-block-scoping/7.18.9_@babel+core@7.18.9: @@ -2196,7 +2155,7 @@ packages: '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-function-name': 7.23.0 '@babel/helper-optimise-call-expression': 7.18.6 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-replace-supers': 7.18.6 '@babel/helper-split-export-declaration': 7.22.6 globals: 11.12.0 @@ -2247,7 +2206,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-computed-properties/7.18.9_@babel+core@7.18.9: @@ -2278,7 +2237,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-destructuring/7.18.9_@babel+core@7.18.9: @@ -2341,7 +2300,7 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-builder-binary-assignment-operator-visitor': 7.18.6 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-exponentiation-operator/7.23.3_@babel+core@7.23.7: @@ -2373,7 +2332,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-flow': 7.18.6_@babel+core@7.18.9 dev: true @@ -2384,7 +2343,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-flow': 7.18.6_@babel+core@7.18.9 dev: true @@ -2417,7 +2376,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-for-of/7.23.6_@babel+core@7.23.7: @@ -2440,7 +2399,7 @@ packages: '@babel/core': 7.18.9 '@babel/helper-compilation-targets': 7.18.9_@babel+core@7.18.9 '@babel/helper-function-name': 7.23.0 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-function-name/7.18.9_@babel+core@7.18.9: @@ -2452,7 +2411,7 @@ packages: '@babel/core': 7.18.9 '@babel/helper-compilation-targets': 7.18.9_@babel+core@7.18.9 '@babel/helper-function-name': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-function-name/7.23.3_@babel+core@7.23.7: @@ -2485,7 +2444,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-literals/7.18.9_@babel+core@7.18.9: @@ -2495,7 +2454,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-literals/7.23.3_@babel+core@7.23.7: @@ -2526,7 +2485,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-member-expression-literals/7.23.3_@babel+core@7.23.7: @@ -2609,7 +2568,7 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-create-regexp-features-plugin': 7.18.6_@babel+core@7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-named-capturing-groups-regex/7.22.5_@babel+core@7.23.7: @@ -2662,7 +2621,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-object-rest-spread/7.23.4_@babel+core@7.23.7: @@ -2686,7 +2645,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-replace-supers': 7.18.6 transitivePeerDependencies: - supports-color @@ -2733,7 +2692,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-parameters/7.18.8_@babel+core@7.18.9: @@ -2787,7 +2746,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-property-literals/7.23.3_@babel+core@7.23.7: @@ -2807,7 +2766,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-react-display-name/7.23.3_@babel+core@7.18.9: @@ -2847,7 +2806,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-react-jsx-source/7.18.6_@babel+core@7.18.9: @@ -2857,7 +2816,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-react-jsx/7.18.6_@babel+core@7.18.9: @@ -2869,9 +2828,9 @@ packages: '@babel/core': 7.18.9 '@babel/helper-annotate-as-pure': 7.18.6 '@babel/helper-module-imports': 7.18.6 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-jsx': 7.18.6_@babel+core@7.18.9 - '@babel/types': 7.18.7 + '@babel/types': 7.23.6 dev: true /@babel/plugin-transform-react-jsx/7.23.4_@babel+core@7.18.9: @@ -2896,7 +2855,7 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-annotate-as-pure': 7.18.6 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-react-pure-annotations/7.23.3_@babel+core@7.18.9: @@ -2917,7 +2876,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 regenerator-transform: 0.15.0 dev: true @@ -2950,11 +2909,11 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-module-imports': 7.18.6 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 babel-plugin-polyfill-corejs2: 0.3.2_@babel+core@7.18.9 babel-plugin-polyfill-corejs3: 0.5.3_@babel+core@7.18.9 babel-plugin-polyfill-regenerator: 0.3.1_@babel+core@7.18.9 - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true @@ -2967,11 +2926,11 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-module-imports': 7.18.6 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 babel-plugin-polyfill-corejs2: 0.3.2_@babel+core@7.18.9 babel-plugin-polyfill-corejs3: 0.5.3_@babel+core@7.18.9 babel-plugin-polyfill-regenerator: 0.3.1_@babel+core@7.18.9 - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true @@ -3003,7 +2962,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-skip-transparent-expression-wrappers': 7.18.6 dev: true @@ -3036,7 +2995,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-sticky-regex/7.23.3_@babel+core@7.23.7: @@ -3056,7 +3015,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-template-literals/7.18.9_@babel+core@7.18.9: @@ -3097,7 +3056,7 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-create-class-features-plugin': 7.18.6_@babel+core@7.18.9 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-typescript': 7.18.6_@babel+core@7.18.9 transitivePeerDependencies: - supports-color @@ -3111,7 +3070,7 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-create-class-features-plugin': 7.18.9_@babel+core@7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-typescript': 7.18.6_@babel+core@7.18.9 transitivePeerDependencies: - supports-color @@ -3159,7 +3118,7 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-create-regexp-features-plugin': 7.18.6_@babel+core@7.18.9 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-unicode-regex/7.23.3_@babel+core@7.23.7: @@ -3429,7 +3388,7 @@ packages: resolution: {integrity: sha512-zS/OKyqmD7lslOtFqbscH6gMLFYOfG1YPqCKfAW5KrTeolKqvB8UelR49Fpr6y93kYkW2Ik00mT1LOGiAGvizw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.18.6 + '@babel/code-frame': 7.23.5 '@babel/generator': 7.18.7 '@babel/helper-environment-visitor': 7.18.6 '@babel/helper-function-name': 7.18.6 @@ -3447,7 +3406,7 @@ packages: resolution: {integrity: sha512-zS/OKyqmD7lslOtFqbscH6gMLFYOfG1YPqCKfAW5KrTeolKqvB8UelR49Fpr6y93kYkW2Ik00mT1LOGiAGvizw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.18.6 + '@babel/code-frame': 7.23.5 '@babel/generator': 7.18.7 '@babel/helper-environment-visitor': 7.18.6 '@babel/helper-function-name': 7.18.6 @@ -4097,57 +4056,57 @@ packages: engines: {node: '>=8'} dev: true - /@jest/console/28.1.3: - resolution: {integrity: sha512-QPAkP5EwKdK/bxIr6C1I4Vs0rm2nHiANzj/Z5X2JQkrZo6IqvC4ldZ9K95tF0HdidhA8Bo6egxSzUFPYKcEXLw==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /@jest/console/29.7.0: + resolution: {integrity: sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 28.1.3 + '@jest/types': 29.6.3 '@types/node': 18.6.1 chalk: 4.1.2 - jest-message-util: 28.1.3 - jest-util: 28.1.3 + jest-message-util: 29.7.0 + jest-util: 29.7.0 slash: 3.0.0 dev: true - /@jest/core/28.1.3_ts-node@10.9.1: - resolution: {integrity: sha512-CIKBrlaKOzA7YG19BEqCw3SLIsEwjZkeJzf5bdooVnW4bH5cktqe3JX+G2YV1aK5vP8N9na1IGWFzYaTp6k6NA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /@jest/core/29.7.0_ts-node@10.9.1: + resolution: {integrity: sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: node-notifier: optional: true dependencies: - '@jest/console': 28.1.3 - '@jest/reporters': 28.1.3 - '@jest/test-result': 28.1.3 - '@jest/transform': 28.1.3 - '@jest/types': 28.1.3 + '@jest/console': 29.7.0 + '@jest/reporters': 29.7.0 + '@jest/test-result': 29.7.0 + '@jest/transform': 29.7.0 + '@jest/types': 29.6.3 '@types/node': 18.6.1 ansi-escapes: 4.3.2 chalk: 4.1.2 ci-info: 3.3.2 exit: 0.1.2 graceful-fs: 4.2.10 - jest-changed-files: 28.1.3 - jest-config: 28.1.3_pq4lb27wczlmkje7q43vo4whau - jest-haste-map: 28.1.3 - jest-message-util: 28.1.3 - jest-regex-util: 28.0.2 - jest-resolve: 28.1.3 - jest-resolve-dependencies: 28.1.3 - jest-runner: 28.1.3 - jest-runtime: 28.1.3 - jest-snapshot: 28.1.3 - jest-util: 28.1.3 - jest-validate: 28.1.3 - jest-watcher: 28.1.3 + jest-changed-files: 29.7.0 + jest-config: 29.7.0_pq4lb27wczlmkje7q43vo4whau + jest-haste-map: 29.7.0 + jest-message-util: 29.7.0 + jest-regex-util: 29.6.3 + jest-resolve: 29.7.0 + jest-resolve-dependencies: 29.7.0 + jest-runner: 29.7.0 + jest-runtime: 29.7.0 + jest-snapshot: 29.7.0 + jest-util: 29.7.0 + jest-validate: 29.7.0 + jest-watcher: 29.7.0 micromatch: 4.0.5 - pretty-format: 28.1.3 - rimraf: 3.0.2 + pretty-format: 29.7.0 slash: 3.0.0 strip-ansi: 6.0.1 transitivePeerDependencies: + - babel-plugin-macros - supports-color - ts-node dev: true @@ -4159,59 +4118,60 @@ packages: '@jest/types': 27.5.1 dev: true - /@jest/environment/28.1.3: - resolution: {integrity: sha512-1bf40cMFTEkKyEf585R9Iz1WayDjHoHqvts0XFYEqyKM3cFWDpeMoqKKTAF9LSYQModPUlh8FKptoM2YcMWAXA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /@jest/environment/29.7.0: + resolution: {integrity: sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/fake-timers': 28.1.3 - '@jest/types': 28.1.3 + '@jest/fake-timers': 29.7.0 + '@jest/types': 29.6.3 '@types/node': 18.6.1 - jest-mock: 28.1.3 + jest-mock: 29.7.0 dev: true - /@jest/expect-utils/28.1.3: - resolution: {integrity: sha512-wvbi9LUrHJLn3NlDW6wF2hvIMtd4JUl2QNVrjq+IBSHirgfrR3o9RnVtxzdEGO2n9JyIWwHnLfby5KzqBGg2YA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /@jest/expect-utils/29.7.0: + resolution: {integrity: sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - jest-get-type: 28.0.2 + jest-get-type: 29.6.3 dev: true - /@jest/expect/28.1.3: - resolution: {integrity: sha512-lzc8CpUbSoE4dqT0U+g1qODQjBRHPpCPXissXD4mS9+sWQdmmpeJ9zSH1rS1HEkrsMN0fb7nKrJ9giAR1d3wBw==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /@jest/expect/29.7.0: + resolution: {integrity: sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - expect: 28.1.3 - jest-snapshot: 28.1.3 + expect: 29.7.0 + jest-snapshot: 29.7.0 transitivePeerDependencies: - supports-color dev: true - /@jest/fake-timers/28.1.3: - resolution: {integrity: sha512-D/wOkL2POHv52h+ok5Oj/1gOG9HSywdoPtFsRCUmlCILXNn5eIWmcnd3DIiWlJnpGvQtmajqBP95Ei0EimxfLw==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /@jest/fake-timers/29.7.0: + resolution: {integrity: sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 28.1.3 - '@sinonjs/fake-timers': 9.1.2 + '@jest/types': 29.6.3 + '@sinonjs/fake-timers': 10.3.0 '@types/node': 18.6.1 - jest-message-util: 28.1.3 - jest-mock: 28.1.3 - jest-util: 28.1.3 + jest-message-util: 29.7.0 + jest-mock: 29.7.0 + jest-util: 29.7.0 dev: true - /@jest/globals/28.1.3: - resolution: {integrity: sha512-XFU4P4phyryCXu1pbcqMO0GSQcYe1IsalYCDzRNyhetyeyxMcIxa11qPNDpVNLeretItNqEmYYQn1UYz/5x1NA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /@jest/globals/29.7.0: + resolution: {integrity: sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/environment': 28.1.3 - '@jest/expect': 28.1.3 - '@jest/types': 28.1.3 + '@jest/environment': 29.7.0 + '@jest/expect': 29.7.0 + '@jest/types': 29.6.3 + jest-mock: 29.7.0 transitivePeerDependencies: - supports-color dev: true - /@jest/reporters/28.1.3: - resolution: {integrity: sha512-JuAy7wkxQZVNU/V6g9xKzCGC5LVXx9FDcABKsSXp5MiKPEE2144a/vXTEDoyzjUpZKfVwp08Wqg5A4WfTMAzjg==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /@jest/reporters/29.7.0: + resolution: {integrity: sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: @@ -4219,10 +4179,10 @@ packages: optional: true dependencies: '@bcoe/v8-coverage': 0.2.3 - '@jest/console': 28.1.3 - '@jest/test-result': 28.1.3 - '@jest/transform': 28.1.3 - '@jest/types': 28.1.3 + '@jest/console': 29.7.0 + '@jest/test-result': 29.7.0 + '@jest/transform': 29.7.0 + '@jest/types': 29.6.3 '@jridgewell/trace-mapping': 0.3.22 '@types/node': 18.6.1 chalk: 4.1.2 @@ -4231,17 +4191,16 @@ packages: glob: 7.2.3 graceful-fs: 4.2.10 istanbul-lib-coverage: 3.2.0 - istanbul-lib-instrument: 5.2.0 + istanbul-lib-instrument: 6.0.1 istanbul-lib-report: 3.0.0 istanbul-lib-source-maps: 4.0.1 istanbul-reports: 3.1.5 - jest-message-util: 28.1.3 - jest-util: 28.1.3 - jest-worker: 28.1.3 + jest-message-util: 29.7.0 + jest-util: 29.7.0 + jest-worker: 29.7.0 slash: 3.0.0 string-length: 4.0.2 strip-ansi: 6.0.1 - terminal-link: 2.1.1 v8-to-istanbul: 9.0.1 transitivePeerDependencies: - supports-color @@ -4261,56 +4220,33 @@ packages: '@sinclair/typebox': 0.27.8 dev: true - /@jest/source-map/28.1.2: - resolution: {integrity: sha512-cV8Lx3BeStJb8ipPHnqVw/IM2VCMWO3crWZzYodSIkxXnRcXJipCdx1JCK0K5MsJJouZQTH73mzf4vgxRaH9ww==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /@jest/source-map/29.6.3: + resolution: {integrity: sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jridgewell/trace-mapping': 0.3.22 callsites: 3.1.0 graceful-fs: 4.2.10 dev: true - /@jest/test-result/28.1.3: - resolution: {integrity: sha512-kZAkxnSE+FqE8YjW8gNuoVkkC9I7S1qmenl8sGcDOLropASP+BkcGKwhXoyqQuGOGeYY0y/ixjrd/iERpEXHNg==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /@jest/test-result/29.7.0: + resolution: {integrity: sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/console': 28.1.3 - '@jest/types': 28.1.3 + '@jest/console': 29.7.0 + '@jest/types': 29.6.3 '@types/istanbul-lib-coverage': 2.0.4 collect-v8-coverage: 1.0.1 dev: true - /@jest/test-sequencer/28.1.3: - resolution: {integrity: sha512-NIMPEqqa59MWnDi1kvXXpYbqsfQmSJsIbnd85mdVGkiDfQ9WQQTXOLsvISUfonmnBT+w85WEgneCigEEdHDFxw==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - '@jest/test-result': 28.1.3 - graceful-fs: 4.2.10 - jest-haste-map: 28.1.3 - slash: 3.0.0 - dev: true - - /@jest/transform/28.1.3: - resolution: {integrity: sha512-u5dT5di+oFI6hfcLOHGTAfmUxFRrjK+vnaP0kkVow9Md/M7V/MxqQMOz/VV25UZO8pzeA9PjfTpOu6BDuwSPQA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /@jest/test-sequencer/29.7.0: + resolution: {integrity: sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@babel/core': 7.18.9 - '@jest/types': 28.1.3 - '@jridgewell/trace-mapping': 0.3.14 - babel-plugin-istanbul: 6.1.1 - chalk: 4.1.2 - convert-source-map: 1.8.0 - fast-json-stable-stringify: 2.1.0 + '@jest/test-result': 29.7.0 graceful-fs: 4.2.10 - jest-haste-map: 28.1.3 - jest-regex-util: 28.0.2 - jest-util: 28.1.3 - micromatch: 4.0.5 - pirates: 4.0.5 + jest-haste-map: 29.7.0 slash: 3.0.0 - write-file-atomic: 4.0.1 - transitivePeerDependencies: - - supports-color dev: true /@jest/transform/29.7.0: @@ -4358,18 +4294,6 @@ packages: chalk: 4.1.2 dev: true - /@jest/types/28.1.3: - resolution: {integrity: sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - '@jest/schemas': 28.1.3 - '@types/istanbul-lib-coverage': 2.0.4 - '@types/istanbul-reports': 3.0.1 - '@types/node': 18.6.1 - '@types/yargs': 17.0.10 - chalk: 4.1.2 - dev: true - /@jest/types/29.6.3: resolution: {integrity: sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -4387,7 +4311,7 @@ packages: engines: {node: '>=6.0.0'} dependencies: '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.14 + '@jridgewell/sourcemap-codec': 1.4.15 dev: true /@jridgewell/gen-mapping/0.3.2: @@ -4395,8 +4319,8 @@ packages: engines: {node: '>=6.0.0'} dependencies: '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.14 - '@jridgewell/trace-mapping': 0.3.14 + '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/trace-mapping': 0.3.22 dev: true /@jridgewell/resolve-uri/3.0.8: @@ -5479,7 +5403,7 @@ packages: mime: 2.6.0 node-fetch: 2.6.7 open: 6.4.0 - semver: 6.3.0 + semver: 6.3.1 shell-quote: 1.6.1 transitivePeerDependencies: - encoding @@ -5525,7 +5449,7 @@ packages: pretty-format: 26.6.2 prompts: 2.4.2 react-native: 0.65.2_@babel+core@7.18.9 - semver: 6.3.0 + semver: 6.3.1 serve-static: 1.15.0 strip-ansi: 5.2.0 sudo-prompt: 9.2.1 @@ -5572,16 +5496,16 @@ packages: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true - /@sinonjs/commons/1.8.3: - resolution: {integrity: sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==} + /@sinonjs/commons/3.0.1: + resolution: {integrity: sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==} dependencies: type-detect: 4.0.8 dev: true - /@sinonjs/fake-timers/9.1.2: - resolution: {integrity: sha512-BPS4ynJW/o92PUR4wgriz2Ud5gpST5vz6GQfMixEDK0Z8ZCUv2M7SkBLykH56T++Xs+8ln9zTGbOvNGIe02/jw==} + /@sinonjs/fake-timers/10.3.0: + resolution: {integrity: sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==} dependencies: - '@sinonjs/commons': 1.8.3 + '@sinonjs/commons': 3.0.1 dev: true /@storybook/addon-actions/7.6.10: @@ -6635,8 +6559,8 @@ packages: resolution: {integrity: sha512-Vqw/WMlV4O1fJT6capim01v7VLDZkcX1n6Yhb52E7IfnMqYbNfwHfyDV8rRN42NLBtdDvfaqcCqs2K0fr5ljZw==} dev: true - /@types/babel__core/7.1.19: - resolution: {integrity: sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw==} + /@types/babel__core/7.20.5: + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} dependencies: '@babel/parser': 7.23.6 '@babel/types': 7.23.6 @@ -6645,18 +6569,8 @@ packages: '@types/babel__traverse': 7.20.5 dev: true - /@types/babel__core/7.20.5: - resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} - dependencies: - '@babel/parser': 7.23.6 - '@babel/types': 7.23.6 - '@types/babel__generator': 7.6.4 - '@types/babel__template': 7.4.1 - '@types/babel__traverse': 7.20.5 - dev: true - - /@types/babel__generator/7.6.4: - resolution: {integrity: sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==} + /@types/babel__generator/7.6.4: + resolution: {integrity: sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==} dependencies: '@babel/types': 7.23.6 dev: true @@ -6864,19 +6778,19 @@ packages: '@types/istanbul-lib-report': 3.0.0 dev: true - /@types/jest/28.1.6: - resolution: {integrity: sha512-0RbGAFMfcBJKOmqRazM8L98uokwuwD5F8rHrv/ZMbrZBwVOWZUyPG6VFNscjYr/vjM3Vu4fRrCPbOs42AfemaQ==} + /@types/jest/29.5.12: + resolution: {integrity: sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==} dependencies: - jest-matcher-utils: 28.1.3 - pretty-format: 28.1.3 + expect: 29.7.0 + pretty-format: 29.7.0 dev: true - /@types/jsdom/16.2.15: - resolution: {integrity: sha512-nwF87yjBKuX/roqGYerZZM0Nv1pZDMAT5YhOHYeM/72Fic+VEqJh4nyoqoapzJnW3pUlfxPY5FhgsJtM+dRnQQ==} + /@types/jsdom/20.0.1: + resolution: {integrity: sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==} dependencies: '@types/node': 18.6.1 - '@types/parse5': 6.0.3 '@types/tough-cookie': 4.0.2 + parse5: 7.1.2 dev: true /@types/json-schema/7.0.11: @@ -6942,14 +6856,6 @@ packages: resolution: {integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==} dev: true - /@types/parse5/6.0.3: - resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==} - dev: true - - /@types/prettier/2.6.4: - resolution: {integrity: sha512-fOwvpvQYStpb/zHMx0Cauwywu9yLDmzWiiQBC7gJyq5tYLUXFZvDG7VK1B7WBxxjBJNKFOZ0zLoOQn8vmATbhw==} - dev: true - /@types/pretty-hrtime/1.0.1: resolution: {integrity: sha512-VjID5MJb1eGKthz2qUerWT8+R4b9N+CHvGCzg9fn4kWZgaF9AhdYikQio3R7wV8YY1NsQKPaCwKz1Yff+aHNUQ==} dev: true @@ -7026,7 +6932,7 @@ packages: /@types/testing-library__jest-dom/5.14.5: resolution: {integrity: sha512-SBwbxYoyPIvxHbeHxTZX2Pe/74F/tX2/D3mMvzabdeJ25bBojfW0TyB8BHrbq/9zaaKICJZjLP+8r6AeZMFCuQ==} dependencies: - '@types/jest': 28.1.6 + '@types/jest': 29.5.12 dev: true /@types/tough-cookie/4.0.2: @@ -7179,7 +7085,7 @@ packages: debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 - semver: 7.3.7 + semver: 7.5.4 tsutils: 3.21.0_typescript@4.7.4 typescript: 4.7.4 transitivePeerDependencies: @@ -7435,6 +7341,7 @@ packages: /abab/2.0.6: resolution: {integrity: sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==} + deprecated: Use your platform's native atob() and btoa() methods instead dev: true /abort-controller/3.0.0: @@ -7456,11 +7363,11 @@ packages: negotiator: 0.6.3 dev: true - /acorn-globals/6.0.0: - resolution: {integrity: sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==} + /acorn-globals/7.0.1: + resolution: {integrity: sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==} dependencies: - acorn: 7.4.1 - acorn-walk: 7.2.0 + acorn: 8.11.3 + acorn-walk: 8.3.0 dev: true /acorn-import-assertions/1.8.0_acorn@8.8.0: @@ -7479,12 +7386,12 @@ packages: acorn: 7.4.1 dev: true - /acorn-jsx/5.3.2_acorn@8.8.0: + /acorn-jsx/5.3.2_acorn@8.11.3: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.8.0 + acorn: 8.11.3 dev: true /acorn-walk/7.2.0: @@ -7969,17 +7876,17 @@ packages: - supports-color dev: true - /babel-jest/28.1.3_@babel+core@7.18.9: - resolution: {integrity: sha512-epUaPOEWMk3cWX0M/sPvCHHCe9fMFAa/9hXEgKP8nFfNl/jlGkE9ucq9NqkZGXLDduCJYS0UvSlPUwC0S+rH6Q==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /babel-jest/29.7.0_@babel+core@7.18.9: + resolution: {integrity: sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@babel/core': ^7.8.0 dependencies: '@babel/core': 7.18.9 - '@jest/transform': 28.1.3 - '@types/babel__core': 7.1.19 + '@jest/transform': 29.7.0 + '@types/babel__core': 7.20.5 babel-plugin-istanbul: 6.1.1 - babel-preset-jest: 28.1.3_@babel+core@7.18.9 + babel-preset-jest: 29.6.3_@babel+core@7.18.9 chalk: 4.1.2 graceful-fs: 4.2.10 slash: 3.0.0 @@ -8041,7 +7948,7 @@ packages: resolution: {integrity: sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==} engines: {node: '>=8'} dependencies: - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@istanbuljs/load-nyc-config': 1.1.0 '@istanbuljs/schema': 0.1.3 istanbul-lib-instrument: 5.2.0 @@ -8050,9 +7957,9 @@ packages: - supports-color dev: true - /babel-plugin-jest-hoist/28.1.3: - resolution: {integrity: sha512-Ys3tUKAmfnkRUpPdpa98eYrAR0nV+sSFUZZEGuQ2EbFd1y4SOLtD5QDNHAq+bb9a+bbXvYQC4b+ID/THIMcU6Q==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /babel-plugin-jest-hoist/29.6.3: + resolution: {integrity: sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@babel/template': 7.22.15 '@babel/types': 7.23.6 @@ -8089,7 +7996,7 @@ packages: '@babel/compat-data': 7.18.8 '@babel/core': 7.18.9 '@babel/helper-define-polyfill-provider': 0.3.2_@babel+core@7.18.9 - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true @@ -8427,7 +8334,7 @@ packages: '@babel/plugin-proposal-object-rest-spread': 7.18.6_@babel+core@7.18.9 '@babel/plugin-syntax-class-properties': 7.12.13_@babel+core@7.18.9 '@babel/plugin-syntax-flow': 7.18.6_@babel+core@7.18.9 - '@babel/plugin-syntax-jsx': 7.18.6_@babel+core@7.18.9 + '@babel/plugin-syntax-jsx': 7.23.3_@babel+core@7.18.9 '@babel/plugin-syntax-object-rest-spread': 7.8.3_@babel+core@7.18.9 '@babel/plugin-transform-arrow-functions': 7.18.6_@babel+core@7.18.9 '@babel/plugin-transform-block-scoped-functions': 7.18.6_@babel+core@7.18.9 @@ -8454,14 +8361,14 @@ packages: - supports-color dev: true - /babel-preset-jest/28.1.3_@babel+core@7.18.9: - resolution: {integrity: sha512-L+fupJvlWAHbQfn74coNX3zf60LXMJsezNvvx8eIh7iOR1luJ1poxYgQk1F8PYtNq/6QODDHCqsSnTFSWC491A==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /babel-preset-jest/29.6.3_@babel+core@7.18.9: + resolution: {integrity: sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.18.9 - babel-plugin-jest-hoist: 28.1.3 + babel-plugin-jest-hoist: 29.6.3 babel-preset-current-node-syntax: 1.0.1_@babel+core@7.18.9 dev: true @@ -8727,10 +8634,6 @@ packages: resolution: {integrity: sha512-nfulgvOR6S4gt9UKCeGJOuSGBPGiFT6oQ/2UBnvTY/5aQ1PnksW72fhZkM30DzoRRv2WpwZf1vHHEr3mtuXIWQ==} dev: true - /browser-process-hrtime/1.0.0: - resolution: {integrity: sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==} - dev: true - /browserify-zlib/0.1.4: resolution: {integrity: sha512-19OEpq7vWgsH6WkvkBJQDFvJS1uPcbFOQ4v9CU839dO+ZZXUZO6XpE6hNCqvlIIj+4fZvRiJ6DsAQ382GwiyTQ==} dependencies: @@ -9017,10 +8920,6 @@ packages: consola: 3.2.3 dev: true - /cjs-module-lexer/1.2.2: - resolution: {integrity: sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==} - dev: true - /cjs-module-lexer/1.2.3: resolution: {integrity: sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==} dev: true @@ -9404,6 +9303,25 @@ packages: - supports-color dev: true + /create-jest/29.7.0_pq4lb27wczlmkje7q43vo4whau: + resolution: {integrity: sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + hasBin: true + dependencies: + '@jest/types': 29.6.3 + chalk: 4.1.2 + exit: 0.1.2 + graceful-fs: 4.2.10 + jest-config: 29.7.0_pq4lb27wczlmkje7q43vo4whau + jest-util: 29.7.0 + prompts: 2.4.2 + transitivePeerDependencies: + - '@types/node' + - babel-plugin-macros + - supports-color + - ts-node + dev: true + /create-require/1.1.1: resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} dev: true @@ -9733,8 +9651,8 @@ packages: engines: {node: '>=0.10.0'} dev: true - /decimal.js/10.3.1: - resolution: {integrity: sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==} + /decimal.js/10.4.3: + resolution: {integrity: sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==} dev: true /decode-uri-component/0.2.0: @@ -9746,6 +9664,15 @@ packages: resolution: {integrity: sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==} dev: true + /dedent/1.5.1: + resolution: {integrity: sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==} + peerDependencies: + babel-plugin-macros: ^3.1.0 + peerDependenciesMeta: + babel-plugin-macros: + optional: true + dev: true + /deep-is/0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} dev: true @@ -9931,9 +9858,9 @@ packages: - supports-color dev: true - /diff-sequences/28.1.1: - resolution: {integrity: sha512-FU0iFaH/E23a+a718l8Qa/19bF9p06kgE0KipMOMadwa3SjnaElKzPaUC0vnibs6/B/9ni97s61mcejk8W1fQw==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /diff-sequences/29.6.3: + resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dev: true /diff/4.0.2: @@ -10010,6 +9937,7 @@ packages: /domexception/4.0.0: resolution: {integrity: sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==} engines: {node: '>=12'} + deprecated: Use your platform's native DOMException instead dependencies: webidl-conversions: 7.0.0 dev: true @@ -10104,8 +10032,8 @@ packages: resolution: {integrity: sha512-EeS1oQDCmnYsRDRy2zTeC336a/4LZ6WKqvSaM1jLocEk5ZuyszkQtCpsqvuvaIXGOUjwtvF6LTcS8WueibXvSw==} dev: true - /emittery/0.10.2: - resolution: {integrity: sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw==} + /emittery/0.13.1: + resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==} engines: {node: '>=12'} dev: true @@ -10169,6 +10097,11 @@ packages: engines: {node: '>=0.12'} dev: true + /entities/4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} + engines: {node: '>=0.12'} + dev: true + /envinfo/7.8.1: resolution: {integrity: sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==} engines: {node: '>=4'} @@ -10316,19 +10249,6 @@ packages: engines: {node: '>=10'} dev: true - /escodegen/2.0.0: - resolution: {integrity: sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==} - engines: {node: '>=6.0'} - hasBin: true - dependencies: - esprima: 4.0.1 - estraverse: 5.3.0 - esutils: 2.0.3 - optionator: 0.8.3 - optionalDependencies: - source-map: 0.6.1 - dev: true - /escodegen/2.1.0: resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} engines: {node: '>=6.0'} @@ -10444,7 +10364,7 @@ packages: - supports-color dev: true - /eslint-plugin-jest/26.7.0_4gzxb4ijm7tr3yx5zzwnpgdkem: + /eslint-plugin-jest/26.7.0_ng74hpxqszfusygtelub7siupm: resolution: {integrity: sha512-/YNitdfG3o3cC6juZziAdkk6nfJt01jXVfj4AgaYVLs7bupHzRDL5K+eipdzhDXtQsiqaX1TzfwSuRlEgeln1A==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -10460,7 +10380,7 @@ packages: '@typescript-eslint/eslint-plugin': 5.32.0_iosr3hrei2tubxveewluhu5lhy '@typescript-eslint/utils': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq eslint: 8.21.0 - jest: 28.1.3_pq4lb27wczlmkje7q43vo4whau + jest: 29.7.0_pq4lb27wczlmkje7q43vo4whau transitivePeerDependencies: - supports-color - typescript @@ -10611,8 +10531,8 @@ packages: resolution: {integrity: sha512-ORs1Rt/uQTqUKjDdGCyrtYxbazf5umATSf/K4qxjmZHORR6HJk+2s/2Pqe+Kk49HHINC/xNIrGfgh8sZcll0ng==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.8.0 - acorn-jsx: 5.3.2_acorn@8.8.0 + acorn: 8.11.3 + acorn-jsx: 5.3.2_acorn@8.11.3 eslint-visitor-keys: 3.3.0 dev: true @@ -10764,15 +10684,15 @@ packages: - supports-color dev: true - /expect/28.1.3: - resolution: {integrity: sha512-eEh0xn8HlsuOBxFgIss+2mX85VAS4Qy3OSkjV7rlBWljtA4oWH37glVGyOZSZvErDT/yBywZdPGwCXuTvSG85g==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /expect/29.7.0: + resolution: {integrity: sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/expect-utils': 28.1.3 - jest-get-type: 28.0.2 - jest-matcher-utils: 28.1.3 - jest-message-util: 28.1.3 - jest-util: 28.1.3 + '@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 dev: true /express/4.18.1: @@ -12426,7 +12346,20 @@ packages: '@babel/parser': 7.23.6 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 - semver: 6.3.0 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + dev: true + + /istanbul-lib-instrument/6.0.1: + resolution: {integrity: sha512-EAMEJBsYuyyztxMxW3g7ugGPkrZsV57v0Hmv3mm1uQsmB+QnZuepg731CRaIgeUVSdmsTngOkSnauNF8p7FIhA==} + engines: {node: '>=10'} + dependencies: + '@babel/core': 7.18.9 + '@babel/parser': 7.23.6 + '@istanbuljs/schema': 0.1.3 + istanbul-lib-coverage: 3.2.0 + semver: 7.5.4 transitivePeerDependencies: - supports-color dev: true @@ -12479,44 +12412,47 @@ packages: minimatch: 3.1.2 dev: true - /jest-changed-files/28.1.3: - resolution: {integrity: sha512-esaOfUWJXk2nfZt9SPyC8gA1kNfdKLkQWyzsMlqq8msYSlNKfmZxfRgZn4Cd4MGVUF+7v6dBs0d5TOAKa7iIiA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-changed-files/29.7.0: + resolution: {integrity: sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: execa: 5.1.1 + jest-util: 29.7.0 p-limit: 3.1.0 dev: true - /jest-circus/28.1.3: - resolution: {integrity: sha512-cZ+eS5zc79MBwt+IhQhiEp0OeBddpc1n8MBo1nMB8A7oPMKEO+Sre+wHaLJexQUj9Ya/8NOBY0RESUgYjB6fow==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-circus/29.7.0: + resolution: {integrity: sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/environment': 28.1.3 - '@jest/expect': 28.1.3 - '@jest/test-result': 28.1.3 - '@jest/types': 28.1.3 + '@jest/environment': 29.7.0 + '@jest/expect': 29.7.0 + '@jest/test-result': 29.7.0 + '@jest/types': 29.6.3 '@types/node': 18.6.1 chalk: 4.1.2 co: 4.6.0 - dedent: 0.7.0 + dedent: 1.5.1 is-generator-fn: 2.1.0 - jest-each: 28.1.3 - jest-matcher-utils: 28.1.3 - jest-message-util: 28.1.3 - jest-runtime: 28.1.3 - jest-snapshot: 28.1.3 - jest-util: 28.1.3 + jest-each: 29.7.0 + jest-matcher-utils: 29.7.0 + jest-message-util: 29.7.0 + jest-runtime: 29.7.0 + jest-snapshot: 29.7.0 + jest-util: 29.7.0 p-limit: 3.1.0 - pretty-format: 28.1.3 + pretty-format: 29.7.0 + pure-rand: 6.0.4 slash: 3.0.0 stack-utils: 2.0.5 transitivePeerDependencies: + - babel-plugin-macros - supports-color dev: true - /jest-cli/28.1.3_pq4lb27wczlmkje7q43vo4whau: - resolution: {integrity: sha512-roY3kvrv57Azn1yPgdTebPAXvdR2xfezaKKYzVxZ6It/5NCxzJym6tUI5P1zkdWhfUYkxEI9uZWcQdaFLo8mJQ==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-cli/29.7.0_pq4lb27wczlmkje7q43vo4whau: + resolution: {integrity: sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 @@ -12524,27 +12460,27 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 28.1.3_ts-node@10.9.1 - '@jest/test-result': 28.1.3 - '@jest/types': 28.1.3 + '@jest/core': 29.7.0_ts-node@10.9.1 + '@jest/test-result': 29.7.0 + '@jest/types': 29.6.3 chalk: 4.1.2 + create-jest: 29.7.0_pq4lb27wczlmkje7q43vo4whau exit: 0.1.2 - graceful-fs: 4.2.10 import-local: 3.1.0 - jest-config: 28.1.3_pq4lb27wczlmkje7q43vo4whau - jest-util: 28.1.3 - jest-validate: 28.1.3 - prompts: 2.4.2 + jest-config: 29.7.0_pq4lb27wczlmkje7q43vo4whau + jest-util: 29.7.0 + jest-validate: 29.7.0 yargs: 17.5.1 transitivePeerDependencies: - '@types/node' + - babel-plugin-macros - supports-color - ts-node dev: true - /jest-config/28.1.3_pq4lb27wczlmkje7q43vo4whau: - resolution: {integrity: sha512-MG3INjByJ0J4AsNBm7T3hsuxKQqFIiRo/AUqb1q9LRKI5UU6Aar9JHbr9Ivn1TVwfUD9KirRoM/T6u8XlcQPHQ==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-config/29.7.0_pq4lb27wczlmkje7q43vo4whau: + resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@types/node': '*' ts-node: '>=9.0.0' @@ -12555,90 +12491,95 @@ packages: optional: true dependencies: '@babel/core': 7.18.9 - '@jest/test-sequencer': 28.1.3 - '@jest/types': 28.1.3 + '@jest/test-sequencer': 29.7.0 + '@jest/types': 29.6.3 '@types/node': 18.6.1 - babel-jest: 28.1.3_@babel+core@7.18.9 + babel-jest: 29.7.0_@babel+core@7.18.9 chalk: 4.1.2 ci-info: 3.3.2 deepmerge: 4.2.2 glob: 7.2.3 graceful-fs: 4.2.10 - jest-circus: 28.1.3 - jest-environment-node: 28.1.3 - jest-get-type: 28.0.2 - jest-regex-util: 28.0.2 - jest-resolve: 28.1.3 - jest-runner: 28.1.3 - jest-util: 28.1.3 - jest-validate: 28.1.3 + jest-circus: 29.7.0 + jest-environment-node: 29.7.0 + jest-get-type: 29.6.3 + jest-regex-util: 29.6.3 + jest-resolve: 29.7.0 + jest-runner: 29.7.0 + jest-util: 29.7.0 + jest-validate: 29.7.0 micromatch: 4.0.5 parse-json: 5.2.0 - pretty-format: 28.1.3 + pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 ts-node: 10.9.1_f6w67sjx3imwytyzb2qhabnzqe transitivePeerDependencies: + - babel-plugin-macros - supports-color dev: true - /jest-diff/28.1.3: - resolution: {integrity: sha512-8RqP1B/OXzjjTWkqMX67iqgwBVJRgCyKD3L9nq+6ZqJMdvjE8RgHktqZ6jNrkdMT+dJuYNI3rhQpxaz7drJHfw==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-diff/29.7.0: + resolution: {integrity: sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: chalk: 4.1.2 - diff-sequences: 28.1.1 - jest-get-type: 28.0.2 - pretty-format: 28.1.3 + diff-sequences: 29.6.3 + jest-get-type: 29.6.3 + pretty-format: 29.7.0 dev: true - /jest-docblock/28.1.1: - resolution: {integrity: sha512-3wayBVNiOYx0cwAbl9rwm5kKFP8yHH3d/fkEaL02NPTkDojPtheGB7HZSFY4wzX+DxyrvhXz0KSCVksmCknCuA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-docblock/29.7.0: + resolution: {integrity: sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: detect-newline: 3.1.0 dev: true - /jest-each/28.1.3: - resolution: {integrity: sha512-arT1z4sg2yABU5uogObVPvSlSMQlDA48owx07BDPAiasW0yYpYHYOo4HHLz9q0BVzDVU4hILFjzJw0So9aCL/g==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-each/29.7.0: + resolution: {integrity: sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 28.1.3 + '@jest/types': 29.6.3 chalk: 4.1.2 - jest-get-type: 28.0.2 - jest-util: 28.1.3 - pretty-format: 28.1.3 + jest-get-type: 29.6.3 + jest-util: 29.7.0 + pretty-format: 29.7.0 dev: true - /jest-environment-jsdom/28.1.3: - resolution: {integrity: sha512-HnlGUmZRdxfCByd3GM2F100DgQOajUBzEitjGqIREcb45kGjZvRrKUdlaF6escXBdcXNl0OBh+1ZrfeZT3GnAg==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-environment-jsdom/29.7.0: + resolution: {integrity: sha512-k9iQbsf9OyOfdzWH8HDmrRT0gSIcX+FLNW7IQq94tFX0gynPwqDTW0Ho6iMVNjGz/nb+l/vW3dWM2bbLLpkbXA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + peerDependencies: + canvas: ^2.5.0 + peerDependenciesMeta: + canvas: + optional: true dependencies: - '@jest/environment': 28.1.3 - '@jest/fake-timers': 28.1.3 - '@jest/types': 28.1.3 - '@types/jsdom': 16.2.15 + '@jest/environment': 29.7.0 + '@jest/fake-timers': 29.7.0 + '@jest/types': 29.6.3 + '@types/jsdom': 20.0.1 '@types/node': 18.6.1 - jest-mock: 28.1.3 - jest-util: 28.1.3 - jsdom: 19.0.0 + jest-mock: 29.7.0 + jest-util: 29.7.0 + jsdom: 20.0.3 transitivePeerDependencies: - bufferutil - - canvas - supports-color - utf-8-validate dev: true - /jest-environment-node/28.1.3: - resolution: {integrity: sha512-ugP6XOhEpjAEhGYvp5Xj989ns5cB1K6ZdjBYuS30umT4CQEETaxSiPcZ/E1kFktX4GkrcM4qu07IIlDYX1gp+A==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-environment-node/29.7.0: + resolution: {integrity: sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/environment': 28.1.3 - '@jest/fake-timers': 28.1.3 - '@jest/types': 28.1.3 + '@jest/environment': 29.7.0 + '@jest/fake-timers': 29.7.0 + '@jest/types': 29.6.3 '@types/node': 18.6.1 - jest-mock: 28.1.3 - jest-util: 28.1.3 + jest-mock: 29.7.0 + jest-util: 29.7.0 dev: true /jest-get-type/26.3.0: @@ -12646,9 +12587,9 @@ packages: engines: {node: '>= 10.14.2'} dev: true - /jest-get-type/28.0.2: - resolution: {integrity: sha512-ioj2w9/DxSYHfOm5lJKCdcAmPJzQXmbM/Url3rhlghrPvT3tt+7a/+oXc9azkKmLvoiXjtV83bEWqi+vs5nlPA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-get-type/29.6.3: + resolution: {integrity: sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dev: true /jest-haste-map/26.6.2: @@ -12674,25 +12615,6 @@ packages: - supports-color dev: true - /jest-haste-map/28.1.3: - resolution: {integrity: sha512-3S+RQWDXccXDKSWnkHa/dPwt+2qwA8CJzR61w3FoYCvoo3Pn8tvGcysmMF0Bj0EX5RYvAI2EIvC57OmotfdtKA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - '@jest/types': 28.1.3 - '@types/graceful-fs': 4.1.5 - '@types/node': 18.6.1 - anymatch: 3.1.2 - fb-watchman: 2.0.1 - graceful-fs: 4.2.10 - jest-regex-util: 28.0.2 - jest-util: 28.1.3 - jest-worker: 28.1.3 - micromatch: 4.0.5 - walker: 1.0.8 - optionalDependencies: - fsevents: 2.3.2 - dev: true - /jest-haste-map/29.7.0: resolution: {integrity: sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -12712,48 +12634,49 @@ packages: fsevents: 2.3.2 dev: true - /jest-leak-detector/28.1.3: - resolution: {integrity: sha512-WFVJhnQsiKtDEo5lG2mM0v40QWnBM+zMdHHyJs8AWZ7J0QZJS59MsyKeJHWhpBZBH32S48FOVvGyOFT1h0DlqA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-leak-detector/29.7.0: + resolution: {integrity: sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - jest-get-type: 28.0.2 - pretty-format: 28.1.3 + jest-get-type: 29.6.3 + pretty-format: 29.7.0 dev: true - /jest-matcher-utils/28.1.3: - resolution: {integrity: sha512-kQeJ7qHemKfbzKoGjHHrRKH6atgxMk8Enkk2iPQ3XwO6oE/KYD8lMYOziCkeSB9G4adPM4nR1DE8Tf5JeWH6Bw==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-matcher-utils/29.7.0: + resolution: {integrity: sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: chalk: 4.1.2 - jest-diff: 28.1.3 - jest-get-type: 28.0.2 - pretty-format: 28.1.3 + jest-diff: 29.7.0 + jest-get-type: 29.6.3 + pretty-format: 29.7.0 dev: true - /jest-message-util/28.1.3: - resolution: {integrity: sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-message-util/29.7.0: + resolution: {integrity: sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@babel/code-frame': 7.23.5 - '@jest/types': 28.1.3 + '@jest/types': 29.6.3 '@types/stack-utils': 2.0.1 chalk: 4.1.2 graceful-fs: 4.2.10 micromatch: 4.0.5 - pretty-format: 28.1.3 + pretty-format: 29.7.0 slash: 3.0.0 stack-utils: 2.0.5 dev: true - /jest-mock/28.1.3: - resolution: {integrity: sha512-o3J2jr6dMMWYVH4Lh/NKmDXdosrsJgi4AviS8oXLujcjpCMBb1FMsblDnOXKZKfSiHLxYub1eS0IHuRXsio9eA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-mock/29.7.0: + resolution: {integrity: sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 28.1.3 + '@jest/types': 29.6.3 '@types/node': 18.6.1 + jest-util: 29.7.0 dev: true - /jest-pnp-resolver/1.2.2_jest-resolve@28.1.3: + /jest-pnp-resolver/1.2.2_jest-resolve@29.7.0: resolution: {integrity: sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==} engines: {node: '>=6'} peerDependencies: @@ -12762,7 +12685,7 @@ packages: jest-resolve: optional: true dependencies: - jest-resolve: 28.1.3 + jest-resolve: 29.7.0 dev: true /jest-regex-util/26.0.0: @@ -12770,94 +12693,89 @@ packages: engines: {node: '>= 10.14.2'} dev: true - /jest-regex-util/28.0.2: - resolution: {integrity: sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dev: true - /jest-regex-util/29.6.3: resolution: {integrity: sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dev: true - /jest-resolve-dependencies/28.1.3: - resolution: {integrity: sha512-qa0QO2Q0XzQoNPouMbCc7Bvtsem8eQgVPNkwn9LnS+R2n8DaVDPL/U1gngC0LTl1RYXJU0uJa2BMC2DbTfFrHA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-resolve-dependencies/29.7.0: + resolution: {integrity: sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - jest-regex-util: 28.0.2 - jest-snapshot: 28.1.3 + jest-regex-util: 29.6.3 + jest-snapshot: 29.7.0 transitivePeerDependencies: - supports-color dev: true - /jest-resolve/28.1.3: - resolution: {integrity: sha512-Z1W3tTjE6QaNI90qo/BJpfnvpxtaFTFw5CDgwpyE/Kz8U/06N1Hjf4ia9quUhCh39qIGWF1ZuxFiBiJQwSEYKQ==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-resolve/29.7.0: + resolution: {integrity: sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: chalk: 4.1.2 graceful-fs: 4.2.10 - jest-haste-map: 28.1.3 - jest-pnp-resolver: 1.2.2_jest-resolve@28.1.3 - jest-util: 28.1.3 - jest-validate: 28.1.3 + jest-haste-map: 29.7.0 + jest-pnp-resolver: 1.2.2_jest-resolve@29.7.0 + jest-util: 29.7.0 + jest-validate: 29.7.0 resolve: 1.22.1 - resolve.exports: 1.1.0 + resolve.exports: 2.0.2 slash: 3.0.0 dev: true - /jest-runner/28.1.3: - resolution: {integrity: sha512-GkMw4D/0USd62OVO0oEgjn23TM+YJa2U2Wu5zz9xsQB1MxWKDOlrnykPxnMsN0tnJllfLPinHTka61u0QhaxBA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-runner/29.7.0: + resolution: {integrity: sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/console': 28.1.3 - '@jest/environment': 28.1.3 - '@jest/test-result': 28.1.3 - '@jest/transform': 28.1.3 - '@jest/types': 28.1.3 + '@jest/console': 29.7.0 + '@jest/environment': 29.7.0 + '@jest/test-result': 29.7.0 + '@jest/transform': 29.7.0 + '@jest/types': 29.6.3 '@types/node': 18.6.1 chalk: 4.1.2 - emittery: 0.10.2 + emittery: 0.13.1 graceful-fs: 4.2.10 - jest-docblock: 28.1.1 - jest-environment-node: 28.1.3 - jest-haste-map: 28.1.3 - jest-leak-detector: 28.1.3 - jest-message-util: 28.1.3 - jest-resolve: 28.1.3 - jest-runtime: 28.1.3 - jest-util: 28.1.3 - jest-watcher: 28.1.3 - jest-worker: 28.1.3 + jest-docblock: 29.7.0 + jest-environment-node: 29.7.0 + jest-haste-map: 29.7.0 + jest-leak-detector: 29.7.0 + jest-message-util: 29.7.0 + jest-resolve: 29.7.0 + jest-runtime: 29.7.0 + jest-util: 29.7.0 + jest-watcher: 29.7.0 + jest-worker: 29.7.0 p-limit: 3.1.0 source-map-support: 0.5.13 transitivePeerDependencies: - supports-color dev: true - /jest-runtime/28.1.3: - resolution: {integrity: sha512-NU+881ScBQQLc1JHG5eJGU7Ui3kLKrmwCPPtYsJtBykixrM2OhVQlpMmFWJjMyDfdkGgBMNjXCGB/ebzsgNGQw==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-runtime/29.7.0: + resolution: {integrity: sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/environment': 28.1.3 - '@jest/fake-timers': 28.1.3 - '@jest/globals': 28.1.3 - '@jest/source-map': 28.1.2 - '@jest/test-result': 28.1.3 - '@jest/transform': 28.1.3 - '@jest/types': 28.1.3 + '@jest/environment': 29.7.0 + '@jest/fake-timers': 29.7.0 + '@jest/globals': 29.7.0 + '@jest/source-map': 29.6.3 + '@jest/test-result': 29.7.0 + '@jest/transform': 29.7.0 + '@jest/types': 29.6.3 + '@types/node': 18.6.1 chalk: 4.1.2 - cjs-module-lexer: 1.2.2 + cjs-module-lexer: 1.2.3 collect-v8-coverage: 1.0.1 - execa: 5.1.1 glob: 7.2.3 graceful-fs: 4.2.10 - jest-haste-map: 28.1.3 - jest-message-util: 28.1.3 - jest-mock: 28.1.3 - jest-regex-util: 28.0.2 - jest-resolve: 28.1.3 - jest-snapshot: 28.1.3 - jest-util: 28.1.3 + jest-haste-map: 29.7.0 + jest-message-util: 29.7.0 + jest-mock: 29.7.0 + jest-regex-util: 29.6.3 + jest-resolve: 29.7.0 + jest-snapshot: 29.7.0 + jest-util: 29.7.0 slash: 3.0.0 strip-bom: 4.0.0 transitivePeerDependencies: @@ -12872,32 +12790,29 @@ packages: graceful-fs: 4.2.10 dev: true - /jest-snapshot/28.1.3: - resolution: {integrity: sha512-4lzMgtiNlc3DU/8lZfmqxN3AYD6GGLbl+72rdBpXvcV+whX7mDrREzkPdp2RnmfIiWBg1YbuFSkXduF2JcafJg==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-snapshot/29.7.0: + resolution: {integrity: sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@babel/core': 7.18.9 '@babel/generator': 7.23.6 - '@babel/plugin-syntax-typescript': 7.18.6_@babel+core@7.18.9 - '@babel/traverse': 7.23.7 + '@babel/plugin-syntax-jsx': 7.23.3_@babel+core@7.18.9 + '@babel/plugin-syntax-typescript': 7.23.3_@babel+core@7.18.9 '@babel/types': 7.23.6 - '@jest/expect-utils': 28.1.3 - '@jest/transform': 28.1.3 - '@jest/types': 28.1.3 - '@types/babel__traverse': 7.20.5 - '@types/prettier': 2.6.4 + '@jest/expect-utils': 29.7.0 + '@jest/transform': 29.7.0 + '@jest/types': 29.6.3 babel-preset-current-node-syntax: 1.0.1_@babel+core@7.18.9 chalk: 4.1.2 - expect: 28.1.3 + expect: 29.7.0 graceful-fs: 4.2.10 - jest-diff: 28.1.3 - jest-get-type: 28.0.2 - jest-haste-map: 28.1.3 - jest-matcher-utils: 28.1.3 - jest-message-util: 28.1.3 - jest-util: 28.1.3 + jest-diff: 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 natural-compare: 1.4.0 - pretty-format: 28.1.3 + pretty-format: 29.7.0 semver: 7.5.4 transitivePeerDependencies: - supports-color @@ -12915,18 +12830,6 @@ packages: micromatch: 4.0.5 dev: true - /jest-util/28.1.3: - resolution: {integrity: sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - '@jest/types': 28.1.3 - '@types/node': 18.6.1 - chalk: 4.1.2 - ci-info: 3.3.2 - graceful-fs: 4.2.10 - picomatch: 2.3.1 - dev: true - /jest-util/29.7.0: resolution: {integrity: sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -12951,29 +12854,29 @@ packages: pretty-format: 26.6.2 dev: true - /jest-validate/28.1.3: - resolution: {integrity: sha512-SZbOGBWEsaTxBGCOpsRWlXlvNkvTkY0XxRfh7zYmvd8uL5Qzyg0CHAXiXKROflh801quA6+/DsT4ODDthOC/OA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-validate/29.7.0: + resolution: {integrity: sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 28.1.3 + '@jest/types': 29.6.3 camelcase: 6.3.0 chalk: 4.1.2 - jest-get-type: 28.0.2 + jest-get-type: 29.6.3 leven: 3.1.0 - pretty-format: 28.1.3 + pretty-format: 29.7.0 dev: true - /jest-watcher/28.1.3: - resolution: {integrity: sha512-t4qcqj9hze+jviFPUN3YAtAEeFnr/azITXQEMARf5cMwKY2SMBRnCQTXLixTl20OR6mLh9KLMrgVJgJISym+1g==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest-watcher/29.7.0: + resolution: {integrity: sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/test-result': 28.1.3 - '@jest/types': 28.1.3 + '@jest/test-result': 29.7.0 + '@jest/types': 29.6.3 '@types/node': 18.6.1 ansi-escapes: 4.3.2 chalk: 4.1.2 - emittery: 0.10.2 - jest-util: 28.1.3 + emittery: 0.13.1 + jest-util: 29.7.0 string-length: 4.0.2 dev: true @@ -12995,15 +12898,6 @@ packages: supports-color: 8.1.1 dev: true - /jest-worker/28.1.3: - resolution: {integrity: sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} - dependencies: - '@types/node': 18.6.1 - merge-stream: 2.0.0 - supports-color: 8.1.1 - dev: true - /jest-worker/29.7.0: resolution: {integrity: sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -13014,9 +12908,9 @@ packages: supports-color: 8.1.1 dev: true - /jest/28.1.3_pq4lb27wczlmkje7q43vo4whau: - resolution: {integrity: sha512-N4GT5on8UkZgH0O5LUavMRV1EDEhNTL0KEfRmDIeZHSV7p2XgLoY9t9VDUgL6o+yfdgYHVxuz81G8oB9VG5uyA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /jest/29.7.0_pq4lb27wczlmkje7q43vo4whau: + resolution: {integrity: sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 @@ -13024,12 +12918,13 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 28.1.3_ts-node@10.9.1 - '@jest/types': 28.1.3 + '@jest/core': 29.7.0_ts-node@10.9.1 + '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 28.1.3_pq4lb27wczlmkje7q43vo4whau + jest-cli: 29.7.0_pq4lb27wczlmkje7q43vo4whau transitivePeerDependencies: - '@types/node' + - babel-plugin-macros - supports-color - ts-node dev: true @@ -13110,9 +13005,9 @@ packages: - supports-color dev: true - /jsdom/19.0.0: - resolution: {integrity: sha512-RYAyjCbxy/vri/CfnjUWJQQtZ3LKlLnDqj+9XLNnJPgEGeirZs3hllKR20re8LUZ6o1b1X4Jat+Qd26zmP41+A==} - engines: {node: '>=12'} + /jsdom/20.0.3: + resolution: {integrity: sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==} + engines: {node: '>=14'} peerDependencies: canvas: ^2.5.0 peerDependenciesMeta: @@ -13120,31 +13015,30 @@ packages: optional: true dependencies: abab: 2.0.6 - acorn: 8.8.0 - acorn-globals: 6.0.0 + acorn: 8.11.3 + acorn-globals: 7.0.1 cssom: 0.5.0 cssstyle: 2.3.0 data-urls: 3.0.2 - decimal.js: 10.3.1 + decimal.js: 10.4.3 domexception: 4.0.0 - escodegen: 2.0.0 + escodegen: 2.1.0 form-data: 4.0.0 html-encoding-sniffer: 3.0.0 http-proxy-agent: 5.0.0 https-proxy-agent: 5.0.1 is-potential-custom-element-name: 1.0.1 - nwsapi: 2.2.1 - parse5: 6.0.1 - saxes: 5.0.1 + nwsapi: 2.2.7 + parse5: 7.1.2 + saxes: 6.0.0 symbol-tree: 3.2.4 - tough-cookie: 4.0.0 - w3c-hr-time: 1.0.2 - w3c-xmlserializer: 3.0.0 + tough-cookie: 4.1.3 + w3c-xmlserializer: 4.0.0 webidl-conversions: 7.0.0 whatwg-encoding: 2.0.0 whatwg-mimetype: 3.0.0 - whatwg-url: 10.0.0 - ws: 8.8.1 + whatwg-url: 11.0.0 + ws: 8.16.0 xml-name-validator: 4.0.0 transitivePeerDependencies: - bufferutil @@ -13332,14 +13226,6 @@ packages: engines: {node: '>=6'} dev: true - /levn/0.3.0: - resolution: {integrity: sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==} - engines: {node: '>= 0.8.0'} - dependencies: - prelude-ls: 1.1.2 - type-check: 0.3.2 - dev: true - /levn/0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} @@ -13382,7 +13268,7 @@ packages: dependencies: big.js: 5.2.2 emojis-list: 3.0.0 - json5: 2.2.1 + json5: 2.2.3 dev: true /loader-utils/2.0.4: @@ -13391,7 +13277,7 @@ packages: dependencies: big.js: 5.2.2 emojis-list: 3.0.0 - json5: 2.2.1 + json5: 2.2.3 dev: true /locate-path/2.0.0: @@ -13610,7 +13496,7 @@ packages: resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} engines: {node: '>=8'} dependencies: - semver: 6.3.0 + semver: 6.3.1 dev: true /make-error/1.3.6: @@ -13887,7 +13773,7 @@ packages: '@babel/plugin-transform-template-literals': 7.18.9_@babel+core@7.18.9 '@babel/plugin-transform-typescript': 7.18.6_@babel+core@7.18.9 '@babel/plugin-transform-unicode-regex': 7.18.6_@babel+core@7.18.9 - '@babel/template': 7.18.6 + '@babel/template': 7.22.15 react-refresh: 0.4.3 transitivePeerDependencies: - supports-color @@ -13971,7 +13857,7 @@ packages: resolution: {integrity: sha512-038tFmB7vSh73VQcDWIbr5O1m+WXWyYafDaOy+1A/2K308YP0oj33gbEgDnZsLZDwcJ+xt1x6KUEBIzlX4YGeQ==} dependencies: '@babel/traverse': 7.18.6 - '@babel/types': 7.18.7 + '@babel/types': 7.23.6 invariant: 2.2.4 metro-symbolicate: 0.66.2 nullthrows: 1.1.1 @@ -14459,8 +14345,8 @@ packages: resolution: {integrity: sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==} dev: true - /nwsapi/2.2.1: - resolution: {integrity: sha512-JYOWTeFoS0Z93587vRJgASD5Ut11fYl5NyihP3KrYBvMe1FRRs6RN7m20SA/16GM4P6hTnZjT+UmDOt38UeXNg==} + /nwsapi/2.2.7: + resolution: {integrity: sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==} dev: true /nypm/0.3.6: @@ -14667,18 +14553,6 @@ packages: is-wsl: 2.2.0 dev: true - /optionator/0.8.3: - resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==} - engines: {node: '>= 0.8.0'} - dependencies: - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.3.0 - prelude-ls: 1.1.2 - type-check: 0.3.2 - word-wrap: 1.2.3 - dev: true - /optionator/0.9.1: resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==} engines: {node: '>= 0.8.0'} @@ -14884,8 +14758,10 @@ packages: lines-and-columns: 1.2.4 dev: true - /parse5/6.0.1: - resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} + /parse5/7.1.2: + resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==} + dependencies: + entities: 4.5.0 dev: true /parseurl/1.3.3: @@ -15001,11 +14877,6 @@ packages: engines: {node: '>=6'} dev: true - /pirates/4.0.5: - resolution: {integrity: sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==} - engines: {node: '>= 6'} - dev: true - /pirates/4.0.6: resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} engines: {node: '>= 6'} @@ -15145,11 +15016,6 @@ packages: starts-with: 1.0.2 dev: true - /prelude-ls/1.1.2: - resolution: {integrity: sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==} - engines: {node: '>= 0.8.0'} - dev: true - /prelude-ls/1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -15209,6 +15075,15 @@ packages: react-is: 18.2.0 dev: true + /pretty-format/29.7.0: + resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/schemas': 29.6.3 + ansi-styles: 5.2.0 + react-is: 18.2.0 + dev: true + /pretty-hrtime/1.0.3: resolution: {integrity: sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==} engines: {node: '>= 0.8'} @@ -15348,6 +15223,10 @@ packages: - utf-8-validate dev: true + /pure-rand/6.0.4: + resolution: {integrity: sha512-LA0Y9kxMYv47GIPJy6MI84fqTd2HmYZI83W/kM/SkKfDlajnZYfmXFTxkbY+xSBPkLJxltMa9hIkmdc29eguMA==} + dev: true + /qs/6.10.3: resolution: {integrity: sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==} engines: {node: '>=0.6'} @@ -15374,6 +15253,10 @@ packages: deprecated: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. dev: true + /querystringify/2.2.0: + resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} + dev: true + /queue-microtask/1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} dev: true @@ -16057,8 +15940,8 @@ packages: deprecated: https://github.com/lydell/resolve-url#deprecated dev: true - /resolve.exports/1.1.0: - resolution: {integrity: sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==} + /resolve.exports/2.0.2: + resolution: {integrity: sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==} engines: {node: '>=10'} dev: true @@ -16200,9 +16083,9 @@ packages: resolution: {integrity: sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==} dev: true - /saxes/5.0.1: - resolution: {integrity: sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==} - engines: {node: '>=10'} + /saxes/6.0.0: + resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} + engines: {node: '>=v12.22.7'} dependencies: xmlchars: 2.2.0 dev: true @@ -16996,14 +16879,6 @@ packages: has-flag: 4.0.0 dev: true - /supports-hyperlinks/2.2.0: - resolution: {integrity: sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==} - engines: {node: '>=8'} - dependencies: - has-flag: 4.0.0 - supports-color: 7.2.0 - dev: true - /supports-preserve-symlinks-flag/1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -17106,14 +16981,6 @@ packages: engines: {node: '>=8'} dev: true - /terminal-link/2.1.1: - resolution: {integrity: sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==} - engines: {node: '>=8'} - dependencies: - ansi-escapes: 4.3.2 - supports-hyperlinks: 2.2.0 - dev: true - /terser-webpack-plugin/5.3.3_t5zzif33un4au6vgw53ngtvhem: resolution: {integrity: sha512-Fx60G5HNYknNTNQnzQ1VePRuu89ZVYWfjRAeT5rITuCY/1b08s49e5kSQwHDirKZWuoKOBRFS98EUUoZ9kLEwQ==} engines: {node: '>= 10.13.0'} @@ -17130,7 +16997,7 @@ packages: uglify-js: optional: true dependencies: - '@jridgewell/trace-mapping': 0.3.14 + '@jridgewell/trace-mapping': 0.3.22 '@swc/core': 1.3.106 jest-worker: 27.5.1 schema-utils: 3.1.1 @@ -17155,7 +17022,7 @@ packages: uglify-js: optional: true dependencies: - '@jridgewell/trace-mapping': 0.3.14 + '@jridgewell/trace-mapping': 0.3.22 jest-worker: 27.5.1 schema-utils: 3.1.1 serialize-javascript: 6.0.0 @@ -17169,7 +17036,7 @@ packages: hasBin: true dependencies: '@jridgewell/source-map': 0.3.2 - acorn: 8.8.0 + acorn: 8.11.3 commander: 2.20.3 source-map-support: 0.5.21 dev: true @@ -17272,13 +17139,14 @@ packages: engines: {node: '>=0.6'} dev: true - /tough-cookie/4.0.0: - resolution: {integrity: sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==} + /tough-cookie/4.1.3: + resolution: {integrity: sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==} engines: {node: '>=6'} dependencies: psl: 1.9.0 punycode: 2.1.1 - universalify: 0.1.2 + universalify: 0.2.0 + url-parse: 1.5.10 dev: true /tr46/0.0.3: @@ -17320,17 +17188,17 @@ packages: engines: {node: '>=6.10'} dev: true - /ts-jest/28.0.7_tj2z3y3jbntzm7poelqnnksfam: - resolution: {integrity: sha512-wWXCSmTwBVmdvWrOpYhal79bDpioDy4rTT+0vyUnE3ZzM7LOAAGG9NXwzkEL/a516rQEgnMmS/WKP9jBPCVJyA==} - engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} + /ts-jest/29.1.2_5cytqtvimh5ynfyz6wjzc2t4gm: + resolution: {integrity: sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g==} + engines: {node: ^16.10.0 || ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: '@babel/core': '>=7.0.0-beta.0 <8' - '@jest/types': ^28.0.0 - babel-jest: ^28.0.0 + '@jest/types': ^29.0.0 + babel-jest: ^29.0.0 esbuild: '*' - jest: ^28.0.0 - typescript: '>=4.3' + jest: ^29.0.0 + typescript: '>=4.3 <6' peerDependenciesMeta: '@babel/core': optional: true @@ -17342,15 +17210,15 @@ packages: optional: true dependencies: '@babel/core': 7.18.9 - babel-jest: 28.1.3_@babel+core@7.18.9 + babel-jest: 29.7.0_@babel+core@7.18.9 bs-logger: 0.2.6 fast-json-stable-stringify: 2.1.0 - jest: 28.1.3_pq4lb27wczlmkje7q43vo4whau - jest-util: 28.1.3 - json5: 2.2.1 + jest: 29.7.0_pq4lb27wczlmkje7q43vo4whau + jest-util: 29.7.0 + json5: 2.2.3 lodash.memoize: 4.1.2 make-error: 1.3.6 - semver: 7.3.7 + semver: 7.5.4 typescript: 4.7.4 yargs-parser: 21.0.1 dev: true @@ -17442,13 +17310,6 @@ packages: yargs: 17.5.1 dev: true - /type-check/0.3.2: - resolution: {integrity: sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==} - engines: {node: '>= 0.8.0'} - dependencies: - prelude-ls: 1.1.2 - dev: true - /type-check/0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -17684,6 +17545,11 @@ packages: engines: {node: '>= 4.0.0'} dev: true + /universalify/0.2.0: + resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==} + engines: {node: '>= 4.0.0'} + dev: true + /universalify/2.0.0: resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} engines: {node: '>= 10.0.0'} @@ -17749,6 +17615,13 @@ packages: deprecated: Please see https://github.com/lydell/urix#deprecated dev: true + /url-parse/1.5.10: + resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==} + dependencies: + querystringify: 2.2.0 + requires-port: 1.0.0 + dev: true + /url/0.11.0: resolution: {integrity: sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ==} dependencies: @@ -17914,15 +17787,9 @@ packages: resolution: {integrity: sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==} dev: true - /w3c-hr-time/1.0.2: - resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==} - dependencies: - browser-process-hrtime: 1.0.0 - dev: true - - /w3c-xmlserializer/3.0.0: - resolution: {integrity: sha512-3WFqGEgSXIyGhOmAFtlicJNMjEps8b1MG31NCA0/vOF9+nKMUW1ckhi9cnNHmf88Rzw5V+dwIwsm2C7X8k9aQg==} - engines: {node: '>=12'} + /w3c-xmlserializer/4.0.0: + resolution: {integrity: sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==} + engines: {node: '>=14'} dependencies: xml-name-validator: 4.0.0 dev: true @@ -18220,14 +18087,6 @@ packages: engines: {node: '>=12'} dev: true - /whatwg-url/10.0.0: - resolution: {integrity: sha512-CLxxCmdUby142H5FZzn4D8ikO1cmypvXVQktsgosNy4a4BHrDHeciBBGZhb0bNoR5/MltoCatso+vFjjGx8t0w==} - engines: {node: '>=12'} - dependencies: - tr46: 3.0.0 - webidl-conversions: 7.0.0 - dev: true - /whatwg-url/11.0.0: resolution: {integrity: sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==} engines: {node: '>=12'} @@ -18364,14 +18223,6 @@ packages: signal-exit: 3.0.7 dev: true - /write-file-atomic/4.0.1: - resolution: {integrity: sha512-nSKUxgAbyioruk6hU87QzVbY279oYT6uiwgDoujth2ju4mJ+TZau7SQBhtbTmUyuNYTuXnSyRn66FV0+eCgcrQ==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16} - dependencies: - imurmurhash: 0.1.4 - signal-exit: 3.0.7 - dev: true - /write-file-atomic/4.0.2: resolution: {integrity: sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} @@ -18422,6 +18273,19 @@ packages: optional: true dev: true + /ws/8.16.0: + resolution: {integrity: sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + /ws/8.8.0: resolution: {integrity: sha512-JDAgSYQ1ksuwqfChJusw1LSJ8BizJ2e/vVu5Lxjq3YvNJNlROv1ui4i+c/kUUrPheBvQl4c5UbERhTwKa6QBJQ==} engines: {node: '>=10.0.0'} diff --git a/scripts/sync-pkgs-wireit-helpers.js b/scripts/sync-pkgs-wireit-helpers.js index 98c8437a9..ec009e4f6 100644 --- a/scripts/sync-pkgs-wireit-helpers.js +++ b/scripts/sync-pkgs-wireit-helpers.js @@ -223,7 +223,7 @@ function generateWireitConfig(pkg, rootPkg) { }, {}), "jest": { - "command": "nps jest:pkg", + "command": "jest --passWithNoTests", "files": [ "src/**/*.test.*", "../../.babelrc.js", @@ -236,8 +236,7 @@ function generateWireitConfig(pkg, rootPkg) { // 2. The CommonJS (`lib`) versions of library files (dependencies // and the package at issue). "dependencies": [ - "build:lib:cjs", - ...concat(devDeps, rootDeps).map((dep) => `../${dep}:build:lib:cjs`), + ...concat(deps, devDeps, rootDeps).map((dep) => `../${dep}:build`), ], "packageLocks": ["pnpm-lock.yaml"] }, diff --git a/scripts/sync-pkgs-wireit.js b/scripts/sync-pkgs-wireit.js index 451bf7b90..37b1652a9 100644 --- a/scripts/sync-pkgs-wireit.js +++ b/scripts/sync-pkgs-wireit.js @@ -80,7 +80,6 @@ const updateRootPkg = async ({ allPkgs }) => { { rootTask: "format:pkgs:fix", pkgTask: "format:fix" }, { rootTask: "lint:pkgs", pkgTask: "lint" }, { rootTask: "lint:pkgs:fix", pkgTask: "lint:fix" }, - { rootTask: "jest:pkgs", pkgTask: "jest" }, { rootTask: "types:check", pkgTask: "types:check" }, { rootTask: "types:create", pkgTask: "types:create" }, ].forEach(({ rootTask, pkgTask }) => { diff --git a/test/jest-config.js b/test/jest-config.js deleted file mode 100644 index 4de54508e..000000000 --- a/test/jest-config.js +++ /dev/null @@ -1,24 +0,0 @@ -const path = require("path"); -const ROOT = path.resolve(__dirname, ".."); -const BABEL_PATH = path.resolve(ROOT, ".babelrc.js"); // eslint-disable-line no-undef -const BABEL_TRANSFORM = ["babel-jest", { configFile: BABEL_PATH }]; - -module.exports = { - preset: "ts-jest", - testEnvironment: "jsdom", - rootDir: ROOT, - moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], - testPathIgnorePatterns: [ - "victory-native", - "node_modules", - "config", - "/es/", - "/lib/", - ], - transform: { - "^.+test\\.*[jt]sx?$": BABEL_TRANSFORM, - ".*/test/.+\\.*[jt]sx?$": BABEL_TRANSFORM, - }, - transformIgnorePatterns: ["/node_modules/", "/es/", "/lib/"], - setupFilesAfterEnv: ["/test/jest-setup.ts"], -}; diff --git a/test/jest.config.ts b/test/jest.config.ts new file mode 100644 index 000000000..f45f8afa2 --- /dev/null +++ b/test/jest.config.ts @@ -0,0 +1,9 @@ +// paths are relative to the root of the package they are executed in +const jestConfig = { + preset: "ts-jest", + testEnvironment: "jsdom", + testMatch: ["**/src/**/?(*.)+(spec|test).[jt]s?(x)"], + setupFilesAfterEnv: ["../../test/jest-setup.ts"], +}; + +export default jestConfig; diff --git a/test/node/victory.test.js b/test/node/victory.test.js deleted file mode 100644 index 703afb903..000000000 --- a/test/node/victory.test.js +++ /dev/null @@ -1,256 +0,0 @@ -/** - * Client tests - */ -const Victory = require("victory"); - -describe("victory", () => { - // eslint-disable-line max-statements - describe("exports victory components", () => { - it("exports VictoryAnimation", () => { - expect(Victory.VictoryAnimation).toBeDefined(); - }); - it("exports VictoryArea", () => { - expect(Victory.VictoryArea).toBeDefined(); - }); - it("exports VictoryAxis", () => { - expect(Victory.VictoryAxis).toBeDefined(); - }); - it("exports VictoryBar", () => { - expect(Victory.VictoryBar).toBeDefined(); - }); - it("exports VictoryBoxPlot", () => { - expect(Victory.VictoryBoxPlot).toBeDefined(); - }); - it("exports VictoryBrushContainer", () => { - expect(Victory.VictoryBrushContainer).toBeDefined(); - }); - it("exports VictoryBrushLine", () => { - expect(Victory.VictoryBrushLine).toBeDefined(); - }); - it("exports VictoryCandlestick", () => { - expect(Victory.VictoryCandlestick).toBeDefined(); - }); - it("exports VictoryChart", () => { - expect(Victory.VictoryChart).toBeDefined(); - }); - it("exports VictoryClipContainer", () => { - expect(Victory.VictoryClipContainer).toBeDefined(); - }); - it("exports VictoryContainer", () => { - expect(Victory.VictoryContainer).toBeDefined(); - }); - it("exports VictoryCursorContainer", () => { - expect(Victory.VictoryCursorContainer).toBeDefined(); - }); - it("exports VictoryErrorBar", () => { - expect(Victory.VictoryErrorBar).toBeDefined(); - }); - it("exports VictoryGroup", () => { - expect(Victory.VictoryGroup).toBeDefined(); - }); - it("exports VictoryLabel", () => { - expect(Victory.VictoryLabel).toBeDefined(); - }); - it("exports VictoryLegend", () => { - expect(Victory.VictoryLegend).toBeDefined(); - }); - it("exports VictoryLine", () => { - expect(Victory.VictoryLine).toBeDefined(); - }); - it("exports VictoryPie", () => { - expect(Victory.VictoryPie).toBeDefined(); - }); - it("exports VictoryPolarAxis", () => { - expect(Victory.VictoryPolarAxis).toBeDefined(); - }); - it("exports VictoryPortal", () => { - expect(Victory.VictoryPortal).toBeDefined(); - }); - it("exports VictoryScatter", () => { - expect(Victory.VictoryScatter).toBeDefined(); - }); - it("exports VictorySelectionContainer", () => { - expect(Victory.VictorySelectionContainer).toBeDefined(); - }); - it("exports VictorySharedEvents", () => { - expect(Victory.VictorySharedEvents).toBeDefined(); - }); - it("exports VictoryStack", () => { - expect(Victory.VictoryStack).toBeDefined(); - }); - it("exports VictoryTheme", () => { - expect(Victory.VictoryTheme).toBeDefined(); - }); - it("exports VictoryTransition", () => { - expect(Victory.VictoryTransition).toBeDefined(); - }); - it("exports VictoryTooltip", () => { - expect(Victory.VictoryTooltip).toBeDefined(); - }); - it("exports VictoryVoronoi", () => { - expect(Victory.VictoryVoronoi).toBeDefined(); - }); - it("exports VictoryVoronoiContainer", () => { - expect(Victory.VictoryVoronoiContainer).toBeDefined(); - }); - it("exports VictoryZoomContainer", () => { - expect(Victory.VictoryZoomContainer).toBeDefined(); - }); - }); - describe("exports primitive components", () => { - // eslint-disable-line max-statements - it("exports Area", () => { - expect(Victory.Area).toBeDefined(); - }); - it("exports Bar", () => { - expect(Victory.Bar).toBeDefined(); - }); - it("exports Border", () => { - expect(Victory.Border).toBeDefined(); - }); - it("exports Candle", () => { - expect(Victory.Candle).toBeDefined(); - }); - it("exports Circle", () => { - expect(Victory.Circle).toBeDefined(); - }); - it("exports ClipPath", () => { - expect(Victory.ClipPath).toBeDefined(); - }); - it("exports Curve", () => { - expect(Victory.Curve).toBeDefined(); - }); - it("exports ErrorBar", () => { - expect(Victory.ErrorBar).toBeDefined(); - }); - it("exports Flyout", () => { - expect(Victory.Flyout).toBeDefined(); - }); - it("exports LineSegment", () => { - expect(Victory.LineSegment).toBeDefined(); - }); - it("exports Line", () => { - expect(Victory.Line).toBeDefined(); - }); - it("exports Path", () => { - expect(Victory.Path).toBeDefined(); - }); - it("exports Point", () => { - expect(Victory.Point).toBeDefined(); - }); - it("exports Rect", () => { - expect(Victory.Rect).toBeDefined(); - }); - it("exports Slice", () => { - expect(Victory.Slice).toBeDefined(); - }); - it("exports Text", () => { - expect(Victory.Text).toBeDefined(); - }); - it("exports TSpan", () => { - expect(Victory.TSpan).toBeDefined(); - }); - it("exports Voronoi", () => { - expect(Victory.Voronoi).toBeDefined(); - }); - it("exports Whisker", () => { - expect(Victory.Whisker).toBeDefined(); - }); - }); - describe("exports helper components", () => { - // eslint-disable-line max-statements - it("exports addEvents", () => { - expect(Victory.addEvents).toBeDefined(); - }); - it("exports Axis", () => { - expect(Victory.Axis).toBeDefined(); - }); - it("exports brushContainerMixin", () => { - expect(Victory.brushContainerMixin).toBeDefined(); - }); - it("exports BrushHelpers", () => { - expect(Victory.BrushHelpers).toBeDefined(); - }); - it("exports Collection", () => { - expect(Victory.Collection).toBeDefined(); - }); - it("exports combineContainerMixins", () => { - expect(Victory.combineContainerMixins).toBeDefined(); - }); - it("exports createContainer", () => { - expect(Victory.createContainer).toBeDefined(); - }); - it("exports cursorContainerMixin", () => { - expect(Victory.cursorContainerMixin).toBeDefined(); - }); - it("exports CursorHelpers", () => { - expect(Victory.CursorHelpers).toBeDefined(); - }); - it("exports Data", () => { - expect(Victory.Data).toBeDefined(); - }); - it("exports DefaultTransitions", () => { - expect(Victory.DefaultTransitions).toBeDefined(); - }); - it("exports Domain", () => { - expect(Victory.Domain).toBeDefined(); - }); - it("exports Events", () => { - expect(Victory.Events).toBeDefined(); - }); - it("exports Helpers", () => { - expect(Victory.Helpers).toBeDefined(); - }); - it("exports LabelHelpers", () => { - expect(Victory.LabelHelpers).toBeDefined(); - }); - it("exports Log", () => { - expect(Victory.Log).toBeDefined(); - }); - it("exports makeCreateContainerFunction", () => { - expect(Victory.makeCreateContainerFunction).toBeDefined(); - }); - it("exports Portal", () => { - expect(Victory.Portal).toBeDefined(); - }); - it("exports RawZoomHelpers", () => { - expect(Victory.RawZoomHelpers).toBeDefined(); - }); - it("exports Scale", () => { - expect(Victory.Scale).toBeDefined(); - }); - it("exports Selection", () => { - expect(Victory.Selection).toBeDefined(); - }); - it("exports selectionContainerMixin", () => { - expect(Victory.selectionContainerMixin).toBeDefined(); - }); - it("exports SelectionHelpers", () => { - expect(Victory.SelectionHelpers).toBeDefined(); - }); - it("exports Style", () => { - expect(Victory.Style).toBeDefined(); - }); - it("exports TextSize", () => { - expect(Victory.TextSize).toBeDefined(); - }); - it("exports Transitions", () => { - expect(Victory.Transitions).toBeDefined(); - }); - it("exports voronoiContainerMixin", () => { - expect(Victory.voronoiContainerMixin).toBeDefined(); - }); - it("exports VoronoiHelpers", () => { - expect(Victory.VoronoiHelpers).toBeDefined(); - }); - it("exports Wrapper", () => { - expect(Victory.Wrapper).toBeDefined(); - }); - it("exports zoomContainerMixin", () => { - expect(Victory.zoomContainerMixin).toBeDefined(); - }); - it("exports ZoomHelpers", () => { - expect(Victory.ZoomHelpers).toBeDefined(); - }); - }); -});