mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-14 15:36:43 +03:00
refactor: update test files to use bun:test and remove vitest configuration
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// example.test.ts
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { describe, test, expect } from "bun:test";
|
||||
|
||||
describe("Example Test", () => {
|
||||
it("should pass", () => {
|
||||
test("should pass", () => {
|
||||
expect(true).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
import "@testing-library/jest-dom";
|
||||
import { expect, afterEach } from "vitest";
|
||||
import { cleanup } from "@testing-library/react";
|
||||
|
||||
// Run cleanup after each test case (e.g. clearing jsdom)
|
||||
afterEach(() => {
|
||||
cleanup();
|
||||
});
|
||||
Reference in New Issue
Block a user