Skip to content

Commit

Permalink
Merge pull request #110 from JohnsonMao/refactor/architectural
Browse files Browse the repository at this point in the history
Refactor/architectural
  • Loading branch information
JohnsonMao authored Oct 29, 2023
2 parents 52326bf + a08ff93 commit b6e79ab
Show file tree
Hide file tree
Showing 29 changed files with 2,108 additions and 1,831 deletions.
14 changes: 7 additions & 7 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ const createJestConfig = nextJest({ dir: './' });
// Add any custom config to be passed to Jest
/** @type {import('jest').Config} */
const jestConfig = {
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
setupFilesAfterEnv: ['<rootDir>/tests/jest.setup.js'],
testEnvironment: 'jest-environment-jsdom',
collectCoverageFrom: [
'<rootDir>/src/**/*.{ts,tsx}',
'!<rootDir>/src/middleware.ts',
'!<rootDir>/src/app/*.tsx',
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^~/(.*)$': '<rootDir>/$1',
},
collectCoverageFrom: [
'./src/components/**',
'./src/hooks/**',
'./src/plugins/**',
'./src/utils/**',
],
};

// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
Expand Down
42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,51 +15,51 @@
"clsx": "^1.2.1",
"feed": "^4.2.2",
"github-slugger": "^2.0.0",
"next": "13.4.12",
"next": "^13.5.6",
"next-mdx-remote": "^4.4.1",
"next-nprogress-bar": "^2.1.2",
"next-sitemap": "^4.2.2",
"next-sitemap": "^4.2.3",
"next-themes": "^0.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-icons": "^4.10.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.11.0",
"rehype-code-titles": "^1.2.0",
"rehype-prism-plus": "^1.6.3",
"rehype-slug": "^5.1.0",
"remark-gfm": "^3.0.1",
"sharp": "^0.32.5",
"sharp": "^0.32.6",
"tailwind-merge": "^1.14.0",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@svgr/webpack": "^7.0.0",
"@tailwindcss/typography": "^0.5.9",
"@tailwindcss/typography": "^0.5.10",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/js-yaml": "^4.0.5",
"@types/node": "^18.17.6",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"@testing-library/user-event": "^14.5.1",
"@types/js-yaml": "^4.0.8",
"@types/node": "^18.18.7",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/testing-library__jest-dom": "^5.14.9",
"@types/unist": "^3.0.0",
"@types/unist": "^3.0.1",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"autoprefixer": "^10.4.15",
"eslint": "^8.47.0",
"eslint-config-next": "^13.4.19",
"autoprefixer": "^10.4.16",
"eslint": "^8.52.0",
"eslint-config-next": "^13.5.6",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-sonarjs": "^0.19.0",
"eslint-plugin-tailwindcss": "^3.13.0",
"jest": "^29.6.2",
"jest-environment-jsdom": "^29.6.2",
"postcss": "^8.4.28",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"postcss": "^8.4.31",
"postcss-import": "^15.1.0",
"postcss-load-config": "^4.0.1",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.2.8",
"tailwindcss": "^3.3.3",
"typescript": "^5.1.6"
"tailwindcss": "^3.3.5",
"typescript": "^5.2.2"
},
"browserslist": [
"defaults and supports es6-module",
Expand Down
Loading

0 comments on commit b6e79ab

Please sign in to comment.