(
name: string,
directory: string,
include: boolean = true,
config: ViteUserConfig = {},
projectExclude?: ReadonlyArray<string>,
projectInclude?: ReadonlyArray<string>
)
| 12 | const clusterTestsEnabled = process.env.EFFECT_CLUSTER_TESTS === "1" |
| 13 | |
| 14 | const project = ( |
| 15 | name: string, |
| 16 | directory: string, |
| 17 | include: boolean = true, |
| 18 | config: ViteUserConfig = {}, |
| 19 | projectExclude?: ReadonlyArray<string>, |
| 20 | projectInclude?: ReadonlyArray<string> |
| 21 | ) => { |
| 22 | if (!include) { |
| 23 | return [] |
| 24 | } |
| 25 | |
| 26 | const cfg = mergeConfig({ |
| 27 | root: directory, |
| 28 | test: { name } |
| 29 | }, config) |
| 30 | |
| 31 | const merged = mergeConfig(shared, cfg) |
| 32 | if (projectExclude !== undefined) { |
| 33 | merged.test!.exclude = [...projectExclude] |
| 34 | } |
| 35 | if (projectInclude !== undefined) { |
| 36 | merged.test!.include = [...projectInclude] |
| 37 | } |
| 38 | return [merged] |
| 39 | } |
| 40 | |
| 41 | export const exclude = [ |
| 42 | "**/.*/**", |
no test coverage detected