Switch workflows to Bun install/test and update pnpm

This commit is contained in:
Esdras Renan 2025-11-04 23:21:41 -03:00
parent c3237dfb64
commit 775956c160
37 changed files with 2618 additions and 113 deletions

View file

@ -1,4 +1,4 @@
import { describe, it, expect, vi } from "vitest"
import { describe, it, expect, vi } from "bun:test"
// Mock tls to simulate an SMTP server over implicit TLS
let lastWrites: string[] = []
@ -13,7 +13,7 @@ vi.mock("tls", () => {
private enqueue(messages: string | string[], type: "data" | "end" = "data") {
const chunks = Array.isArray(messages) ? messages : [messages]
chunks.forEach((chunk, index) => {
const delay = index === 0 ? 0 : 1
const delay = index === 0 ? 0 : 10 // garante tempo para que o próximo `wait(...)` anexe o listener
setTimeout(() => {
if (type === "end") {
void chunk