mirror of
https://github.com/vector-im/element-web.git
synced 2026-07-05 23:10:16 +00:00
e9a89d9872
* Consolidate modules vitest coverage * Use vite-common as base for modules vitest config * Make knip happier * Fix coverage paths * Place modules unit tests alongside src * Switch to defineProject for better type safety * Consolidate vitest CI & coverage Kills off vite-common * Update comment * Update lockfile * Fix shared-components vitest config * Soften eslint config for tests in modules * Run eslint on modules/playwright dir too * Make tsc happy
21 lines
474 B
TypeScript
21 lines
474 B
TypeScript
/*
|
|
Copyright 2025 New Vector Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
import { defineProject } from "vitest/config";
|
|
|
|
import viteConfig from "./vite.config";
|
|
|
|
export default defineProject({
|
|
test: {
|
|
environment: "node",
|
|
pool: "threads",
|
|
globals: false,
|
|
include: ["src/**/*.test.{ts,tsx}"],
|
|
},
|
|
define: viteConfig.define,
|
|
});
|