Skip to content

Commit

Permalink
Fix vitest with playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
gauntface committed Nov 2, 2024
1 parent 6dd8c46 commit 00c4084
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 8 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -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");
Expand Down Expand Up @@ -141,4 +141,7 @@ export default defineConfig({
},
},
],
test: {
include: ["src/**/*.{test,spec}.?(c|m)[jt]s?(x)"],
},
});

0 comments on commit 00c4084

Please sign in to comment.