Skip to content

[Replacement]: Jest #483

@joaopedrodcf

Description

@joaopedrodcf

Package to replace

vitest

Suggested replacement(s)

vitest

Manifest type

preferred (lighter or more modern alternative package)

Rationale

Vitest is a faster, modern alternative to Jest, designed for ESM-first environments and part of void zero ecossytem of tools.

Key advantages:

  • Faster
  • Native support for ESM, TypeScript, and modern frontend tooling
  • Seamless integration with Vite projects (shared config, no extra setup)
  • Improved developer experience with hot reload for tests
  • Jest-compatible API (describe, it, expect), making migratio easy
  • Browser mode tests

Availability

No response

Code example (optional)

/**
 * Before (Jest)
 */
// Jest uses globals
import { sum } from './sum'

describe('sum', () => {
  it('adds numbers', () => {
    expect(sum(1, 2)).toBe(3)
  })
})

/**
 * After (Vitest)
 */
import { describe, it, expect } from 'vitest'
import { sum } from './sum'

describe('sum', () => {
  it('adds numbers', () => {
    expect(sum(1, 2)).toBe(3)
  })
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions