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
2 changes: 2 additions & 0 deletions .changeset/two-dancers-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
3 changes: 2 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ export default tseslint.config([
jest: pluginJest,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a config block for all test files, and we do still have jest in a few packages (for now)

},
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/unbound-method': 'off',
'jest/unbound-method': 'error',
},
Expand Down Expand Up @@ -365,7 +366,7 @@ export default tseslint.config([
},
{
name: 'packages/clerk-js - vitest',
files: ['packages/clerk-js/src/**/*.spec.{ts,tsx}'],
files: ['packages/clerk-js/src/**/*.test.{ts,tsx}'],
rules: {
'jest/unbound-method': 'off',
'@typescript-eslint/unbound-method': 'off',
Expand Down
62 changes: 0 additions & 62 deletions packages/clerk-js/jest.config.js

This file was deleted.

21 changes: 0 additions & 21 deletions packages/clerk-js/jest.jsdom-with-timezone.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/clerk-js/jest.setup-after-env.ts

This file was deleted.

76 changes: 0 additions & 76 deletions packages/clerk-js/jest.setup.ts

This file was deleted.

8 changes: 1 addition & 7 deletions packages/clerk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,10 @@
"lint": "eslint src",
"lint:attw": "attw --pack . --profile node16 --ignore-rules named-exports",
"lint:publint": "publint || true",
"test": "jest && vitest --watch=false",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%",
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html",
"test:jest": "jest",
"test": "vitest --watch=false",
"test:sandbox:integration": "playwright test",
"test:sandbox:integration:ui": "playwright test --ui",
"test:sandbox:integration:update-snapshots": "playwright test --update-snapshots",
"test:vitest": "vitest",
"watch": "rspack build --config rspack.config.js --env production --watch"
},
"browserslist": "last 2 years",
Expand Down Expand Up @@ -97,7 +92,6 @@
"@rspack/core": "^1.4.11",
"@rspack/plugin-react-refresh": "^1.5.0",
"@svgr/webpack": "^6.5.1",
"@swc/jest": "0.2.39",
"@types/cloudflare-turnstile": "^0.2.2",
"@types/node": "^22.18.1",
"@types/webpack-env": "^1.18.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const mockEnvironmentFetch = vi.fn();
vi.mock('../resources/Client');
vi.mock('../resources/Environment');

// Because Jest, don't ask me why...
vi.mock('../auth/devBrowser', () => ({
createDevBrowser: (): DevBrowser => ({
clear: vi.fn(),
Expand Down
Loading