@digigov/cli-test 2.0.0-0c4be34e → 2.0.0-13876dba
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/.rush/temp/shrinkwrap-deps.json +5 -5
- package/package.json +3 -3
- package/vitest.config.js +14 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"../../tooling/cli-test": "../../tooling/cli-test:
|
|
2
|
+
"../../tooling/cli-test": "../../tooling/cli-test:5LITTbxk0iUdFDNIYPh3vjxCfi1R9p8PZFAbx40HbDE=:",
|
|
3
3
|
"/@testing-library/dom@10.4.0": "Missing shrinkwrap entry!",
|
|
4
|
-
"/@testing-library/jest-dom@6.1.4(
|
|
4
|
+
"/@testing-library/jest-dom@6.1.4(vitest@2.1.3(@types/node@22.13.14)(jsdom@25.0.1)(lightningcss@1.27.0)(sass-embedded@1.86.0)(terser@5.39.0))": "Missing shrinkwrap entry!",
|
|
5
5
|
"/@testing-library/react@16.0.1(@testing-library/dom@10.4.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)": "Missing shrinkwrap entry!",
|
|
6
|
-
"/@vitest/coverage-istanbul@2.1.3(vitest@2.1.3(@types/node@22.
|
|
6
|
+
"/@vitest/coverage-istanbul@2.1.3(vitest@2.1.3(@types/node@22.13.14)(jsdom@25.0.1)(lightningcss@1.27.0)(sass-embedded@1.86.0)(terser@5.39.0))": "Missing shrinkwrap entry!",
|
|
7
|
+
"/jsdom@25.0.1": "Missing shrinkwrap entry!",
|
|
7
8
|
"/publint@0.1.8": "Missing shrinkwrap entry!",
|
|
8
|
-
"/
|
|
9
|
-
"/vitest@2.1.3(@types/node@22.7.5)(happy-dom@15.11.0)(jsdom@20.0.3)(lightningcss@1.22.0)(sass-embedded@1.81.0)(terser@5.33.0)": "Missing shrinkwrap entry!"
|
|
9
|
+
"/vitest@2.1.3(@types/node@22.13.14)(jsdom@25.0.1)(lightningcss@1.27.0)(sass-embedded@1.86.0)(terser@5.39.0)": "Missing shrinkwrap entry!"
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/cli-test",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-13876dba",
|
|
4
4
|
"description": "Test plugin for Digigov CLI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"publint": "0.1.8",
|
|
12
12
|
"@vitest/coverage-istanbul": "2.1.3",
|
|
13
13
|
"@testing-library/jest-dom": "6.1.4",
|
|
14
|
-
"
|
|
14
|
+
"jsdom": "25.0.1"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"publint": "0.1.8"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vitest": "2.1.3",
|
|
21
21
|
"@testing-library/dom": "10.4.0",
|
|
22
22
|
"@testing-library/react": "16.0.1",
|
|
23
|
-
"@digigov/cli": "2.0.0-
|
|
23
|
+
"@digigov/cli": "2.0.0-13876dba"
|
|
24
24
|
},
|
|
25
25
|
"peerDependenciesMeta": {
|
|
26
26
|
"@testing-library/dom": {
|
package/vitest.config.js
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
+
import fs from "fs";
|
|
2
3
|
import { resolveProject } from "@digigov/cli/lib";
|
|
3
4
|
import { defineConfig } from "vitest/config";
|
|
4
5
|
import { fileURLToPath } from "url";
|
|
5
|
-
import tsconfigPaths from "vite-tsconfig-paths";
|
|
6
6
|
|
|
7
7
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
8
8
|
|
|
9
9
|
const project = resolveProject();
|
|
10
10
|
|
|
11
|
+
const tsconfigPath = path.join(project.root, "tsconfig.json");
|
|
12
|
+
const tsconfig = JSON.parse(fs.readFileSync(tsconfigPath, "utf8"));
|
|
13
|
+
|
|
14
|
+
const alias = Object.fromEntries(
|
|
15
|
+
Object.entries(tsconfig.compilerOptions.paths).map(([key, [value]]) => [
|
|
16
|
+
key.replace(/\/\*$/, ""),
|
|
17
|
+
path.resolve(project.root, value.replace(/\/\*$/, "")),
|
|
18
|
+
]),
|
|
19
|
+
);
|
|
20
|
+
|
|
11
21
|
export default defineConfig({
|
|
22
|
+
resolve: {
|
|
23
|
+
alias,
|
|
24
|
+
},
|
|
12
25
|
test: {
|
|
13
26
|
globals: true,
|
|
14
27
|
watch: false,
|
|
@@ -25,9 +38,4 @@ export default defineConfig({
|
|
|
25
38
|
provider: "istanbul",
|
|
26
39
|
},
|
|
27
40
|
},
|
|
28
|
-
plugins: [
|
|
29
|
-
tsconfigPaths({
|
|
30
|
-
root: project.workspace.root,
|
|
31
|
-
}),
|
|
32
|
-
],
|
|
33
41
|
});
|