@deot/dev-tester 2.2.0 → 2.3.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/README.md +3 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -22,7 +22,8 @@ interface TEST_OPTIONS {
|
|
|
22
22
|
|
|
23
23
|
```ts
|
|
24
24
|
import { mergeConfig, defineConfig } from 'vitest/config';
|
|
25
|
-
import
|
|
25
|
+
import type { UserConfig } from 'vite';
|
|
26
|
+
import configShared from './node_modules/@deot/dev-tester/shared.config'; // 这样调用时才会被编译
|
|
26
27
|
|
|
27
28
|
export default mergeConfig(
|
|
28
29
|
configShared,
|
|
@@ -36,7 +37,7 @@ export default mergeConfig(
|
|
|
36
37
|
]
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
|
-
})
|
|
40
|
+
}) as UserConfig
|
|
40
41
|
);
|
|
41
42
|
```
|
|
42
43
|
取`test.config.ts`, 是为了方便从`vitest`转其他测试工具时,可以不改变文件名
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deot/dev-tester",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"main": "dist/index.es.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@deot/dev-shared": "^2.
|
|
18
|
-
"@vitest/coverage-istanbul": "^0.
|
|
17
|
+
"@deot/dev-shared": "^2.3.0",
|
|
18
|
+
"@vitest/coverage-istanbul": "^0.34.1",
|
|
19
19
|
"cross-env": "^7.0.3",
|
|
20
|
-
"inquirer": "^9.2.
|
|
20
|
+
"inquirer": "^9.2.10",
|
|
21
21
|
"inquirer-autocomplete-prompt": "^3.0.0",
|
|
22
22
|
"jsdom": "^22.1.0",
|
|
23
|
-
"vitest": "^0.
|
|
23
|
+
"vitest": "^0.34.1"
|
|
24
24
|
}
|
|
25
25
|
}
|