diff --git a/package.json b/package.json index e902fbc..a93d116 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "dev": "vite", "build": "vite build", "build:dev": "vite build --mode development", - "test": "npm run lint && npm run vitest && test:e2e", + "test": "npm run lint && npm run vitest:ci && pnpm run test:e2e", "test:ci": "npm run lint:ci && npm run vitest:ci && test:e2e", "test:e2e": "playwright test", "test:e2e:debug": "playwright test --debug", diff --git a/vite.config.ts b/vite.config.ts index ffcce93..e0c72c4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,11 +1,11 @@ -import { defineConfig } from "vite"; -import { resolve, join } from "path"; import { svelte } from "@sveltejs/vite-plugin-svelte"; -import semver from "semver"; -import { readFile, writeFile, rm } from "fs/promises"; +import archiver from "archiver"; import { createWriteStream } from "fs"; +import { readFile, rm, writeFile } from "fs/promises"; import { execSync } from "node:child_process"; -import archiver from "archiver"; +import { join, resolve } from "path"; +import semver from "semver"; +import { defineConfig } from "vite"; async function writeManifest() { console.log("Setting up extension manifest"); @@ -141,4 +141,7 @@ export default defineConfig({ }, }, ], + test: { + include: ["src/**/*.{test,spec}.?(c|m)[jt]s?(x)"], + }, });