Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions jest.config.ts → jest.config.mjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
import type { Config } from 'jest';
import nextJest from 'next/jest.js';

const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
dir: './',
});

const config: Config = {
/** @type {import('jest').Config} */
const config = {
coverageProvider: 'v8',
testEnvironment: 'jsdom',
transform: {
'node_modules/@t3-oss/.+\\.js$': ['ts-jest', {}],
},
transformIgnorePatterns: ['/node_modules/(?!@t3-oss)'],
setupFilesAfterEnv: ['<rootDir>/src/test/test-setup.ts'],
extensionsToTreatAsEsm: ['.ts', '.tsx'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
}
};

// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-menu",
"version": "0.0.70",
"version": "0.0.71",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -19,16 +19,16 @@
"lint:fix": "next lint --fix",
"preview": "next build && next start",
"start": "next start",
"test": "jest",
"test:watch": "jest --watch",
"typecheck": "tsc --noEmit",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"test": "jest",
"test:watch": "jest --watch",
"knip": "knip"
},
"dependencies": {
"@clerk/nextjs": "^6.20.2",
"@clerk/themes": "2.2.48",
"@clerk/nextjs": "^6.21.0",
"@clerk/themes": "2.2.49",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
Expand All @@ -51,7 +51,7 @@
"@radix-ui/react-tabs": "^1.1.12",
"@radix-ui/react-toast": "^1.2.14",
"@radix-ui/react-tooltip": "^1.2.7",
"@sentry/nextjs": "9.25.0",
"@sentry/nextjs": "9.26.0",
"@stripe/react-stripe-js": "^3.7.0",
"@stripe/stripe-js": "^7.3.1",
"@t3-oss/env-nextjs": "^0.13.6",
Expand All @@ -67,7 +67,7 @@
"embla-carousel-react": "^8.6.0",
"geist": "^1.4.2",
"jotai": "^2.12.4",
"lucide-react": "^0.511.0",
"lucide-react": "^0.513.0",
"next": "15.3.2",
"next-themes": "^0.4.6",
"postgres": "^3.4.5",
Expand All @@ -89,7 +89,7 @@
"tailwindcss-animate": "^1.0.7",
"truncate-middle": "^2.0.1",
"vaul": "^1.1.2",
"zod": "3.25.49"
"zod": "3.25.51"
},
"devDependencies": {
"@chromatic-com/storybook": "3.2.6",
Expand Down
Loading