From 31812517602ef99c6ae1a1f7b6e86bb9ee27a44d Mon Sep 17 00:00:00 2001 From: Geoffrey Chong Date: Mon, 2 Sep 2024 13:26:33 +1000 Subject: [PATCH] fixups --- package.json | 2 +- packages/components/package.json | 3 +- packages/components/svgo.spec.ts | 2 ++ pnpm-lock.yaml | 50 ++++++++++++++++---------------- 4 files changed, 29 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index 8e218d59b7c..cb4a3245790 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@storybook/test": "^8.2.9", "@storybook/theming": "^8.2.9", "@stylistic/eslint-plugin": "^2.6.4", - "@testing-library/jest-dom": "^6.4.8", + "@testing-library/jest-dom": "^6.5.0", "@testing-library/react": "^16.0.0", "@testing-library/user-event": "^14.5.2", "@types/node": "^20.14.12", diff --git a/packages/components/package.json b/packages/components/package.json index a4025f9d9c5..07160ad9d04 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -40,7 +40,7 @@ "build:global-styles": "postcss ./styles/global.css --output dist/global.css", "build:combine-styles": "concat-cli -f ./dist/global.css ./dist/styles.css -o ./dist/styles.css && rm ./dist/global.css", "build:styles": "pnpm build:global-styles && pnpm build:combine-styles", - "test": "vitest --config ../../vite.config.ts", + "test": "FORCE_COLOR=1 vitest --config ../../vite.config.ts", "update-icons": "./src/Icon/bin/update-icons.sh", "i18n:extract": "pnpm i18n-extract", "clean": "rimraf 'dist' 'node_modules' '.turbo'", @@ -107,7 +107,6 @@ "@kaizen/package-bundler": "workspace:*", "@tanstack/react-query": "^5.51.23", "@testing-library/dom": "^10.4.0", - "@testing-library/jest-dom": "^6.5.0", "@types/lodash.debounce": "^4.0.9", "@types/react-highlight": "^0.12.8", "@types/react-textfit": "^1.1.4", diff --git a/packages/components/svgo.spec.ts b/packages/components/svgo.spec.ts index dc75d337919..93cab4b5621 100644 --- a/packages/components/svgo.spec.ts +++ b/packages/components/svgo.spec.ts @@ -1,3 +1,5 @@ +import { describe } from "vitest" + const { removeRootSVGElement, replaceAttrKeys, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1a0d893283c..d02ed40fe3d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -61,8 +61,8 @@ importers: specifier: ^2.6.4 version: 2.6.4(eslint@8.57.0)(typescript@5.5.4) '@testing-library/jest-dom': - specifier: ^6.4.8 - version: 6.4.8 + specifier: ^6.5.0 + version: 6.5.0 '@testing-library/react': specifier: ^16.0.0 version: 16.0.0(@testing-library/dom@10.1.0)(@types/react-dom@18.3.0)(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -401,9 +401,6 @@ importers: '@testing-library/dom': specifier: ^10.4.0 version: 10.4.0 - '@testing-library/jest-dom': - specifier: ^6.5.0 - version: 6.5.0 '@types/lodash.debounce': specifier: ^4.0.9 version: 4.0.9 @@ -1923,6 +1920,11 @@ packages: '@cultureamp/next-head-hook': '>=1 || ~0.0.0' next: '>=13.5.0' react: '>=16.14.0' + peerDependenciesMeta: + '@cultureamp/next-head-hook': + optional: true + next: + optional: true '@cultureamp/frontend-env@2.1.2': resolution: {integrity: sha512-0GBVGeJDeQL+XmUMvIbUjSsJiRxb46RRTuDhfbB0aViwZ3tG7t88GbnPznolCrp7d+xj0TaknbGS80kzgXL/1w==, tarball: https://npm.pkg.github.com/download/@cultureamp/frontend-env/2.1.2/3478449ef282fcb929efc4f3955531ad3f0cdaca} @@ -1934,6 +1936,9 @@ packages: '@cultureamp/frontend-apis': '>=9 || ~0.0.0' next: '>=13.5.0' react: ^18.2.0 + peerDependenciesMeta: + next: + optional: true '@cultureamp/next-head-hook@1.1.11': resolution: {integrity: sha512-FyaCA3oKHnxZ+pPHcPTCDoRCG4/1y0W16U1O5eyTgSxjuJfWTui3vz65MNvNxlJ20+DZ8BXmV3M0y93t/Fubog==, tarball: https://npm.pkg.github.com/download/@cultureamp/next-head-hook/1.1.11/5444465f7d6ce0d79ba33d60180245ed245956ad} @@ -3821,10 +3826,6 @@ packages: vitest: optional: true - '@testing-library/jest-dom@6.4.8': - resolution: {integrity: sha512-JD0G+Zc38f5MBHA4NgxQMR5XtO5Jx9g86jqturNTt2WUfRmLDIY7iKkWHDCCTiDuFMre6nxAD5wHw9W5kI4rGw==} - engines: {node: '>=14', npm: '>=6', yarn: '>=1'} - '@testing-library/jest-dom@6.5.0': resolution: {integrity: sha512-xGGHpBXYSHUUr6XsKBfs85TWlYKpTc37cSBBVrXcib2MkHLboWlkClhWF37JKlDb9KEq3dHs+f2xR7XJEWGBxA==} engines: {node: '>=14', npm: '>=6', yarn: '>=1'} @@ -12275,7 +12276,6 @@ snapshots: dependencies: '@cultureamp/fetch-sgw': 2.0.4(@cultureamp/fetch@4.0.2(encoding@0.1.13))(encoding@0.1.13) '@cultureamp/frontend-env': 2.1.2 - '@cultureamp/next-head-hook': 1.1.11(next@14.2.3(@babel/core@7.25.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)) '@cultureamp/redirect-to-login': 2.0.3 '@readme/openapi-parser': 2.6.0(openapi-types@12.1.3) '@tanstack/react-query': 5.51.23(react@18.3.1) @@ -12288,7 +12288,6 @@ snapshots: js-yaml: 4.1.0 jsrsasign: 11.1.0 msw: 2.2.14(typescript@5.5.4) - next: 14.2.3(@babel/core@7.25.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8) openapi-types: 12.1.3 openapi-typescript: 6.7.6 react: 18.3.1 @@ -12297,6 +12296,9 @@ snapshots: url-parse: 1.5.10 uuid: 9.0.1 yargs: 17.7.2 + optionalDependencies: + '@cultureamp/next-head-hook': 1.1.11(next@14.2.3(@babel/core@7.25.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)) + next: 14.2.3(@babel/core@7.25.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8) transitivePeerDependencies: - '@chromatic-com/cypress' - '@chromatic-com/playwright' @@ -12324,11 +12326,12 @@ snapshots: isomorphic-resolve: 1.0.0 json-stable-stringify: 1.1.1 limiter-es6-compat: 2.1.2 - next: 14.2.3(@babel/core@7.25.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8) react: 18.3.1 react-intl: 6.6.8(react@18.3.1)(typescript@5.5.4) smartling-api-sdk-nodejs: 2.11.0(encoding@0.1.13) yargs: 17.7.2 + optionalDependencies: + next: 14.2.3(@babel/core@7.25.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8) transitivePeerDependencies: - '@glimmer/env' - '@glimmer/reference' @@ -12348,6 +12351,7 @@ snapshots: dependencies: next: 14.2.3(@babel/core@7.25.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8) react: 18.3.1 + optional: true '@cultureamp/redirect-to-login@2.0.3': {} @@ -13042,7 +13046,8 @@ snapshots: outvariant: 1.4.2 strict-event-emitter: 0.5.1 - '@next/env@14.2.3': {} + '@next/env@14.2.3': + optional: true '@next/swc-darwin-arm64@14.2.3': optional: true @@ -14807,6 +14812,7 @@ snapshots: dependencies: '@swc/counter': 0.1.3 tslib: 2.6.3 + optional: true '@swc/jest@0.2.36(@swc/core@1.7.10(@swc/helpers@0.5.11))': dependencies: @@ -14864,17 +14870,6 @@ snapshots: jest: 29.7.0(@types/node@20.14.15)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.7.10(@swc/helpers@0.5.11))(@types/node@20.14.15)(typescript@5.5.4)) vitest: 2.0.5(@types/node@20.14.15)(jsdom@20.0.3)(less@4.2.0)(sass@1.77.8)(stylus@0.62.0)(terser@5.31.5) - '@testing-library/jest-dom@6.4.8': - dependencies: - '@adobe/css-tools': 4.4.0 - '@babel/runtime': 7.25.0 - aria-query: 5.3.0 - chalk: 3.0.0 - css.escape: 1.5.1 - dom-accessibility-api: 0.6.3 - lodash: 4.17.21 - redent: 3.0.0 - '@testing-library/jest-dom@6.5.0': dependencies: '@adobe/css-tools': 4.4.0 @@ -15963,6 +15958,7 @@ snapshots: busboy@1.6.0: dependencies: streamsearch: 1.1.0 + optional: true bytes@3.1.2: {} @@ -19727,6 +19723,7 @@ snapshots: transitivePeerDependencies: - '@babel/core' - babel-plugin-macros + optional: true no-case@3.0.4: dependencies: @@ -20936,6 +20933,7 @@ snapshots: nanoid: 3.3.7 picocolors: 1.0.1 source-map-js: 1.2.0 + optional: true postcss@8.4.41: dependencies: @@ -21970,7 +21968,8 @@ snapshots: - supports-color - utf-8-validate - streamsearch@1.1.0: {} + streamsearch@1.1.0: + optional: true strict-event-emitter@0.5.1: {} @@ -22111,6 +22110,7 @@ snapshots: react: 18.3.1 optionalDependencies: '@babel/core': 7.25.2 + optional: true stylehacks@5.1.1(postcss@8.4.41): dependencies: