<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/vitest-replacing-jest-on-vite-projects-53cwv5ltv" -->

---
title: Vitest: Replacing Jest on Vite Projects | daily.dev
description: Vitest is a native test runner for Vite that simplifies and speeds up the testing process by using the same pipeline, plugins, and configurations as Vite. It...
canonical: https://daily.dev/posts/vitest-replacing-jest-on-vite-projects-53cwv5ltv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Vitest: Replacing Jest on Vite Projects | daily.dev
og:description: Vitest is a native test runner for Vite that simplifies and speeds up the testing process by using the same pipeline, plugins, and configurations as Vite. It...
og:url: https://daily.dev/posts/vitest-replacing-jest-on-vite-projects-53cwv5ltv
og:image: https://api.daily.dev/og/posts/53Cwv5LTV.png
og:image:alt: Vitest: Replacing Jest on Vite Projects
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Vitest: Replacing Jest on Vite Projects

**[Semaphore](https://daily.dev/sources/semaphore)** · 5 min read · 9 upvotes · 0 comments

## Summary

Vitest is a native test runner for Vite that simplifies and speeds up the testing process by using the same pipeline, plugins, and configurations as Vite. It offers features such as ESM imports, workspaces for monorepos, TypeScript/JSX support, coverage reports, and more. To create tests with Vitest, you can import your modules and use familiar test keywords like describe, it, expect, and beforeEach.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://semaphoreci.com/blog/vitest>

---

Tags: [#frontend](https://daily.dev/tags/frontend), [#javascript](https://daily.dev/tags/javascript), [#testing](https://daily.dev/tags/testing), [#vite](https://daily.dev/tags/vite), [#vitest](https://daily.dev/tags/vitest)

[View this post on daily.dev](https://daily.dev/posts/vitest-replacing-jest-on-vite-projects-53cwv5ltv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Vitest: Replacing Jest on Vite Projects","url":"https://daily.dev/posts/vitest-replacing-jest-on-vite-projects-53cwv5ltv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/vitest-replacing-jest-on-vite-projects-53cwv5ltv"},"datePublished":"2024-04-04T07:04:07.817Z","dateModified":"2024-07-02T02:15:57.076Z","description":"Vitest is a native test runner for Vite that simplifies and speeds up the testing process by using the same pipeline, plugins, and configurations as Vite. It...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9fa0a840f2b54cec7db4cfef9fc7330c?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9fa0a840f2b54cec7db4cfef9fc7330c?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Semaphore","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Semaphore","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/901ef6f52ded4eb99564604b8bdaee28","url":"https://daily.dev/sources/semaphore"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/vitest-replacing-jest-on-vite-projects-53cwv5ltv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":9},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"frontend,javascript,testing,vite,vitest","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Semaphore","item":"https://daily.dev/sources/semaphore"},{"@type":"ListItem","position":3,"name":"Vitest: Replacing Jest on Vite Projects"}]}
```

