-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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: update vitest version v0.34 to V2.11 #16676
Changes from 10 commits
ef367ad
937d6e6
936c15e
58282e9
40a936a
3e2ffcb
a1a713d
56492a4
9d743b4
e4ea6f8
adb09fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,14 +16,13 @@ const _testWithAndWithoutOrg = ( | |
const t = mode === "only" ? test.only : mode === "skip" ? test.skip : test; | ||
t( | ||
`${description} - With org`, | ||
async ({ emails, sms, meta, task, onTestFailed, expect, skip }) => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Meta is no longer coming from the base vitest test - |
||
async ({ emails, sms, task, onTestFailed, expect, skip, onTestFinished }) => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to include onTestFinished now when expanding base fixtures |
||
const org = await createOrganization({ | ||
name: "Test Org", | ||
slug: "testorg", | ||
}); | ||
|
||
await fn({ | ||
meta, | ||
task, | ||
onTestFailed, | ||
expect, | ||
|
@@ -34,23 +33,24 @@ const _testWithAndWithoutOrg = ( | |
organization: org, | ||
urlOrigin: `${WEBSITE_PROTOCOL}//${org.slug}.cal.local:3000`, | ||
}, | ||
onTestFinished, | ||
}); | ||
}, | ||
timeout | ||
); | ||
|
||
t( | ||
`${description}`, | ||
async ({ emails, sms, meta, task, onTestFailed, expect, skip }) => { | ||
async ({ emails, sms, task, onTestFailed, expect, skip, onTestFinished }) => { | ||
await fn({ | ||
emails, | ||
sms, | ||
meta, | ||
task, | ||
onTestFailed, | ||
expect, | ||
skip, | ||
org: null, | ||
onTestFinished, | ||
}); | ||
}, | ||
timeout | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ | |
"test-e2e:embed-react": "yarn db-seed && yarn e2e:embed-react", | ||
"test-playwright": "yarn playwright test --config=playwright.config.ts", | ||
"test": "vitest run", | ||
"test:ui": "vitest --ui", | ||
"type-check": "turbo run type-check", | ||
"type-check:ci": "turbo run type-check:ci --log-prefix=none", | ||
"web": "yarn workspace @calcom/web", | ||
|
@@ -85,8 +86,10 @@ | |
"@playwright/test": "^1.45.3", | ||
"@snaplet/copycat": "^4.1.0", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^16.0.1", | ||
"@types/jsdom": "^21.1.3", | ||
"@types/jsonwebtoken": "^9.0.3", | ||
"@vitest/ui": "^2.1.1", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dev dep to get a lovely UI for running tests https://vitest.dev/guide/ui |
||
"c8": "^7.13.0", | ||
"checkly": "latest", | ||
"dotenv-checker": "^1.1.5", | ||
|
@@ -104,9 +107,9 @@ | |
"resize-observer-polyfill": "^1.5.1", | ||
"tsc-absolute": "^1.0.0", | ||
"typescript": "^4.9.4", | ||
"vitest": "^0.34.6", | ||
"vitest-fetch-mock": "^0.2.2", | ||
"vitest-mock-extended": "^1.1.3" | ||
"vitest": "^2.1.1", | ||
"vitest-fetch-mock": "^0.3.0", | ||
"vitest-mock-extended": "^2.0.2" | ||
}, | ||
"dependencies": { | ||
"@daily-co/daily-js": "^0.59.0", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These dont need object containing as theyre exact matches