Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
cache: 'npm'

- name: Install dependencies
run: npm ci
run: npm install

- name: Run linter
run: npm run lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci
run: npm install

- name: Build
run: npm run build
Expand Down
2 changes: 1 addition & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"aliases": {
"components": "@/components",
"utils": "@/lib"
"utils": "@/lib/utils"
},
"iconLibrary": "lucide"
}
3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export default defineConfig(
}
},
rules: {
// TypeScript already handles import resolution; the import plugin's resolver
// doesn't support package.json `exports` fields on some packages (e.g. react-hook-form).
"import/no-unresolved": "off",
"no-unused-vars": "off",
"react/jsx-uses-vars": "error",
"react/jsx-uses-react": "error",
Expand Down
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const config: JestConfigWithTsJest = {
'^@/(.*)$': '<rootDir>/src/$1',
'lucide-react': '<rootDir>/node_modules/lucide-react/dist/cjs/lucide-react.js',
},
setupFiles: ['<rootDir>/jest.setup.js'],
};

export default config;
15 changes: 15 additions & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const ResizeObserverMock = jest.fn().mockImplementation(() => ({
disconnect: jest.fn(),
observe: jest.fn(),
unobserve: jest.fn(),
}));

Object.defineProperty(window, 'ResizeObserver', { value: ResizeObserverMock });

// Mock pointer capture APIs for Radix UI components in jsdom
window.HTMLElement.prototype.hasPointerCapture = jest.fn();
window.HTMLElement.prototype.setPointerCapture = jest.fn();
window.HTMLElement.prototype.releasePointerCapture = jest.fn();

// Mock scrollIntoView for Radix UI components in jsdom
window.HTMLElement.prototype.scrollIntoView = jest.fn();
Loading
Loading