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 c257196
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 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
2 changes: 1 addition & 1 deletion vite.e2e.config.js
Expand Up @@ -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"],
},
Expand Down
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 c257196

Please sign in to comment.