diff --git a/docs/.vitepress/components/FeaturesList.vue b/docs/.vitepress/components/FeaturesList.vue index 30aadf30f..81be1d95d 100644 --- a/docs/.vitepress/components/FeaturesList.vue +++ b/docs/.vitepress/components/FeaturesList.vue @@ -6,7 +6,7 @@ > Vite's config, transformers, resolvers, and plugins Use the same setup from your app to run the tests! - Smart & instant watch mode, like HMR for tests! + Smart & instant watch mode, like HMR for tests! Component testing for Vue, React, Svelte, Lit, Marko and more Out-of-the-box TypeScript / JSX support ESM first, top level await diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 7f0d4c62c..929c93b49 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -14,7 +14,6 @@ import { ogImage, ogUrl, releases, - twitter, vitestDescription, vitestName, } from './meta' @@ -107,7 +106,6 @@ export default ({ mode }: { mode: string }) => { socialLinks: [ { icon: 'bluesky', link: bluesky }, { icon: 'mastodon', link: mastodon }, - { icon: 'x', link: twitter }, { icon: 'discord', link: discord }, { icon: 'github', link: github }, ], diff --git a/docs/.vitepress/contributors.ts b/docs/.vitepress/contributors.ts index ba074b509..31d660c2c 100644 --- a/docs/.vitepress/contributors.ts +++ b/docs/.vitepress/contributors.ts @@ -9,7 +9,6 @@ export interface Contributor { export interface CoreTeam extends DefaultTheme.TeamMember { // required to download avatars from GitHub github: string - twitter?: string bluesky?: string mastodon?: string discord?: string @@ -46,10 +45,6 @@ function createLinks(tm: CoreTeam): CoreTeam { tm.links.push({ icon: 'youtube', link: `https://www.youtube.com/@${tm.youtube}` }) } - if (tm.twitter) { - tm.links.push({ icon: 'x', link: `https://twitter.com/${tm.twitter}` }) - } - return tm } @@ -60,7 +55,6 @@ const plainTeamMembers: CoreTeam[] = [ github: 'sheremet-va', bluesky: 'https://bsky.app/profile/erus.dev', mastodon: 'https://elk.zone/m.webtoo.ls/@sheremet_va', - twitter: 'sheremet_va', sponsor: 'https://github.com/sponsors/sheremet-va', title: 'An open source fullstack developer', desc: 'Core team member of Vitest & Vite', @@ -71,7 +65,6 @@ const plainTeamMembers: CoreTeam[] = [ github: 'antfu', bluesky: 'https://bsky.app/profile/antfu.me', mastodon: 'https://elk.zone/m.webtoo.ls/@antfu', - twitter: 'antfu7', discord: 'https://chat.antfu.me', youtube: 'antfu', sponsor: 'https://github.com/sponsors/antfu', @@ -86,7 +79,6 @@ const plainTeamMembers: CoreTeam[] = [ github: 'AriPerkkio', bluesky: 'https://bsky.app/profile/ariperkkio.dev', mastodon: 'https://elk.zone/m.webtoo.ls/@AriPerkkio', - twitter: 'ari_perkkio', sponsor: 'https://github.com/sponsors/AriPerkkio', title: 'Open source engineer, working', desc: 'Core team member of Vitest', @@ -99,7 +91,6 @@ const plainTeamMembers: CoreTeam[] = [ github: 'patak-dev', bluesky: 'https://bsky.app/profile/patak.dev', mastodon: 'https://elk.zone/m.webtoo.ls/@patak', - twitter: 'patak_dev', sponsor: 'https://github.com/sponsors/patak-dev', title: 'A collaborative being, working', org: 'StackBlitz', @@ -112,7 +103,6 @@ const plainTeamMembers: CoreTeam[] = [ github: 'userquin', bluesky: 'https://bsky.app/profile/userquin.bsky.social', mastodon: 'https://elk.zone/m.webtoo.ls/@userquin', - twitter: 'userquin', title: 'A fullstack and android developer', desc: 'Vite\'s fanatical follower', }, @@ -121,7 +111,6 @@ const plainTeamMembers: CoreTeam[] = [ name: 'Hiroshi Ogawa', github: 'hi-ogawa', bluesky: 'https://bsky.app/profile/hiogawa.bsky.social', - twitter: 'hiroshi_18181', title: 'Open source enthusiast', desc: 'Team member of Vitest', }, @@ -132,7 +121,6 @@ const plainTeamEmeritiMembers: CoreTeam[] = [ avatar: contributorsAvatars.Dunqing, name: 'Dunqing', github: 'Dunqing', - twitter: '@Dunqingg', title: 'A passionate enthusiast of open source contributions', desc: 'Team member of oxc & UnoCSS', }, @@ -142,7 +130,6 @@ const plainTeamEmeritiMembers: CoreTeam[] = [ github: 'Aslemammad', bluesky: 'https://bsky.app/profile/aslemammad.bsky.social', mastodon: 'https://elk.zone/m.webtoo.ls/@aslemammad', - twitter: 'asleMammadam', title: 'An open source developer', desc: 'Team member of Poimandres & Vike', }, @@ -158,7 +145,6 @@ const plainTeamEmeritiMembers: CoreTeam[] = [ avatar: contributorsAvatars.poyoho, name: 'Yoho Po', github: 'poyoho', - twitter: '@yoho_po', title: 'It\'s no problem in my locall', desc: 'Core team member of Vite & Team member of Vitest', }, @@ -168,7 +154,6 @@ const plainTeamEmeritiMembers: CoreTeam[] = [ github: 'zxch3n', bluesky: 'https://bsky.app/profile/zxch3n.bsky.social', mastodon: 'https://elk.zone/hachyderm.io/@zx', - twitter: 'zxch3n', title: 'A fullstack developer', desc: 'Working on CRDTs & local-first software', }, diff --git a/docs/.vitepress/meta.ts b/docs/.vitepress/meta.ts index c14f56e7b..b9185f951 100644 --- a/docs/.vitepress/meta.ts +++ b/docs/.vitepress/meta.ts @@ -21,7 +21,6 @@ export const contributing = 'https://github.com/vitest-dev/vitest/blob/main/CONT export const discord = 'https://chat.vitest.dev' export const bluesky = 'https://bsky.app/profile/vitest.dev' export const mastodon = 'https://elk.zone/m.webtoo.ls/@vitest' -export const twitter = 'https://twitter.com/vitest_dev' /* Avatar/Image/Sponsors servers */ export const preconnectLinks = [googleapis, gstatic] diff --git a/docs/guide/comparisons.md b/docs/guide/comparisons.md index be0ca3118..773d8005b 100644 --- a/docs/guide/comparisons.md +++ b/docs/guide/comparisons.md @@ -8,7 +8,7 @@ title: Comparisons with Other Test Runners | Guide [Jest](https://jestjs.io/) took over the Testing Framework space by providing out-of-the-box support for most JavaScript projects, a comfortable API (`it` and `expect`), and the full pack of testing features that most setups would require (snapshots, mocks, coverage). We are thankful to the Jest team and community for creating a delightful testing API and pushing forward a lot of the testing patterns that are now a standard in the web ecosystem. -It is possible to use Jest in Vite setups. [@sodatea](https://twitter.com/haoqunjiang) built [vite-jest](https://github.com/sodatea/vite-jest#readme), which aims to provide first-class Vite integration for [Jest](https://jestjs.io/). The last [blockers in Jest](https://github.com/sodatea/vite-jest/blob/main/packages/vite-jest/README.md#vite-jest) have been solved, so this is a valid option for your unit tests. +It is possible to use Jest in Vite setups. [@sodatea](https://bsky.app/profile/haoqun.dev) built [vite-jest](https://github.com/sodatea/vite-jest#readme), which aims to provide first-class Vite integration for [Jest](https://jestjs.io/). The last [blockers in Jest](https://github.com/sodatea/vite-jest/blob/main/packages/vite-jest/README.md#vite-jest) have been solved, so this is a valid option for your unit tests. However, in a world where we have [Vite](https://vitejs.dev) providing support for the most common web tooling (TypeScript, JSX, most popular UI Frameworks), Jest represents a duplication of complexity. If your app is powered by Vite, having two different pipelines to configure and maintain is not justifiable. With Vitest you get to define the configuration for your dev, build and test environments as a single pipeline, sharing the same plugins and the same vite.config.js. diff --git a/docs/guide/features.md b/docs/guide/features.md index b02be0e4d..4fbe414ee 100644 --- a/docs/guide/features.md +++ b/docs/guide/features.md @@ -22,7 +22,7 @@ Learn more at [Configuring Vitest](/guide/#configuring-vitest). $ vitest ``` -When you modify your source code or the test files, Vitest smartly searches the module graph and only reruns the related tests, [just like how HMR works in Vite!](https://twitter.com/antfu7/status/1468233216939245579) +When you modify your source code or the test files, Vitest smartly searches the module graph and only reruns the related tests, just like how HMR works in Vite! `vitest` starts in `watch mode` **by default in development environment** and `run mode` in CI environment (when `process.env.CI` presents) smartly. You can use `vitest watch` or `vitest run` to explicitly specify the desired mode. diff --git a/docs/guide/why.md b/docs/guide/why.md index d57a532f2..79d876b93 100644 --- a/docs/guide/why.md +++ b/docs/guide/why.md @@ -5,7 +5,7 @@ title: Why Vitest | Guide # Why Vitest :::tip NOTE -This guide assumes that you are familiar with Vite. A good way to start learning more is to read the [Why Vite Guide](https://vitejs.dev/guide/why.html), and [Next generation frontend tooling with ViteJS](https://www.youtube.com/watch?v=UJypSr8IhKY), a stream where [Evan You](https://twitter.com/youyuxi) did a demo explaining the main concepts. +This guide assumes that you are familiar with Vite. A good way to start learning more is to read the [Why Vite Guide](https://vitejs.dev/guide/why.html), and [Next generation frontend tooling with ViteJS](https://www.youtube.com/watch?v=UJypSr8IhKY), a stream where [Evan You](https://bsky.app/profile/evanyou.me) did a demo explaining the main concepts. ::: ## The Need for a Vite Native Test Runner