Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vitest-dev/vitest
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6b29f3ddc86060cf3265959d4ae32e90b186cb92
Choose a base ref
...
head repository: vitest-dev/vitest
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.0.0
Choose a head ref

Commits on May 6, 2024

  1. feat: pretty print diffs coming from cause (#5660)

    dubzzz authored May 6, 2024
    Copy the full SHA
    6faf8f8 View commit details
  2. refactor: remove unnecessary async/await (#5661)

    sheremet-va authored May 6, 2024
    Copy the full SHA
    2a80e95 View commit details
  3. feat!: remove the empty suite from the runner (#5435)

    sheremet-va authored May 6, 2024
    Copy the full SHA
    dbbbe43 View commit details
  4. feat!: remove --segfault-retry (#5514)

    sheremet-va authored May 6, 2024
    Copy the full SHA
    ed60e40 View commit details
  5. feat!: run suite hooks in a stack (#5609)

    sheremet-va authored May 6, 2024
    Copy the full SHA
    1277dc1 View commit details
  6. fix: print console statements in vmThreads (#5678)

    sheremet-va authored May 6, 2024
    Copy the full SHA
    34a80b3 View commit details
  7. ci: use forks pool for CLI tests (#5679)

    sheremet-va authored May 6, 2024
    Copy the full SHA
    ee097db View commit details

Commits on May 7, 2024

  1. feat!: enable coverage.ignoreEmptyLines by default (#5543)

    AriPerkkio authored May 7, 2024
    Copy the full SHA
    3199494 View commit details
  2. fix!: add correct location and snapshot fields in json reporter (#5434)

    sheremet-va authored May 7, 2024
    Copy the full SHA
    bcccce6 View commit details

Commits on May 8, 2024

  1. ci: run tests sequentially (#5677)

    sheremet-va authored May 8, 2024
    Copy the full SHA
    f2e15f7 View commit details
  2. chore: stub reporter in console test

    sheremet-va committed May 8, 2024
    Copy the full SHA
    2c19d35 View commit details

Commits on May 9, 2024

  1. chore: inline certain dependencies to reduce size (#5691)

    sheremet-va authored May 9, 2024
    Copy the full SHA
    8c96607 View commit details
  2. feat: allow import statement as vi.mock path for better IDE support (#…

    sheremet-va authored May 9, 2024
    Copy the full SHA
    a99a14c View commit details
  3. fix!: update dependency chai to v5 (#5135)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
    renovate[bot] and sheremet-va authored May 9, 2024
    Copy the full SHA
    73646b6 View commit details
  4. fix(expect): fix immutable.js iterable equality (#5692)

    hi-ogawa authored May 9, 2024
    Copy the full SHA
    1532c19 View commit details
  5. feat!: remove watchExclude (#5177)

    patak-dev authored May 9, 2024
    Copy the full SHA
    d7371ea View commit details
  6. test: fix watch.useFsEvents

    sheremet-va committed May 9, 2024
    Copy the full SHA
    466cd6f View commit details
  7. test: remove .only

    sheremet-va committed May 9, 2024
    Copy the full SHA
    6fdab31 View commit details
  8. test: skip related test in ecosystem-ci

    sheremet-va committed May 9, 2024
    Copy the full SHA
    5c55c27 View commit details
  9. chore: update pnpm to the latest 8 version (#5694)

    sheremet-va authored May 9, 2024
    Copy the full SHA
    aa54b8e View commit details
  10. chore(deps): update all non-major dependencies (#5499)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
    renovate[bot] and sheremet-va authored May 9, 2024
    Copy the full SHA
    7a843c1 View commit details
  11. chore: release v2.0.0-beta.1

    sheremet-va committed May 9, 2024
    Copy the full SHA
    5fd8147 View commit details
  12. fix!: change default pool to 'forks' (#5047)

    AriPerkkio authored May 9, 2024
    Copy the full SHA
    7f8f9c0 View commit details
  13. chore: release v2.0.0-beta.2

    sheremet-va committed May 9, 2024
    Copy the full SHA
    7bb0f93 View commit details
  14. chore: add release script

    sheremet-va committed May 9, 2024
    Copy the full SHA
    1db23d0 View commit details
  15. feat: remove deprecated options (#5696)

    sheremet-va authored May 9, 2024
    Copy the full SHA
    5c308ed View commit details

Commits on May 10, 2024

  1. chore: tweak examples/react tsconfig (#5701)

    hi-ogawa authored May 10, 2024
    Copy the full SHA
    571ed45 View commit details
  2. chore(deps): update tinypool (#5700)

    AriPerkkio authored May 10, 2024
    Copy the full SHA
    5738b37 View commit details

Commits on May 11, 2024

  1. test: test thrown empty string match (#5705)

    hi-ogawa authored May 11, 2024
    Copy the full SHA
    e1be4b5 View commit details
  2. docs: add docs for previous versions (#5689)

    Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
    antfu and sheremet-va authored May 11, 2024
    Copy the full SHA
    9cbc44d View commit details

Commits on May 13, 2024

  1. fix(browser): display UI

    Fixes #5308
    sheremet-va committed May 13, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d41e46a View commit details
  2. chore: add built code

    sheremet-va committed May 13, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9eb8475 View commit details
  3. fix!: don't exit process if config failed (#5715)

    sheremet-va authored May 13, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f232fdd View commit details

Commits on May 14, 2024

  1. chore: rewrite UI tests using @vitest/browser (#5707)

    sheremet-va authored May 14, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7adb8e8 View commit details
  2. feat: add blob reporter (#5663)

    sheremet-va authored May 14, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e20538a View commit details
  3. feat!(runner): support concurrent suites (#5491)

    hi-ogawa authored May 14, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    222ce44 View commit details
  4. feat(browser): add commands to communicate betweens server and the br…

    …owser (#5097)
    sheremet-va authored May 14, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    aa431f4 View commit details
  5. chore: update eslint rules (#5721)

    sheremet-va authored May 14, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    77f4af6 View commit details
  6. chore: lint regexp

    sheremet-va committed May 14, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3ccbcc4 View commit details
  7. feat: add expect.poll utility (#5708)

    sheremet-va authored May 14, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e2e0ff4 View commit details
  8. chore: release v2.0.0-beta.3

    sheremet-va committed May 14, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    285865f View commit details

Commits on May 15, 2024

  1. docs: remove version badges (#5727)

    Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
    sheremet-va and AriPerkkio authored May 15, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6598fba View commit details
  2. chore: remove segfaultRetry from config options as it doesn't have an…

    …y effect anymore
    sheremet-va committed May 15, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3270663 View commit details
  3. fix(utils): Produce valid snapshot names (#5724)

    dubzzz authored May 15, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1ec61ce View commit details

Commits on May 17, 2024

  1. fix(runner): Ensure inner suite { sequential: true } correctly overri…

    …des outer suite { concurrent: true } (#5737)
    pengooseDev authored May 17, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a20e75b View commit details
  2. fix(coverage): clean up empty coverage reports directory (#5731)

    AriPerkkio authored May 17, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c469c74 View commit details
  3. fix(utils): fix color util maximum call stack error (#5733)

    hi-ogawa authored May 17, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a4ec583 View commit details

Commits on May 23, 2024

  1. docs: remove mentions of deleted examples from docs

    sheremet-va committed May 23, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ee27e48 View commit details

Commits on May 24, 2024

  1. docs: update plugins page (#5768)

    yannbf authored May 24, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a431887 View commit details
  2. feat: add browser.ui option (#5771)

    sheremet-va authored May 24, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a50330e View commit details
Showing 815 changed files with 39,829 additions and 26,573 deletions.
14 changes: 1 addition & 13 deletions .github/actions/setup-and-cache/action.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ runs:

steps:
- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4

- name: Set node version to ${{ inputs.node-version }}
uses: actions/setup-node@v4
@@ -27,9 +27,7 @@ runs:
const fs = require('fs');
const lockfile = fs.readFileSync('./pnpm-lock.yaml', 'utf8');
const pattern = (name) => new RegExp(name + ':\\\s+specifier: [\\\s\\\w\\\.^]+version: (\\\d+\\\.\\\d+\\\.\\\d+)');
const cypressVersion = lockfile.match(pattern('cypress'))[1];
const playwrightVersion = lockfile.match(pattern('playwright'))[1];
console.log('CYPRESS_VERSION=' + cypressVersion);
console.log('PLAYWRIGHT_VERSION=' + playwrightVersion);
"
)" >> $GITHUB_OUTPUT
@@ -41,19 +39,9 @@ runs:
- name: Check resolved package versions
shell: bash
if: |
contains(fromJSON('[null, "", "undefined"]'), steps.resolve-package-versions.outputs.CYPRESS_VERSION) ||
contains(fromJSON('[null, "", "undefined"]'), steps.resolve-package-versions.outputs.PLAYWRIGHT_VERSION)
run: echo "Failed to resolve package versions. See log above." && exit 1

- name: Cache Cypress v${{ steps.resolve-package-versions.outputs.CYPRESS_VERSION }}
uses: actions/cache@v4
id: cypress-cache
with:
path: ${{ env.CYPRESS_CACHE_FOLDER }}
key: ${{ runner.os }}-cypress-${{ steps.resolve-package-versions.outputs.CYPRESS_VERSION }}
restore-keys: |
${{ runner.os }}-cypress-
- name: Cache Playwright v${{ steps.resolve-package-versions.outputs.PLAYWRIGHT_VERSION }}
uses: actions/cache@v4
id: playwright-cache
7 changes: 4 additions & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -28,12 +28,13 @@
"@types/chai",
"@sinonjs/fake-timers",
"cac",
// TODO: update when chai is updated to 5.0
"loupe",
// Pinned due to https://github.com/vitest-dev/vitest/issues/4710
"log-update",
// Pinned because it requires "node" condition in the new version
// But we intentionally build Vitest ambiguously
"find-up"
"find-up",
// Pinned because we use execa, and the newer version replaces it with another pkg
// We should remove execa entirely
"@antfu/install-pkg"
]
}
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4

- name: Install node
uses: actions/setup-node@v4
35 changes: 11 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -9,14 +9,14 @@ on:
branches:
- main

workflow_dispatch:

concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
VITEST_SEGFAULT_RETRY: 3
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.cache/ms-playwright
CYPRESS_CACHE_FOLDER: ${{ github.workspace }}/.cache/Cypress

jobs:
lint:
@@ -40,12 +40,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node_version: [18, 20, 22]
# Reset back to 20 after https://github.com/nodejs/node/issues/53648
node_version: [18, 20.14]
# node_version: [18, 20, 22] 22 when LTS is close enough
include:
- os: macos-14
node_version: 20
node_version: 20.14
- os: windows-latest
node_version: 20
node_version: 20.14
fail-fast: false

steps:
@@ -73,24 +75,6 @@ jobs:
run: pnpm run test:examples

test-ui:
runs-on: ubuntu-latest

timeout-minutes: 10

steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/setup-and-cache
with:
node-version: 20

- name: Install
run: pnpm i

- name: Test UI
run: pnpm run ui:test

test-ui-e2e:
strategy:
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
@@ -116,7 +100,10 @@ jobs:
- name: Build
run: pnpm run build

- name: Test
- name: Unit Test UI
run: pnpm run -C packages/ui test:ui

- name: E2E Test UI
run: pnpm -C test/ui test-e2e

test-browser:
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ jobs:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4

- name: Set node version to 20
uses: actions/setup-node@v4
@@ -33,7 +33,6 @@ jobs:
run: pnpm install --frozen-lockfile --prefer-offline
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
CYPRESS_INSTALL_BINARY: '0'

- name: Build
run: pnpm build
9 changes: 3 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -17,14 +17,11 @@ ltex*
bench/test/*/*/
**/bench.json
**/browser/browser.json
cypress/videos
cypress/downloads
cypress/screenshots
packages/ui/cypress/videos
packages/ui/cypress/downloads
packages/ui/cypress/screenshots
docs/public/user-avatars
docs/public/sponsors
.eslintcache
docs/.vitepress/cache/
!test/cli/fixtures/dotted-files/**/.cache
test/**/__screenshots__/**/*
test/browser/fixtures/update-snapshot/basic.test.ts
.vitest-reports
9 changes: 0 additions & 9 deletions .pnpmfile.cjs

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -32,19 +32,20 @@ Next generation testing framework powered by Vite.

- [Vite](https://vitejs.dev/)'s config, transformers, resolvers, and plugins. Use the same setup from your app!
- [Jest Snapshot](https://jestjs.io/docs/snapshot-testing)
- [Chai](https://www.chaijs.com/) built-in for assertions, with [Jest expect](https://jestjs.io/docs/expect) compatible APIs.
- [Chai](https://www.chaijs.com/) built-in for assertions, with [Jest expect](https://jestjs.io/docs/expect) compatible APIs
- [Smart & instant watch mode](https://vitest.dev/guide/features.html#watch-mode), like HMR for tests!
- [Native code coverage](https://vitest.dev/guide/features.html#coverage) via [`v8`](https://v8.dev/blog/javascript-code-coverage) or [`istanbul`](https://istanbul.js.org/).
- [Tinyspy](https://github.com/tinylibs/tinyspy) built-in for mocking, stubbing, and spies.
- [JSDOM](https://github.com/jsdom/jsdom) and [happy-dom](https://github.com/capricorn86/happy-dom) for DOM and browser API mocking
- Components testing ([Vue](./examples/vue), [React](./examples/react), [Svelte](./examples/svelte), [Lit](./examples/lit), [Vitesse](./examples/vitesse), [Marko](./examples/marko))
- Components testing ([Vue](./examples/vue), [React](./examples/react), [Svelte](./examples/svelte), [Lit](./examples/lit), [Vitesse](./examples/vitesse), [Marko](https://github.com/marko-js/examples/tree/master/examples/library-ts))
- Workers multi-threading via [Tinypool](https://github.com/tinylibs/tinypool) (a lightweight fork of [Piscina](https://github.com/piscinajs/piscina))
- Benchmarking support with [Tinybench](https://github.com/tinylibs/tinybench)
- [Workspace](https://vitest.dev/guide/workspace) support
- [expect-type](https://github.com/mmkal/expect-type) for type-level testing
- ESM first, top level await
- Out-of-box TypeScript / JSX support
- Filtering, timeouts, concurrent for suite and tests
- Sharding support

> Vitest 1.0 requires Vite >=v5.0.0 and Node >=v18.0.0
4 changes: 1 addition & 3 deletions docs/.vitepress/components.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export {}

/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
Contributors: typeof import('./components/Contributors.vue')['default']
@@ -13,8 +13,6 @@ declare module 'vue' {
HomePage: typeof import('./components/HomePage.vue')['default']
ListItem: typeof import('./components/ListItem.vue')['default']
NonProjectOption: typeof import('./components/NonProjectOption.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Version: typeof import('./components/Version.vue')['default']
}
}
3 changes: 2 additions & 1 deletion docs/.vitepress/components/FeaturesList.vue
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
dir="auto"
flex="~ col gap2 md:gap-3"
>
<ListItem><a target="_blank" href="https://vitejs.dev" rel="noopener noreferrer">Vite</a>'s config, transformers, resolvers, and plugins.</ListItem>
<ListItem><a target="_blank" href="https://vitejs.dev" rel="noopener noreferrer">Vite</a>'s config, transformers, resolvers, and plugins</ListItem>
<ListItem>Use the same setup from your app to run the tests!</ListItem>
<ListItem><a target="_blank" href="https://twitter.com/antfu7/status/1468233216939245579" rel="noopener noreferrer">Smart & instant watch mode, like HMR for tests!</a></ListItem>
<ListItem>Component testing for Vue, React, Svelte, Lit, Marko and more</ListItem>
@@ -25,6 +25,7 @@
<ListItem>Code coverage via <a target="_blank" href="https://v8.dev/blog/javascript-code-coverage" rel="noopener noreferrer">v8</a> or <a target="_blank" href="https://istanbul.js.org/" rel="noopener noreferrer">istanbul</a></ListItem>
<ListItem>Rust-like <a href="/guide/in-source">in-source testing</a></ListItem>
<ListItem>Type Testing via <a target="_blank" href="https://github.com/mmkal/expect-type" rel="noopener noreferrer">expect-type</a></ListItem>
<ListItem>Sharding support</ListItem>
</ul>
</template>

3 changes: 2 additions & 1 deletion docs/.vitepress/components/ListItem.vue
Original file line number Diff line number Diff line change
@@ -9,8 +9,9 @@ function reset() {
state.value = 0
setTimeout(() => {
state.value = Math.random() > 0.9 ? 2 : 1
if (state.value === 2)
if (state.value === 2) {
setTimeout(reset, 1000)
}
}, Math.round(Math.random() * 3000) + 400)
}
6 changes: 4 additions & 2 deletions docs/.vitepress/components/Version.vue
Original file line number Diff line number Diff line change
@@ -3,5 +3,7 @@ import { VPBadge } from 'vitepress/theme'
</script>

<template>
<VPBadge type="info"><slot/>+</VPBadge>
</template>
<VPBadge type="info">
<slot />+
</VPBadge>
</template>
63 changes: 57 additions & 6 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -121,8 +121,21 @@ export default ({ mode }: { mode: string }) => {
text: 'Discord Chat',
link: discord,
},
],
},
],
},
{
text: `v${version}`,
items: [
{
items: [
{
text: 'Releases ',
text: `v${version}`,
link: `https://github.com/vitest-dev/vitest/releases/tag/v${version}`,
},
{
text: 'Releases Notes',
link: releases,
},
{
@@ -131,12 +144,24 @@ export default ({ mode }: { mode: string }) => {
},
],
},
{
items: [
{
text: 'unreleased',
link: 'https://main.vitest.dev/',
},
{
text: 'v0.x',
link: 'https://v0.vitest.dev/',
},
{
text: 'v1.x',
link: 'https://v1.vitest.dev/',
},
],
},
],
},
{
text: `v${version}`,
link: `https://github.com/vitest-dev/vitest/releases/tag/v${version}`,
},
],

sidebar: {
@@ -220,7 +245,33 @@ export default ({ mode }: { mode: string }) => {
},
{
text: 'Browser Mode',
link: '/guide/browser',
link: '/guide/browser/',
collapsed: true,
items: [{
text: 'Assertion API',
link: '/guide/browser/assertion-api',
docFooterText: 'Assertion API | Browser Mode',
}, {
text: 'Retry-ability',
link: '/guide/browser/retry-ability',
docFooterText: 'Retry-ability | Browser Mode',
}, {
text: 'Context',
link: '/guide/browser/context',
docFooterText: 'Context | Browser Mode',
}, {
text: 'Interactivity API',
link: '/guide/browser/interactivity-api',
docFooterText: 'Interactivity API | Browser Mode',
}, {
text: 'Commands',
link: '/guide/browser/commands',
docFooterText: 'Commands | Browser Mode',
}, {
text: 'Examples',
link: '/guide/browser/examples',
docFooterText: 'Examples | Browser Mode',
}],
},
{
text: 'In-Source Testing',
18 changes: 11 additions & 7 deletions docs/.vitepress/contributors.ts
Original file line number Diff line number Diff line change
@@ -29,17 +29,21 @@ export const contributors = (contributorNames).reduce<Contributor[]>((acc, name)

function createLinks(tm: CoreTeam): CoreTeam {
tm.links = [{ icon: 'github', link: `https://github.com/${tm.github}` }]
if (tm.mastodon)
if (tm.mastodon) {
tm.links.push({ icon: 'mastodon', link: tm.mastodon })
}

if (tm.discord)
if (tm.discord) {
tm.links.push({ icon: 'discord', link: tm.discord })
}

if (tm.youtube)
if (tm.youtube) {
tm.links.push({ icon: 'youtube', link: `https://www.youtube.com/@${tm.youtube}` })
}

if (tm.twitter)
if (tm.twitter) {
tm.links.push({ icon: 'x', link: `https://twitter.com/${tm.twitter}` })
}

return tm
}
@@ -76,10 +80,10 @@ const plainTeamMembers: CoreTeam[] = [
mastodon: 'https://elk.zone/m.webtoo.ls/@AriPerkkio',
twitter: 'ari_perkkio',
sponsor: 'https://github.com/sponsors/AriPerkkio',
title: 'A fullstack developer, working',
title: 'Open source engineer, working',
desc: 'Core team member of Vitest',
org: 'Cloudamite',
orgLink: 'https://cloudamite.com/',
org: 'StackBlitz',
orgLink: 'https://stackblitz.com/',
},
{
avatar: contributorsAvatars['patak-dev'],
Loading