@stardeck-customer-apps/testing 0.1.0
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/SKILL.md +118 -0
- package/dist/config.d.mts +16 -0
- package/dist/config.d.ts +16 -0
- package/dist/config.js +57 -0
- package/dist/config.mjs +32 -0
- package/dist/index.d.mts +143 -0
- package/dist/index.d.ts +143 -0
- package/dist/index.js +910 -0
- package/dist/index.mjs +865 -0
- package/dist/next/headers-shim.d.mts +38 -0
- package/dist/next/headers-shim.d.ts +38 -0
- package/dist/next/headers-shim.js +114 -0
- package/dist/next/headers-shim.mjs +86 -0
- package/dist/server-only-shim.d.mts +2 -0
- package/dist/server-only-shim.d.ts +2 -0
- package/dist/server-only-shim.js +18 -0
- package/dist/server-only-shim.mjs +0 -0
- package/dist/setup.d.mts +2 -0
- package/dist/setup.d.ts +2 -0
- package/dist/setup.js +645 -0
- package/dist/setup.mjs +621 -0
- package/package.json +91 -0
package/package.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stardeck-customer-apps/testing",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Vitest test harness for Stardeck customer apps — in-process Postgres (PGlite) plus a control-plane simulator so the real Stardeck SDKs run unmodified in tests",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"registry": "https://registry.npmjs.org/",
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"SKILL.md"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.mjs",
|
|
20
|
+
"require": "./dist/index.js",
|
|
21
|
+
"default": "./dist/index.mjs"
|
|
22
|
+
},
|
|
23
|
+
"./config": {
|
|
24
|
+
"types": "./dist/config.d.ts",
|
|
25
|
+
"import": "./dist/config.mjs",
|
|
26
|
+
"require": "./dist/config.js",
|
|
27
|
+
"default": "./dist/config.mjs"
|
|
28
|
+
},
|
|
29
|
+
"./setup": {
|
|
30
|
+
"types": "./dist/setup.d.ts",
|
|
31
|
+
"import": "./dist/setup.mjs",
|
|
32
|
+
"require": "./dist/setup.js",
|
|
33
|
+
"default": "./dist/setup.mjs"
|
|
34
|
+
},
|
|
35
|
+
"./next-headers": {
|
|
36
|
+
"types": "./dist/next/headers-shim.d.ts",
|
|
37
|
+
"import": "./dist/next/headers-shim.mjs",
|
|
38
|
+
"require": "./dist/next/headers-shim.js",
|
|
39
|
+
"default": "./dist/next/headers-shim.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./server-only": {
|
|
42
|
+
"import": "./dist/server-only-shim.mjs",
|
|
43
|
+
"require": "./dist/server-only-shim.js",
|
|
44
|
+
"default": "./dist/server-only-shim.mjs"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "tsup src/index.ts src/config.ts src/setup.ts src/next/headers-shim.ts src/server-only-shim.ts --format cjs,esm --dts --no-splitting",
|
|
49
|
+
"dev": "tsup src/index.ts src/config.ts src/setup.ts src/next/headers-shim.ts src/server-only-shim.ts --format cjs,esm --dts --no-splitting --watch",
|
|
50
|
+
"format": "prettier --write . && eslint . --fix",
|
|
51
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.test.json",
|
|
52
|
+
"lint": "eslint src/",
|
|
53
|
+
"test": "vitest run",
|
|
54
|
+
"test:watch": "vitest"
|
|
55
|
+
},
|
|
56
|
+
"keywords": [
|
|
57
|
+
"stardeck",
|
|
58
|
+
"testing",
|
|
59
|
+
"vitest",
|
|
60
|
+
"pglite"
|
|
61
|
+
],
|
|
62
|
+
"author": "Stardeck",
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"@electric-sql/pglite": "^0.3.0"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"next": "^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
69
|
+
"vitest": ">=2.0.0"
|
|
70
|
+
},
|
|
71
|
+
"peerDependenciesMeta": {
|
|
72
|
+
"next": {
|
|
73
|
+
"optional": true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@eslint/js": "^9.0.0",
|
|
78
|
+
"@neondatabase/serverless": "^1.0.0",
|
|
79
|
+
"@stardeck-customer-apps/data-store-sdk": "*",
|
|
80
|
+
"@stardeck-customer-apps/email-sdk": "*",
|
|
81
|
+
"@stardeck-customer-apps/tsconfig": "*",
|
|
82
|
+
"@types/node": "^24.10.1",
|
|
83
|
+
"kysely": "^0.27.0",
|
|
84
|
+
"kysely-neon": "^2.0.0",
|
|
85
|
+
"next": "^15.0.0",
|
|
86
|
+
"tsup": "^8.0.0",
|
|
87
|
+
"typescript": "^5.0.0",
|
|
88
|
+
"typescript-eslint": "^8.0.0",
|
|
89
|
+
"vitest": "^3.2.4"
|
|
90
|
+
}
|
|
91
|
+
}
|