@altano/vitest-plugins 1.0.0 → 1.1.1
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/CHANGELOG.md +12 -0
- package/README.md +1 -3
- package/package.json +12 -11
- package/src/matchers/matcher.ts +1 -1
- package/vitest.config.ts +4 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/_ eslint-disable @typescript-eslint/no-empty-object-type _/
|
|
2
|
-
|
|
3
1
|
# vitest-plugins
|
|
4
2
|
|
|
5
3
|
[](https://www.npmjs.com/package/@altano/vitest-plugins)  
|
|
@@ -83,7 +81,7 @@ Will replace any instances of `process.cwd()` with `<cwd>` in the snapshot. Usef
|
|
|
83
81
|
|
|
84
82
|
### URLs
|
|
85
83
|
|
|
86
|
-
|
|
84
|
+
Will replace any instances of `http://localhost:1234` with `http://localhost` in the snapshot. Useful when dealing with test servers that use random ports.
|
|
87
85
|
|
|
88
86
|
### HTML
|
|
89
87
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altano/vitest-plugins",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Custom matchers and snapshot serializers to enhance vitest",
|
|
5
5
|
"homepage": "https://github.com/altano/npm-packages/tree/main/packages/vitest-plugins",
|
|
6
6
|
"repository": {
|
|
@@ -17,10 +17,11 @@
|
|
|
17
17
|
"type": "module",
|
|
18
18
|
"exports": {
|
|
19
19
|
"./matchers": {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"types": "./src/matchers/types.d.ts",
|
|
21
|
+
"default": "./src/matchers/setup.ts"
|
|
22
22
|
},
|
|
23
23
|
"./matchers/*": "./src/matchers/*.ts",
|
|
24
|
+
"./matchers/types": "./src/matchers/types.d.ts",
|
|
24
25
|
"./serializers": "./src/serializers/setup.ts",
|
|
25
26
|
"./serializers/*": "./src/serializers/*.ts"
|
|
26
27
|
},
|
|
@@ -29,19 +30,19 @@
|
|
|
29
30
|
"exifr": "^7.1.3",
|
|
30
31
|
"serialize-error": "^11.0.3",
|
|
31
32
|
"vfile": "^6.0.3",
|
|
32
|
-
"vitest": "^3.
|
|
33
|
+
"vitest": "^3.1.4"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@types/node": "^22.13.10",
|
|
36
|
-
"@vitest/coverage-v8": "^3.
|
|
37
|
-
"@vitest/expect": "^3.
|
|
37
|
+
"@vitest/coverage-v8": "^3.1.4",
|
|
38
|
+
"@vitest/expect": "^3.1.4",
|
|
38
39
|
"depcheck": "^1.4.7",
|
|
39
|
-
"eslint": "^9.
|
|
40
|
-
"prettier": "^3.
|
|
40
|
+
"eslint": "^9.23.0",
|
|
41
|
+
"prettier": "^3.5.3",
|
|
41
42
|
"typescript": "^5.8.2",
|
|
42
|
-
"vite": "^6.2.
|
|
43
|
-
"vitest": "^3.
|
|
44
|
-
"@altano/tsconfig": "0.0.
|
|
43
|
+
"vite": "^6.2.6",
|
|
44
|
+
"vitest": "^3.1.4",
|
|
45
|
+
"@altano/tsconfig": "0.0.1"
|
|
45
46
|
},
|
|
46
47
|
"publishConfig": {
|
|
47
48
|
"access": "public"
|
package/src/matchers/matcher.ts
CHANGED
package/vitest.config.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineConfig } from "vitest/config";
|
|
1
|
+
import { defineConfig, type ViteUserConfig } from "vitest/config";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const config: ViteUserConfig = defineConfig({
|
|
4
4
|
test: {
|
|
5
5
|
dir: "tests/unit",
|
|
6
6
|
coverage: {
|
|
@@ -15,3 +15,5 @@ export default defineConfig({
|
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
});
|
|
18
|
+
|
|
19
|
+
export default config;
|