@aristobyte-ui/jest-config 2.0.0 → 2.1.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/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,21 +31,21 @@ pnpm add -D @aristobyte-ui/jest-config
|
|
|
31
31
|
**Base config (Node environment):**
|
|
32
32
|
|
|
33
33
|
```ts
|
|
34
|
-
import { config } from
|
|
34
|
+
import { config } from '@aristobyte-ui/jest-config/base';
|
|
35
35
|
export default config;
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
**React config (includes Testing Library):**
|
|
39
39
|
|
|
40
40
|
```ts
|
|
41
|
-
import { config } from
|
|
41
|
+
import { config } from '@aristobyte-ui/jest-config/react';
|
|
42
42
|
export default config;
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
**Next.js config (includes React + moduleNameMapper for CSS/Assets):**
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
|
-
import { config } from
|
|
48
|
+
import { config } from '@aristobyte-ui/jest-config/next';
|
|
49
49
|
export default config;
|
|
50
50
|
```
|
|
51
51
|
|
|
@@ -65,7 +65,7 @@ export default config;
|
|
|
65
65
|
"test": "jest --config jest.config.js"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@aristobyte-ui/jest-config": "
|
|
68
|
+
"@aristobyte-ui/jest-config": "2.0.0",
|
|
69
69
|
"jest": "^29.0.0",
|
|
70
70
|
"@testing-library/jest-dom": "^6.0.0"
|
|
71
71
|
}
|
|
@@ -75,7 +75,7 @@ export default config;
|
|
|
75
75
|
And `jest.config.js`:
|
|
76
76
|
|
|
77
77
|
```ts
|
|
78
|
-
import { config } from
|
|
78
|
+
import { config } from '@aristobyte-ui/jest-config/react';
|
|
79
79
|
export default config;
|
|
80
80
|
```
|
|
81
81
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aristobyte-ui/jest-config",
|
|
3
3
|
"description": "Centralized, shareable Jest configuration presets for AristoByteUI monorepo projects. Supports Node, React, and Next.js environments with TypeScript, Babel integration, and consistent coverage reporting.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "./jest.base.js",
|