Skip to content

Commit

Permalink
chore: upgrade vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris committed Nov 18, 2022
1 parent 30e51e2 commit 52d92e7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
15 changes: 9 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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}": [
Expand Down
2 changes: 1 addition & 1 deletion src/internal/grid/grid.test.tsx
Expand Up @@ -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,
Expand Down
5 changes: 2 additions & 3 deletions vite.e2e.config.js
Expand Up @@ -6,12 +6,11 @@ import base from "./vite.config.js";
// https://vitejs.dev/config/
export default defineConfig({
...base,
root: "./",
root: "./test",
test: {
environment: "node",
dir: "./test",
testTimeout: 60000,
setupFiles: ["./test/test-setup.ts"],
setupFiles: ["./test-setup.ts"],
globalSetup: ["./test/global-setup.ts"],
},
});
2 changes: 1 addition & 1 deletion vite.unit.config.js
Expand Up @@ -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",
},
});

0 comments on commit 52d92e7

Please sign in to comment.