Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(nextjs): vitest #4298

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft
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/small-cougars-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
293 changes: 292 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions packages/nextjs/jest.config.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/nextjs/jest.setup.js

This file was deleted.

7 changes: 3 additions & 4 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@
"lint:attw": "attw --pack . --ignore-rules no-resolution unexpected-module-syntax",
"lint:publint": "publint",
"publish:local": "npx yalc push --replace --sig",
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%"
"test": "vitest"
},
"dependencies": {
"@clerk/backend": "1.15.1",
Expand All @@ -82,7 +80,8 @@
"@types/react": "*",
"@types/react-dom": "*",
"next": "^14.2.10",
"typescript": "*"
"typescript": "*",
"vitest": "2.1.2"
},
"peerDependencies": {
"next": "^13.5.4 || ^14.0.3 || >=15.0.0-rc",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`/client public exports should not include a breaking change 1`] = `
exports[`/client public exports > should not include a breaking change 1`] = `
{
"ClerkProvider": [Function],
}
Expand Down
2 changes: 2 additions & 0 deletions packages/nextjs/src/pages/__tests__/exports.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { describe, expect, it } from 'vitest';

import * as publicExports from '../ClerkProvider';

describe('/client public exports', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/nextjs/src/pages/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { expectTypeOf } from 'expect-type';
import { describe, it } from 'vitest';

import type { ClerkProvider } from '../ClerkProvider';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`/server public exports should not include a breaking change 1`] = `
exports[`/server public exports > should not include a breaking change 1`] = `
[
"auth",
"buildClerkProps",
Expand Down
Loading
Loading