@regardio/dev 1.11.1 → 1.11.3
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/vitest/node.d.ts +15 -2
- package/dist/vitest/node.d.ts.map +1 -1
- package/dist/vitest/react.d.ts +16 -2
- package/dist/vitest/react.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/vitest/node.ts +2 -4
- package/src/vitest/react.ts +2 -3
package/dist/vitest/node.d.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import type { TestUserConfig } from 'vitest/node';
|
|
2
1
|
export declare const coverageThresholds: {
|
|
3
2
|
branches: number;
|
|
4
3
|
functions: number;
|
|
5
4
|
lines: number;
|
|
6
5
|
statements: number;
|
|
7
6
|
};
|
|
8
|
-
export declare const vitestNodeConfig:
|
|
7
|
+
export declare const vitestNodeConfig: {
|
|
8
|
+
readonly coverage: {
|
|
9
|
+
readonly provider: "v8";
|
|
10
|
+
readonly thresholds: {
|
|
11
|
+
branches: number;
|
|
12
|
+
functions: number;
|
|
13
|
+
lines: number;
|
|
14
|
+
statements: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
readonly environment: "node";
|
|
18
|
+
readonly exclude: readonly ["node_modules", "dist", "build", ".turbo", ".react-router"];
|
|
19
|
+
readonly globals: true;
|
|
20
|
+
readonly include: readonly ["**/*.test.ts", "**/*.test.tsx"];
|
|
21
|
+
};
|
|
9
22
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/vitest/node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/vitest/node.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAC;AAMF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;CASnB,CAAC"}
|
package/dist/vitest/react.d.ts
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const vitestReactConfig: {
|
|
2
|
+
readonly coverage: {
|
|
3
|
+
readonly provider: "v8";
|
|
4
|
+
readonly thresholds: {
|
|
5
|
+
branches: number;
|
|
6
|
+
functions: number;
|
|
7
|
+
lines: number;
|
|
8
|
+
statements: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
readonly environment: "jsdom";
|
|
12
|
+
readonly exclude: readonly ["node_modules", "dist", "build", ".turbo", ".react-router"];
|
|
13
|
+
readonly globals: true;
|
|
14
|
+
readonly include: readonly ["**/*.test.ts", "**/*.test.tsx"];
|
|
15
|
+
readonly setupFiles: readonly ["./src/test-setup.ts"];
|
|
16
|
+
};
|
|
3
17
|
//# sourceMappingURL=react.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/vitest/react.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/vitest/react.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;CAUpB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package.json",
|
|
3
3
|
"name": "@regardio/dev",
|
|
4
|
-
"version": "1.11.
|
|
4
|
+
"version": "1.11.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Regardio developer tooling for testing, linting, and build workflows",
|
|
7
7
|
"keywords": [
|
|
@@ -96,13 +96,13 @@
|
|
|
96
96
|
"@biomejs/biome": "2.3.11",
|
|
97
97
|
"@changesets/changelog-github": "0.5.2",
|
|
98
98
|
"@changesets/cli": "2.29.8",
|
|
99
|
-
"@commitlint/cli": "20.3.
|
|
100
|
-
"@commitlint/config-conventional": "20.3.
|
|
99
|
+
"@commitlint/cli": "20.3.1",
|
|
100
|
+
"@commitlint/config-conventional": "20.3.1",
|
|
101
101
|
"@playwright/test": "1.57.0",
|
|
102
102
|
"@testing-library/jest-dom": "6.9.1",
|
|
103
103
|
"@testing-library/react": "16.3.1",
|
|
104
104
|
"@total-typescript/ts-reset": "0.6.1",
|
|
105
|
-
"@types/node": "25.0.
|
|
105
|
+
"@types/node": "25.0.6",
|
|
106
106
|
"@vitest/coverage-v8": "4.0.16",
|
|
107
107
|
"@vitest/ui": "4.0.16",
|
|
108
108
|
"husky": "9.1.7",
|
package/src/vitest/node.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { TestUserConfig } from 'vitest/node';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Coverage thresholds for library packages.
|
|
5
3
|
* These ensure adequate test coverage before publishing.
|
|
@@ -15,7 +13,7 @@ export const coverageThresholds = {
|
|
|
15
13
|
* Base Vitest configuration for Node.js packages.
|
|
16
14
|
* Use with defineConfig() in your vitest.config.ts
|
|
17
15
|
*/
|
|
18
|
-
export const vitestNodeConfig
|
|
16
|
+
export const vitestNodeConfig = {
|
|
19
17
|
coverage: {
|
|
20
18
|
provider: 'v8',
|
|
21
19
|
thresholds: coverageThresholds,
|
|
@@ -24,4 +22,4 @@ export const vitestNodeConfig: TestUserConfig = {
|
|
|
24
22
|
exclude: ['node_modules', 'dist', 'build', '.turbo', '.react-router'],
|
|
25
23
|
globals: true,
|
|
26
24
|
include: ['**/*.test.ts', '**/*.test.tsx'],
|
|
27
|
-
};
|
|
25
|
+
} as const;
|
package/src/vitest/react.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { TestUserConfig } from 'vitest/node';
|
|
2
1
|
import { coverageThresholds } from './node';
|
|
3
2
|
|
|
4
3
|
/**
|
|
@@ -7,7 +6,7 @@ import { coverageThresholds } from './node';
|
|
|
7
6
|
*
|
|
8
7
|
* Requires a setup file that imports '@testing-library/jest-dom/vitest'
|
|
9
8
|
*/
|
|
10
|
-
export const vitestReactConfig
|
|
9
|
+
export const vitestReactConfig = {
|
|
11
10
|
coverage: {
|
|
12
11
|
provider: 'v8',
|
|
13
12
|
thresholds: coverageThresholds,
|
|
@@ -17,4 +16,4 @@ export const vitestReactConfig: TestUserConfig = {
|
|
|
17
16
|
globals: true,
|
|
18
17
|
include: ['**/*.test.ts', '**/*.test.tsx'],
|
|
19
18
|
setupFiles: ['./src/test-setup.ts'],
|
|
20
|
-
};
|
|
19
|
+
} as const;
|