Skip to content

Commit

Permalink
Add jest simple test in util folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Draikth committed Jul 8, 2024
1 parent 2b77a01 commit e1efd48
Show file tree
Hide file tree
Showing 5 changed files with 2,231 additions and 60 deletions.
14 changes: 14 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import nextJest from 'next/jest.js';

// https://nextjs.org/docs/app/building-your-application/testing/jest
const createJestConfig = nextJest({
dir: './',
});

/** @type {import('jest').Config} */
const config = {
testEnvironment: 'jest-environment-jsdom',
testPathIgnorePatterns: ['<rootDir>/playwright/'],
};

export default createJestConfig(config);
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@ts-safeql/eslint-plugin": "^3.3.1",
"@types/bcrypt": "^5.0.2",
"@types/dotenv-safe": "^8.1.6",
"@types/node": "^20.14.10",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"eslint-config-upleveled": "^8.5.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"libpg-query": "^16.2.0",
"prettier": "^3.3.2",
"prettier-plugin-embed": "^0.4.15",
Expand Down
Loading

0 comments on commit e1efd48

Please sign in to comment.