create-warlock 4.0.153 → 4.0.154
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/package.json
CHANGED
|
@@ -26,30 +26,22 @@
|
|
|
26
26
|
"format": "npx prettier --write ./src/**/*.{js,jsx,ts,tsx,css,md,json} --config ./.prettierrc.json",
|
|
27
27
|
"tsc": "npx tsc --noEmit",
|
|
28
28
|
"prepare": "huskier-init && husky install",
|
|
29
|
-
"test": "vitest",
|
|
30
|
-
"test:watch": "vitest --watch",
|
|
31
|
-
"test:coverage": "vitest --coverage",
|
|
32
|
-
"test:ui": "vitest --ui",
|
|
33
29
|
"lf": "find . -type d ( -name 'node_modules' -o -name '.git' ) -prune -o -type f -exec dos2unix {} ;"
|
|
34
30
|
},
|
|
35
31
|
"dependencies": {
|
|
36
32
|
"@mongez/reinforcements": "^2.3.17",
|
|
37
33
|
"@mongez/localization": "^3.2.1",
|
|
38
34
|
"@mongez/supportive-is": "^2.0.4",
|
|
39
|
-
"@warlock.js/auth": "4.0.
|
|
40
|
-
"@warlock.js/cache": "4.0.
|
|
41
|
-
"@warlock.js/cascade": "4.0.
|
|
42
|
-
"@warlock.js/scheduler": "4.0.
|
|
43
|
-
"@warlock.js/core": "4.0.
|
|
44
|
-
"@warlock.js/logger": "4.0.
|
|
45
|
-
"@warlock.js/seal": "4.0.
|
|
35
|
+
"@warlock.js/auth": "4.0.154",
|
|
36
|
+
"@warlock.js/cache": "4.0.154",
|
|
37
|
+
"@warlock.js/cascade": "4.0.154",
|
|
38
|
+
"@warlock.js/scheduler": "4.0.154",
|
|
39
|
+
"@warlock.js/core": "4.0.154",
|
|
40
|
+
"@warlock.js/logger": "4.0.154",
|
|
41
|
+
"@warlock.js/seal": "4.0.154",
|
|
46
42
|
"dayjs": "^1.11.19"
|
|
47
43
|
},
|
|
48
44
|
"devDependencies": {
|
|
49
|
-
"@mongez/vite": "^2.0.4",
|
|
50
|
-
"@vitest/coverage-v8": "^4.0.16",
|
|
51
|
-
"vite": "^7.3.1",
|
|
52
|
-
"vitest": "^4.0.16",
|
|
53
45
|
"@mongez/huskier": "^3.0.0",
|
|
54
46
|
"@types/node": "^25.0.3",
|
|
55
47
|
"@types/prettier": "^3.0.0",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Global Test Setup
|
|
3
|
-
*
|
|
4
|
-
* This file runs ONCE in the main process before all test workers start.
|
|
5
|
-
* It starts the HTTP server which all test workers can make requests to.
|
|
6
|
-
*
|
|
7
|
-
* NOTE: The HTTP server has its OWN database connection, separate from
|
|
8
|
-
* the per-worker connections in setupFiles.
|
|
9
|
-
*/
|
|
10
|
-
import { startHttpTestServer, stopHttpTestServer } from "@warlock.js/core";
|
|
11
|
-
|
|
12
|
-
export async function setup() {
|
|
13
|
-
await startHttpTestServer();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export async function teardown() {
|
|
17
|
-
await stopHttpTestServer();
|
|
18
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-Worker Test Setup
|
|
3
|
-
*
|
|
4
|
-
* This file runs in EACH Vitest worker thread before tests execute.
|
|
5
|
-
* It sets up per-worker database and cache connections for direct
|
|
6
|
-
* service/repository testing (unit tests).
|
|
7
|
-
*
|
|
8
|
-
* NOTE: These connections are SEPARATE from the HTTP server's connections.
|
|
9
|
-
* Use direct calls for unit tests, HTTP requests for integration tests.
|
|
10
|
-
*/
|
|
11
|
-
import { setupTest } from "@warlock.js/core";
|
|
12
|
-
|
|
13
|
-
await setupTest({ connectors: true });
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import mongezVite from "@mongez/vite";
|
|
2
|
-
import { defineConfig } from "vitest/config";
|
|
3
|
-
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
plugins: [mongezVite()],
|
|
6
|
-
test: {
|
|
7
|
-
globalSetup: "./src/test-global-setup.ts", // HTTP server - runs once
|
|
8
|
-
setupFiles: ["./src/test-setup.ts"], // DB/cache - runs per worker
|
|
9
|
-
environment: "node",
|
|
10
|
-
globals: false,
|
|
11
|
-
include: ["src/app/**/*.test.ts"],
|
|
12
|
-
},
|
|
13
|
-
});
|