@yeger/vitest-utils 1.2.5 → 1.2.6

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/index.d.mts CHANGED
@@ -1,35 +1,26 @@
1
1
  import { TestUserConfig } from "vitest/config";
2
2
  import { BrowserProviderOption } from "vitest/node";
3
-
4
- //#region src/config.d.ts
5
- declare const configuration: Record<string, TestUserConfig>;
6
- interface ConfigurationOptions {
3
+ export declare const configuration: Record<string, TestUserConfig>;
4
+ export interface ConfigurationOptions {
7
5
  /**
8
- * Enables common configuration options. Default: `true`
9
- */
6
+ * Enables common configuration options. Default: `true`
7
+ */
10
8
  common?: boolean;
11
9
  /**
12
- * Enable coverage configuration. Default: `true`
13
- */
10
+ * Enable coverage configuration. Default: `true`
11
+ */
14
12
  coverage?: boolean;
15
13
  /**
16
- * Enable idempotent configuration. Default: `true`
17
- */
14
+ * Enable idempotent configuration. Default: `true`
15
+ */
18
16
  idempotent?: boolean;
19
17
  /**
20
- * Specify the browser provider option. If defined, the browser mode will be auto-configured.
21
- */
18
+ * Specify the browser provider option. If defined, the browser mode will be auto-configured.
19
+ */
22
20
  browser?: BrowserProviderOption;
23
21
  }
24
22
  /**
25
- * Define a Vitest test configuration with coverage, idempotent settings, and browser support.
26
- */
27
- declare function defineTestConfig({
28
- common,
29
- coverage,
30
- idempotent,
31
- browser
32
- }?: ConfigurationOptions, userConfig?: TestUserConfig): TestUserConfig;
33
- //#endregion
34
- export { ConfigurationOptions, configuration, defineTestConfig };
23
+ * Define a Vitest test configuration with coverage, idempotent settings, and browser support.
24
+ */
25
+ export declare function defineTestConfig({ common, coverage, idempotent, browser }?: ConfigurationOptions, userConfig?: TestUserConfig): TestUserConfig;
35
26
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/config.ts"],"mappings":";;;;cAMa,aAAA,EAAe,MAAA,SAAe,cAAA;AAAA,UAqB1B,oBAAA;EArBjB;;;EAyBE,MAAA;EAzByC;AAqB3C;;EAQE,QAAA;EAQU;;;EAJV,UAAA;;;;EAIA,OAAA,GAAU,qBAAA;AAAA;;;;iBAMI,gBAAA;EACZ,MAAA;EAAe,QAAA;EAAiB,UAAA;EAAmB;AAAA,IAAW,oBAAA,EAChE,UAAA,GAAY,cAAA,GACX,cAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/config.ts"],"mappings":";;qBAMa,eAAe,eAAe;iBAqB1B;;;;EAIf;;;;EAIA;;;;EAIA;;;;EAIA,UAAU;;;;;wBAMI,mBACZ,QAAe,UAAiB,YAAmB,YAAW,sBAChE,aAAY,iBACX"}
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import process from "node:process";
2
2
  import deepmerge from "deepmerge";
3
- //#region src/config.ts
3
+ // src/config.ts
4
4
  const configuration = {
5
5
  common: { silent: "passed-only" },
6
6
  coverage: { coverage: {
@@ -38,7 +38,6 @@ function defineTestConfig({ common = true, coverage = true, idempotent = true, b
38
38
  };
39
39
  return deepmerge(config, userConfig);
40
40
  }
41
- //#endregion
42
41
  export { configuration, defineTestConfig };
43
42
 
44
43
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeger/vitest-utils",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "bugs": {
5
5
  "url": "https://github.com/DerYeger/yeger/issues"
6
6
  },
@@ -36,13 +36,13 @@
36
36
  "deepmerge": "4.3.1"
37
37
  },
38
38
  "devDependencies": {
39
- "publint": "0.3.21",
40
- "tsdown": "0.22.3",
41
- "typescript": "6.0.3",
42
- "@yeger/tsconfig": "2.1.3"
39
+ "@yeger/tsconfig": "2.1.3",
40
+ "publint": "0.3.25",
41
+ "tsdown": "0.23.7",
42
+ "typescript": "6.0.3"
43
43
  },
44
44
  "peerDependencies": {
45
- "vitest": "^4.0.0"
45
+ "vitest": "^5.0.0"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsdown",