diff --git a/package-lock.json b/package-lock.json index c0f7089b..8e05ea32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7158,22 +7158,25 @@ } }, "vitest": { - "version": "0.23.4", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.23.4.tgz", - "integrity": "sha512-iukBNWqQAv8EKDBUNntspLp9SfpaVFbmzmM0sNcnTxASQZMzRw3PsM6DMlsHiI+I6GeO5/sYDg3ecpC+SNFLrQ==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.25.2.tgz", + "integrity": "sha512-qqkzfzglEFbQY7IGkgSJkdOhoqHjwAao/OrphnHboeYHC5JzsVFoLCaB2lnAy8krhj7sbrFTVRApzpkTOeuDWQ==", "dev": true, "requires": { "@types/chai": "^4.3.3", "@types/chai-subset": "^1.3.3", "@types/node": "*", + "acorn": "^8.8.0", + "acorn-walk": "^8.2.0", "chai": "^4.3.6", "debug": "^4.3.4", "local-pkg": "^0.4.2", - "strip-literal": "^0.4.1", - "tinybench": "^2.1.5", + "source-map": "^0.6.1", + "strip-literal": "^0.4.2", + "tinybench": "^2.3.1", "tinypool": "^0.3.0", "tinyspy": "^1.0.2", - "vite": "^2.9.12 || ^3.0.0-0" + "vite": "^3.0.0" } }, "w3c-xmlserializer": { diff --git a/package.json b/package.json index 5c9a56dc..2253738d 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "react-router-dom": "^6.4.3", "typescript": "^4.9.3", "vite": "^3.2.4", - "vitest": "^0.23.4" + "vitest": "^0.25.2" }, "lint-staged": { "*.{js,jsx,ts,tsx}": [ diff --git a/src/internal/grid/grid.test.tsx b/src/internal/grid/grid.test.tsx index 6469fbfb..abc9c1cd 100644 --- a/src/internal/grid/grid.test.tsx +++ b/src/internal/grid/grid.test.tsx @@ -3,7 +3,7 @@ import { render } from "@testing-library/react"; import { expect, test } from "vitest"; import Grid, { GridProps } from "../../../lib/components/internal/grid"; -import gridStyles from "../../../lib/components/internal/grid/styles.selectors.js"; +import gridStyles from "../../../lib/components/internal/grid/styles.css.js"; const defaultProps: GridProps = { rows: 1, diff --git a/vite.e2e.config.js b/vite.e2e.config.js index 8272778a..4ed5fb74 100644 --- a/vite.e2e.config.js +++ b/vite.e2e.config.js @@ -9,8 +9,8 @@ export default defineConfig({ root: "./", test: { environment: "node", - dir: "./test", testTimeout: 60000, + include: ["./test/**/*.test.ts"], setupFiles: ["./test/test-setup.ts"], globalSetup: ["./test/global-setup.ts"], }, diff --git a/vite.unit.config.js b/vite.unit.config.js index e78ee7f4..c220f3cb 100644 --- a/vite.unit.config.js +++ b/vite.unit.config.js @@ -6,8 +6,8 @@ import base from "./vite.config.js"; // https://vitejs.dev/config/ export default defineConfig({ ...base, + root: "./src", test: { environment: "jsdom", - dir: "./src", }, });