Skip to content

Commit

Permalink
✅ test: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Nov 1, 2023
1 parent b197f95 commit 0b28e75
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?

coverage
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"dev": "vite",
"lint": "eslint \"{src,api,docs}/**/*.{js,jsx,ts,tsx}\" --fix",
"preview": "vite preview",
"test": "vitest --passWithNoTests",
"test:coverage": "vitest --coverage --passWithNoTests",
"type-check": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -29,6 +31,7 @@
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react-swc": "^3.3.2",
"@vitest/coverage-v8": "latest",
"commitlint": "^17",
"eslint": "^8.45.0",
"eslint-plugin-react-hooks": "^4.6.0",
Expand All @@ -39,6 +42,7 @@
"semantic-release": "^21",
"stylelint": "^15",
"typescript": "^5.0.2",
"vite": "^4.4.5"
"vite": "^4.4.5",
"vitest": "latest"
}
}
8 changes: 8 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
environment: 'node',
globals: true,
},
});

0 comments on commit 0b28e75

Please sign in to comment.