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 d8009f3
Show file tree
Hide file tree
Showing 6 changed files with 16 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
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
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 Grid, { GridProps } from "../../../../lib/components/internal/grid";
import gridStyles from "../../../../lib/components/internal/grid/styles.css.js";

const defaultProps: GridProps = {
rows: 1,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -18,5 +18,5 @@
"strict": true
},
"include": ["src", "types"],
"exclude": ["**/*.test.tsx"]
"exclude": ["**/__tests__/**"]
}
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
3 changes: 2 additions & 1 deletion vite.unit.config.js
Expand Up @@ -6,8 +6,9 @@ import base from "./vite.config.js";
// https://vitejs.dev/config/
export default defineConfig({
...base,
root: "./",
test: {
include: ["./src/**/__tests__/**/*.test.{ts,tsx}"],
environment: "jsdom",
dir: "./src",
},
});

0 comments on commit d8009f3

Please sign in to comment.