Ákos KőművesProakoskm.com·Apr 19, 2024How to test React apps with Vitest and ViteA few weeks ago, I began creating small applications for my upcoming course on Testing React applications. I aimed to make the setup simple and easy for students to follow. I started with the Babel/Jest setup, which I've used for years, but people ha...DiscussReact
Sean Coughlinblog.seancoughlin.me·Apr 9, 2024FeaturedAccelerating Frontend Development with Bun and ViteRolling with Bun In the vibrant world of web development, the quest for more efficient tools and workflows is unending. Enter Bun, a modern JavaScript runtime that’s piquing the interest of developers for its all-in-one approach. But what exactly mak...Discuss·39 likes·200 readsWeb DevelopmentBun
DJ Scruggsdjscruggs.hashnode.dev·Mar 27, 2024CKEditor custom builds in ReactRecently I've been working on a project that uses a CKEditor custom build. While CKEditor is an impressive piece of software, React is extremely picky about how you import the library. I did a lot of trial and error to get it working on my project, s...DiscussCKEditor
Ayomide Apantakuayoapantaku.com·Mar 16, 2024Resolving "Object literal may only specify known properties, and 'test' does not exist in type 'UserConfigExport'"I was setting up tests for a Vite project using vitest and stumbled upon a very weird error while including my setup test file in the vite.config.ts: It turns out test isn't exported from UserConfigExport interface and it only allows properties defi...Discussvite
Manik Agnishmanikagnish.hashnode.dev·Mar 13, 2024Javascript testing quick start guideTesting is a crucial aspect of software development, and JavaScript is no exception. As web applications become more complex, testing ensures that our code works as expected, catches bugs early in the development process, and facilitates refactoring ...DiscussTesting
Sean Coughlinblog.seancoughlin.me·Jan 18, 2024Testing React Applications Built with Vite Using VitestIn the ever-evolving world of JavaScript development, React remains a popular choice for building user interfaces. When paired with Vite, a next-generation frontend tooling, it accelerates development with its out-of-the-box features like fast hot mo...Discuss·232 readsWeb DevelopmentWeb Development
Borislav Grigorovbrslv.hashnode.dev·Jan 11, 2024Introduction to Testing React Components with Vite, Vitest and React Testing LibraryOriginally published on my blog: https://bogr.dev/blog/react-testing-intro/ This article assumes a certain level of agreement between me and you that testing the code we write as developers, is important. And also, that the best way to ensure our cod...Discuss·1 like·130 readsReact
Waithaka Waweruweshy.hashnode.dev·Jan 4, 2024Why ViTest is a Powerful Testing Framework for TypeScript ProjectsIntroduction Testing is a crucial part of the software development process, ensuring the reliability and stability of your codebase. When it comes to testing JavaScript and TypeScript applications, there are several popular testing frameworks availab...DiscussTypeScript
Ben Tillingbentilling.com·Dec 15, 2023A Practical Guide to Mocking Svelte Stores with VitestI'm using Svelte stores in this post as an example, but the principle applies to any function or variable you want to mock with vitest, with any js framework. Imagine this... You've just refactored some complex code into a killer custom Svelte store...Discuss·459 readsvitest
Sean Coughlinblog.seancoughlin.me·Nov 22, 2023Vitest vs. Jest: The New JavaScript Testing FrameworkIn the ever-evolving world of JavaScript development, choosing the right testing framework is crucial. Two notable contenders in this arena are Vitest and Jest. While Jest has been a long-standing favorite among developers, Vitest emerges as a compel...Discuss·976 readsWeb Developmentvitest