From d65c56f0f1ad750ecc8fa3147d642f9ffb018ea3 Mon Sep 17 00:00:00 2001 From: Adrien Zaganelli Date: Tue, 24 Sep 2024 20:16:18 +0200 Subject: [PATCH] fix test --- package.json | 2 +- .../{d1-cloudflare-test.test.ts => d1-cloudflare-test.ts} | 0 tests/cloudflare/vitest.config.mts | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) rename tests/cloudflare/{d1-cloudflare-test.test.ts => d1-cloudflare-test.ts} (100%) diff --git a/package.json b/package.json index 76eeece..497300b 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "test": "vitest run", "test:types": "tsc --noEmit", "test:bun": "bun test ./tests/bun-sqlite.test.bun", - "test:d1": "vitest --root ./tests/cloudflare/ run", + "test:d1": "vitest --root ./tests/cloudflare/", "test:ci": "pnpm test -- --coverage --reporter=default --reporter=junit --outputFile=./junit.xml && pnpm test:bun && test:d1", "lint": "biome lint", "format": "biome format --write", diff --git a/tests/cloudflare/d1-cloudflare-test.test.ts b/tests/cloudflare/d1-cloudflare-test.ts similarity index 100% rename from tests/cloudflare/d1-cloudflare-test.test.ts rename to tests/cloudflare/d1-cloudflare-test.ts diff --git a/tests/cloudflare/vitest.config.mts b/tests/cloudflare/vitest.config.mts index 98f33a6..c6cb572 100644 --- a/tests/cloudflare/vitest.config.mts +++ b/tests/cloudflare/vitest.config.mts @@ -2,6 +2,7 @@ import { defineWorkersConfig } from "@cloudflare/vitest-pool-workers/config"; export default defineWorkersConfig({ test: { + include: ["./d1-cloudflare-test.ts"], poolOptions: { workers: { isolatedStorage: true,