vitest 3.0.9 → 3.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +4 -4
- package/dist/chunks/base.CylSMlTD.js +41 -0
- package/dist/chunks/benchmark.BKUatJGy.js +39 -0
- package/dist/chunks/cac.JtTXbKz0.js +1525 -0
- package/dist/chunks/{cli-api.Ckwz_xSb.js → cli-api.BTtPTYMs.js} +4638 -5072
- package/dist/chunks/console.D6t261w0.js +173 -0
- package/dist/chunks/constants.BZZyIeIE.js +43 -0
- package/dist/chunks/coverage.0iPg4Wrz.js +33 -0
- package/dist/chunks/{coverage.gV8doR2Y.js → coverage.C2ohxaN0.js} +2216 -2479
- package/dist/chunks/creator.BEXek7yQ.js +640 -0
- package/dist/chunks/date.CDOsz-HY.js +53 -0
- package/dist/chunks/defaults.DmfNPoe5.js +114 -0
- package/dist/chunks/{env.D4Lgay0q.js → env.Dq0hM4Xv.js} +1 -1
- package/dist/chunks/execute.DZKwfrTs.js +791 -0
- package/dist/chunks/git.DXfdBEfR.js +74 -0
- package/dist/chunks/{globals.BEpDe-k3.js → globals.DCbUWjip.js} +10 -10
- package/dist/chunks/{index.D7Ny8f_s.js → index.BDobFbcz.js} +6 -7
- package/dist/chunks/index.DFXFpH3w.js +607 -0
- package/dist/chunks/index.VfYQ6MXY.js +104 -0
- package/dist/chunks/index.ZIOEXBQB.js +2382 -0
- package/dist/chunks/inspector.DbDkSkFn.js +54 -0
- package/dist/chunks/node.IqGoMrm4.js +15 -0
- package/dist/chunks/{reporters.d.CqBhtcTq.d.ts → reporters.d.5g6jXhoW.d.ts} +25 -8
- package/dist/chunks/rpc.DGgL5dw7.js +92 -0
- package/dist/chunks/run-once.I7PpBOk1.js +47 -0
- package/dist/chunks/runBaseTests.CqmKSG99.js +134 -0
- package/dist/chunks/setup-common.DEGDGBiA.js +88 -0
- package/dist/chunks/{typechecker.BlF3eHsb.js → typechecker.C2IpOhid.js} +620 -622
- package/dist/chunks/utils.BfxieIyZ.js +66 -0
- package/dist/chunks/utils.CtocqOoE.js +72 -0
- package/dist/chunks/utils.OLmtDstN.js +194 -0
- package/dist/chunks/{vi.nSCvwQ7l.js → vi.B-PuvDzu.js} +878 -1019
- package/dist/chunks/vite.d.Dh1jE-_V.d.ts +23 -0
- package/dist/chunks/vm.BW5voG-u.js +789 -0
- package/dist/cli.js +2 -2
- package/dist/config.cjs +97 -103
- package/dist/config.d.ts +3 -3
- package/dist/config.js +6 -6
- package/dist/coverage.d.ts +1 -1
- package/dist/coverage.js +6 -6
- package/dist/environments.js +1 -1
- package/dist/execute.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/node.d.ts +3 -3
- package/dist/node.js +36 -45
- package/dist/path.js +1 -4
- package/dist/reporters.d.ts +1 -1
- package/dist/reporters.js +4 -4
- package/dist/runners.js +231 -267
- package/dist/snapshot.js +2 -2
- package/dist/suite.js +2 -2
- package/dist/worker.js +98 -114
- package/dist/workers/forks.js +22 -22
- package/dist/workers/runVmTests.js +61 -66
- package/dist/workers/threads.js +13 -13
- package/dist/workers/vmForks.js +24 -24
- package/dist/workers/vmThreads.js +15 -15
- package/dist/workers.js +10 -10
- package/package.json +11 -11
- package/dist/chunks/base.DV59CbtV.js +0 -45
- package/dist/chunks/benchmark.DL72EVN-.js +0 -40
- package/dist/chunks/cac.CeVHgzve.js +0 -1659
- package/dist/chunks/console.CN7AiMGV.js +0 -179
- package/dist/chunks/constants.DTYd6dNH.js +0 -46
- package/dist/chunks/coverage.A3sS5-Wm.js +0 -40
- package/dist/chunks/creator.BsBnpTzI.js +0 -670
- package/dist/chunks/date.W2xKR2qe.js +0 -53
- package/dist/chunks/defaults.C2Ndd9wx.js +0 -119
- package/dist/chunks/execute.eDH0aFFd.js +0 -839
- package/dist/chunks/git.B5SDxu-n.js +0 -69
- package/dist/chunks/index.B8tIoLPT.js +0 -2526
- package/dist/chunks/index.K90BXFOx.js +0 -658
- package/dist/chunks/index.uXkkC4xl.js +0 -111
- package/dist/chunks/inspector.DKLceBVD.js +0 -54
- package/dist/chunks/node.AKq966Jp.js +0 -15
- package/dist/chunks/rpc.TVf73xOu.js +0 -102
- package/dist/chunks/run-once.2ogXb3JV.js +0 -28
- package/dist/chunks/runBaseTests.BVrL_ow3.js +0 -142
- package/dist/chunks/setup-common.CPvtqi8q.js +0 -96
- package/dist/chunks/utils.C8RiOc4B.js +0 -77
- package/dist/chunks/utils.Cn0zI1t3.js +0 -68
- package/dist/chunks/utils.bLM2atbD.js +0 -198
- package/dist/chunks/vite.d.BUZTGxQ3.d.ts +0 -11
- package/dist/chunks/vm.jEFQDlX_.js +0 -852
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import nodeos__default from 'node:os';
|
|
2
|
-
import './env.D4Lgay0q.js';
|
|
3
|
-
import { isCI } from 'std-env';
|
|
4
|
-
|
|
5
|
-
const defaultInclude = ["**/*.{test,spec}.?(c|m)[jt]s?(x)"];
|
|
6
|
-
const defaultExclude = [
|
|
7
|
-
"**/node_modules/**",
|
|
8
|
-
"**/dist/**",
|
|
9
|
-
"**/cypress/**",
|
|
10
|
-
"**/.{idea,git,cache,output,temp}/**",
|
|
11
|
-
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*"
|
|
12
|
-
];
|
|
13
|
-
const benchmarkConfigDefaults = {
|
|
14
|
-
include: ["**/*.{bench,benchmark}.?(c|m)[jt]s?(x)"],
|
|
15
|
-
exclude: defaultExclude,
|
|
16
|
-
includeSource: [],
|
|
17
|
-
reporters: ["default"],
|
|
18
|
-
includeSamples: false
|
|
19
|
-
};
|
|
20
|
-
const defaultCoverageExcludes = [
|
|
21
|
-
"coverage/**",
|
|
22
|
-
"dist/**",
|
|
23
|
-
"**/node_modules/**",
|
|
24
|
-
"**/[.]**",
|
|
25
|
-
"packages/*/test?(s)/**",
|
|
26
|
-
"**/*.d.ts",
|
|
27
|
-
"**/virtual:*",
|
|
28
|
-
"**/__x00__*",
|
|
29
|
-
"**/\0*",
|
|
30
|
-
"cypress/**",
|
|
31
|
-
"test?(s)/**",
|
|
32
|
-
"test?(-*).?(c|m)[jt]s?(x)",
|
|
33
|
-
"**/*{.,-}{test,spec,bench,benchmark}?(-d).?(c|m)[jt]s?(x)",
|
|
34
|
-
"**/__tests__/**",
|
|
35
|
-
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*",
|
|
36
|
-
"**/vitest.{workspace,projects}.[jt]s?(on)",
|
|
37
|
-
"**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}"
|
|
38
|
-
];
|
|
39
|
-
const coverageConfigDefaults = {
|
|
40
|
-
provider: "v8",
|
|
41
|
-
enabled: false,
|
|
42
|
-
all: true,
|
|
43
|
-
clean: true,
|
|
44
|
-
cleanOnRerun: true,
|
|
45
|
-
reportsDirectory: "./coverage",
|
|
46
|
-
exclude: defaultCoverageExcludes,
|
|
47
|
-
reportOnFailure: false,
|
|
48
|
-
reporter: [
|
|
49
|
-
["text", {}],
|
|
50
|
-
["html", {}],
|
|
51
|
-
["clover", {}],
|
|
52
|
-
["json", {}]
|
|
53
|
-
],
|
|
54
|
-
extension: [
|
|
55
|
-
".js",
|
|
56
|
-
".cjs",
|
|
57
|
-
".mjs",
|
|
58
|
-
".ts",
|
|
59
|
-
".mts",
|
|
60
|
-
".tsx",
|
|
61
|
-
".jsx",
|
|
62
|
-
".vue",
|
|
63
|
-
".svelte",
|
|
64
|
-
".marko",
|
|
65
|
-
".astro"
|
|
66
|
-
],
|
|
67
|
-
allowExternal: false,
|
|
68
|
-
excludeAfterRemap: false,
|
|
69
|
-
ignoreEmptyLines: true,
|
|
70
|
-
processingConcurrency: Math.min(
|
|
71
|
-
20,
|
|
72
|
-
nodeos__default.availableParallelism?.() ?? nodeos__default.cpus().length
|
|
73
|
-
)
|
|
74
|
-
};
|
|
75
|
-
const fakeTimersDefaults = {
|
|
76
|
-
loopLimit: 1e4,
|
|
77
|
-
shouldClearNativeTimers: true
|
|
78
|
-
};
|
|
79
|
-
const configDefaults = Object.freeze({
|
|
80
|
-
allowOnly: !isCI,
|
|
81
|
-
isolate: true,
|
|
82
|
-
watch: !isCI,
|
|
83
|
-
globals: false,
|
|
84
|
-
environment: "node",
|
|
85
|
-
pool: "forks",
|
|
86
|
-
clearMocks: false,
|
|
87
|
-
restoreMocks: false,
|
|
88
|
-
mockReset: false,
|
|
89
|
-
unstubGlobals: false,
|
|
90
|
-
unstubEnvs: false,
|
|
91
|
-
include: defaultInclude,
|
|
92
|
-
exclude: defaultExclude,
|
|
93
|
-
teardownTimeout: 1e4,
|
|
94
|
-
forceRerunTriggers: ["**/package.json/**", "**/{vitest,vite}.config.*/**"],
|
|
95
|
-
update: false,
|
|
96
|
-
reporters: [],
|
|
97
|
-
silent: false,
|
|
98
|
-
hideSkippedTests: false,
|
|
99
|
-
api: false,
|
|
100
|
-
ui: false,
|
|
101
|
-
uiBase: "/__vitest__/",
|
|
102
|
-
open: !isCI,
|
|
103
|
-
css: {
|
|
104
|
-
include: []
|
|
105
|
-
},
|
|
106
|
-
coverage: coverageConfigDefaults,
|
|
107
|
-
fakeTimers: fakeTimersDefaults,
|
|
108
|
-
maxConcurrency: 5,
|
|
109
|
-
dangerouslyIgnoreUnhandledErrors: false,
|
|
110
|
-
typecheck: {
|
|
111
|
-
checker: "tsc",
|
|
112
|
-
include: ["**/*.{test,spec}-d.?(c|m)[jt]s?(x)"],
|
|
113
|
-
exclude: defaultExclude
|
|
114
|
-
},
|
|
115
|
-
slowTestThreshold: 300,
|
|
116
|
-
disableConsoleIntercept: false
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
export { coverageConfigDefaults as a, defaultInclude as b, configDefaults as c, defaultExclude as d, benchmarkConfigDefaults as e };
|