From e88092f1e4622b4cea5f2d88fcee9e20bb7f8dab Mon Sep 17 00:00:00 2001 From: matttdawson <89495499+matttdawson@users.noreply.github.com> Date: Mon, 3 Feb 2025 09:08:04 +1300 Subject: [PATCH] vitest import fix --- package-lock.json | 5 +++-- package.json | 6 +++--- src/contexts/GridContextProvider.test.tsx | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index e7f20355..d3a3bcc1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,6 @@ "dependencies": { "clsx": "^2.1.1", "debounce-promise": "^3.1.2", - "lodash-es": ">=4", "matcher": "^5.0.0", "react-transition-state": "^2.2.0", "usehooks-ts": "^3.1.0" @@ -48,6 +47,7 @@ "chromatic": "^11.25.1", "css-loader": "^7.1.2", "jsdom": "^26.0.0", + "lodash-es": "^4.17.21", "mkdirp": "^3.0.1", "npm-run-all": "^4.1.5", "postcss": "^8.5.1", @@ -14582,7 +14582,8 @@ "node_modules/lodash-es": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", - "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" + "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", + "dev": true }, "node_modules/lodash.camelcase": { "version": "4.3.0", diff --git a/package.json b/package.json index 40b9c0e1..fd5b4014 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "react", "react-component" ], - "main": "dist/step-ag-grid.cjs.js", + "main": "dist/step-ag-grid.cjs", "type": "module", "typings": "dist/src/index.d.ts", "module": "dist/step-ag-grid.esm.js", @@ -37,14 +37,13 @@ "dependencies": { "clsx": "^2.1.1", "debounce-promise": "^3.1.2", - "lodash-es": ">=4", "matcher": "^5.0.0", "react-transition-state": "^2.2.0", "usehooks-ts": "^3.1.0" }, "scripts": { "build": "run-s clean stylelint lint css bundle", - "yalc": "run-s clean css bundle && yalc publish", + "yalc": "run-s clean css bundle && yalc push", "clean": "rimraf dist && mkdirp ./dist", "bundle": "rollup -c", "stylelint": "stylelint src/**/*.scss src/**/*.css --fix", @@ -109,6 +108,7 @@ "chromatic": "^11.25.1", "css-loader": "^7.1.2", "jsdom": "^26.0.0", + "lodash-es": "^4.17.21", "mkdirp": "^3.0.1", "npm-run-all": "^4.1.5", "postcss": "^8.5.1", diff --git a/src/contexts/GridContextProvider.test.tsx b/src/contexts/GridContextProvider.test.tsx index 3d6738b7..e8b0d2a5 100644 --- a/src/contexts/GridContextProvider.test.tsx +++ b/src/contexts/GridContextProvider.test.tsx @@ -1,4 +1,5 @@ import { ValueFormatterParams } from 'ag-grid-community'; +import { describe, expect, test } from 'vitest'; import { downloadCsvUseValueFormattersProcessCellCallback as Dpcc } from './GridContextProvider';