@apitree.cz/vitest-config 0.4.1 → 0.4.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/README.md +4 -2
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -32,10 +32,12 @@ export { base as default } from '@apitree.cz/vitest-config';
|
|
|
32
32
|
export { react as default } from '@apitree.cz/vitest-config';
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
> ⚠️ You will also need to install `jsdom` for React configuration to work.
|
|
36
|
+
|
|
35
37
|
### Nest.js
|
|
36
38
|
|
|
37
|
-
⚠️
|
|
38
|
-
ESM. If your project, however, is ESM, you can place the configuration in `vitest.config.ts` as usual.
|
|
39
|
+
> ⚠️ Nest.js projects are CJS by default. This configuration needs to be placed in `vitest.config.mjs` to interpret it
|
|
40
|
+
> as ESM. If your project, however, is ESM, you can place the configuration in `vitest.config.ts` as usual.
|
|
39
41
|
|
|
40
42
|
```typescript
|
|
41
43
|
export { nestjs as default } from '@apitree.cz/vitest-config';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apitree.cz/vitest-config",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Vitest configuration for ApiTree projects.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,12 +43,19 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@vitest/coverage-v8": "^2.1.8",
|
|
46
|
+
"jsdom": "^26.0.0",
|
|
46
47
|
"vitest": "^2.1.8"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
50
|
"@vitest/coverage-v8": "^2.1.8",
|
|
51
|
+
"jsdom": "^26.0.0",
|
|
50
52
|
"vitest": "^2.1.8"
|
|
51
53
|
},
|
|
54
|
+
"peerDependenciesMeta": {
|
|
55
|
+
"jsdom": {
|
|
56
|
+
"optional": true
|
|
57
|
+
}
|
|
58
|
+
},
|
|
52
59
|
"scripts": {
|
|
53
60
|
"prebuild": "del dist tsconfig.build.tsbuildinfo",
|
|
54
61
|
"build": "tsc --build tsconfig.build.json",
|