@wp-tester/config 0.0.4 → 0.0.5
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/dist/auto-mount.d.ts.map +1 -1
- package/dist/auto-mount.js +10 -1
- package/dist/auto-mount.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +63 -7
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/options/project-type-detect.d.ts +1 -1
- package/dist/options/project-type-detect.d.ts.map +1 -1
- package/dist/options/project-type-detect.js +2 -2
- package/dist/options/project-type-detect.js.map +1 -1
- package/dist/options/project-type.d.ts.map +1 -1
- package/dist/options/project-type.js +27 -3
- package/dist/options/project-type.js.map +1 -1
- package/dist/phpunit.d.ts.map +1 -1
- package/dist/phpunit.js +14 -8
- package/dist/phpunit.js.map +1 -1
- package/dist/resolved-types.d.ts +5 -3
- package/dist/resolved-types.d.ts.map +1 -1
- package/dist/schema.json +73 -31
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/wp-tester-config.d.ts +41 -0
- package/dist/wp-tester-config.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/schema.json
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"ArrayBuffer": {
|
|
45
45
|
"properties": {
|
|
46
|
-
"__@toStringTag@
|
|
46
|
+
"__@toStringTag@642": {
|
|
47
47
|
"type": "string"
|
|
48
48
|
},
|
|
49
49
|
"byteLength": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"required": [
|
|
54
|
-
"__@toStringTag@
|
|
54
|
+
"__@toStringTag@642",
|
|
55
55
|
"byteLength"
|
|
56
56
|
],
|
|
57
57
|
"type": "object"
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
"BYTES_PER_ELEMENT": {
|
|
194
194
|
"type": "number"
|
|
195
195
|
},
|
|
196
|
-
"__@toStringTag@
|
|
196
|
+
"__@toStringTag@642": {
|
|
197
197
|
"const": "Uint8Array",
|
|
198
198
|
"type": "string"
|
|
199
199
|
},
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
},
|
|
213
213
|
"required": [
|
|
214
214
|
"BYTES_PER_ELEMENT",
|
|
215
|
-
"__@toStringTag@
|
|
215
|
+
"__@toStringTag@642",
|
|
216
216
|
"buffer",
|
|
217
217
|
"byteLength",
|
|
218
218
|
"byteOffset",
|
|
@@ -1276,6 +1276,11 @@
|
|
|
1276
1276
|
"$ref": "#/definitions/Blueprint",
|
|
1277
1277
|
"description": "WordPress Playground Blueprint configuration.\nCan be an inline blueprint object or a file path to a blueprint JSON file."
|
|
1278
1278
|
},
|
|
1279
|
+
"env": {
|
|
1280
|
+
"$ref": "#/definitions/EnvironmentVariables",
|
|
1281
|
+
"default": {},
|
|
1282
|
+
"description": "Environment variables to set when running PHPUnit tests"
|
|
1283
|
+
},
|
|
1279
1284
|
"mounts": {
|
|
1280
1285
|
"default": [],
|
|
1281
1286
|
"description": "Filesystem mounts to apply to this environment",
|
|
@@ -1294,6 +1299,11 @@
|
|
|
1294
1299
|
],
|
|
1295
1300
|
"type": "object"
|
|
1296
1301
|
},
|
|
1302
|
+
"EnvironmentVariables": {
|
|
1303
|
+
"default": {},
|
|
1304
|
+
"description": "Environment variables for WordPress Playground.\nKey-value pairs of environment variable names and values.",
|
|
1305
|
+
"type": "object"
|
|
1306
|
+
},
|
|
1297
1307
|
"FileReference": {
|
|
1298
1308
|
"anyOf": [
|
|
1299
1309
|
{
|
|
@@ -1329,7 +1339,7 @@
|
|
|
1329
1339
|
"BYTES_PER_ELEMENT": {
|
|
1330
1340
|
"type": "number"
|
|
1331
1341
|
},
|
|
1332
|
-
"__@toStringTag@
|
|
1342
|
+
"__@toStringTag@642": {
|
|
1333
1343
|
"const": "Uint8Array",
|
|
1334
1344
|
"type": "string"
|
|
1335
1345
|
},
|
|
@@ -1348,7 +1358,7 @@
|
|
|
1348
1358
|
},
|
|
1349
1359
|
"required": [
|
|
1350
1360
|
"BYTES_PER_ELEMENT",
|
|
1351
|
-
"__@toStringTag@
|
|
1361
|
+
"__@toStringTag@642",
|
|
1352
1362
|
"buffer",
|
|
1353
1363
|
"byteLength",
|
|
1354
1364
|
"byteOffset",
|
|
@@ -1590,7 +1600,7 @@
|
|
|
1590
1600
|
"BYTES_PER_ELEMENT": {
|
|
1591
1601
|
"type": "number"
|
|
1592
1602
|
},
|
|
1593
|
-
"__@toStringTag@
|
|
1603
|
+
"__@toStringTag@642": {
|
|
1594
1604
|
"const": "Uint8Array",
|
|
1595
1605
|
"type": "string"
|
|
1596
1606
|
},
|
|
@@ -1609,7 +1619,7 @@
|
|
|
1609
1619
|
},
|
|
1610
1620
|
"required": [
|
|
1611
1621
|
"BYTES_PER_ELEMENT",
|
|
1612
|
-
"__@toStringTag@
|
|
1622
|
+
"__@toStringTag@642",
|
|
1613
1623
|
"buffer",
|
|
1614
1624
|
"byteLength",
|
|
1615
1625
|
"byteOffset",
|
|
@@ -1798,7 +1808,7 @@
|
|
|
1798
1808
|
"BYTES_PER_ELEMENT": {
|
|
1799
1809
|
"type": "number"
|
|
1800
1810
|
},
|
|
1801
|
-
"__@toStringTag@
|
|
1811
|
+
"__@toStringTag@642": {
|
|
1802
1812
|
"const": "Uint8Array",
|
|
1803
1813
|
"type": "string"
|
|
1804
1814
|
},
|
|
@@ -1817,7 +1827,7 @@
|
|
|
1817
1827
|
},
|
|
1818
1828
|
"required": [
|
|
1819
1829
|
"BYTES_PER_ELEMENT",
|
|
1820
|
-
"__@toStringTag@
|
|
1830
|
+
"__@toStringTag@642",
|
|
1821
1831
|
"buffer",
|
|
1822
1832
|
"byteLength",
|
|
1823
1833
|
"byteOffset",
|
|
@@ -2011,7 +2021,7 @@
|
|
|
2011
2021
|
"BYTES_PER_ELEMENT": {
|
|
2012
2022
|
"type": "number"
|
|
2013
2023
|
},
|
|
2014
|
-
"__@toStringTag@
|
|
2024
|
+
"__@toStringTag@642": {
|
|
2015
2025
|
"const": "Uint8Array",
|
|
2016
2026
|
"type": "string"
|
|
2017
2027
|
},
|
|
@@ -2030,7 +2040,7 @@
|
|
|
2030
2040
|
},
|
|
2031
2041
|
"required": [
|
|
2032
2042
|
"BYTES_PER_ELEMENT",
|
|
2033
|
-
"__@toStringTag@
|
|
2043
|
+
"__@toStringTag@642",
|
|
2034
2044
|
"buffer",
|
|
2035
2045
|
"byteLength",
|
|
2036
2046
|
"byteOffset",
|
|
@@ -2219,7 +2229,7 @@
|
|
|
2219
2229
|
"BYTES_PER_ELEMENT": {
|
|
2220
2230
|
"type": "number"
|
|
2221
2231
|
},
|
|
2222
|
-
"__@toStringTag@
|
|
2232
|
+
"__@toStringTag@642": {
|
|
2223
2233
|
"const": "Uint8Array",
|
|
2224
2234
|
"type": "string"
|
|
2225
2235
|
},
|
|
@@ -2238,7 +2248,7 @@
|
|
|
2238
2248
|
},
|
|
2239
2249
|
"required": [
|
|
2240
2250
|
"BYTES_PER_ELEMENT",
|
|
2241
|
-
"__@toStringTag@
|
|
2251
|
+
"__@toStringTag@642",
|
|
2242
2252
|
"buffer",
|
|
2243
2253
|
"byteLength",
|
|
2244
2254
|
"byteOffset",
|
|
@@ -2394,9 +2404,11 @@
|
|
|
2394
2404
|
"type": "boolean"
|
|
2395
2405
|
},
|
|
2396
2406
|
"hostPath": {
|
|
2407
|
+
"description": "Absolute or relative path on the host filesystem to mount.\nRelative paths are resolved from projectHostPath.",
|
|
2397
2408
|
"type": "string"
|
|
2398
2409
|
},
|
|
2399
2410
|
"vfsPath": {
|
|
2411
|
+
"description": "Virtual filesystem path where the host path should be mounted.",
|
|
2400
2412
|
"type": "string"
|
|
2401
2413
|
}
|
|
2402
2414
|
},
|
|
@@ -2447,7 +2459,7 @@
|
|
|
2447
2459
|
"BYTES_PER_ELEMENT": {
|
|
2448
2460
|
"type": "number"
|
|
2449
2461
|
},
|
|
2450
|
-
"__@toStringTag@
|
|
2462
|
+
"__@toStringTag@642": {
|
|
2451
2463
|
"const": "Uint8Array",
|
|
2452
2464
|
"type": "string"
|
|
2453
2465
|
},
|
|
@@ -2466,7 +2478,7 @@
|
|
|
2466
2478
|
},
|
|
2467
2479
|
"required": [
|
|
2468
2480
|
"BYTES_PER_ELEMENT",
|
|
2469
|
-
"__@toStringTag@
|
|
2481
|
+
"__@toStringTag@642",
|
|
2470
2482
|
"buffer",
|
|
2471
2483
|
"byteLength",
|
|
2472
2484
|
"byteOffset",
|
|
@@ -2532,7 +2544,7 @@
|
|
|
2532
2544
|
"BYTES_PER_ELEMENT": {
|
|
2533
2545
|
"type": "number"
|
|
2534
2546
|
},
|
|
2535
|
-
"__@toStringTag@
|
|
2547
|
+
"__@toStringTag@642": {
|
|
2536
2548
|
"const": "Uint8Array",
|
|
2537
2549
|
"type": "string"
|
|
2538
2550
|
},
|
|
@@ -2551,7 +2563,7 @@
|
|
|
2551
2563
|
},
|
|
2552
2564
|
"required": [
|
|
2553
2565
|
"BYTES_PER_ELEMENT",
|
|
2554
|
-
"__@toStringTag@
|
|
2566
|
+
"__@toStringTag@642",
|
|
2555
2567
|
"buffer",
|
|
2556
2568
|
"byteLength",
|
|
2557
2569
|
"byteOffset",
|
|
@@ -2616,6 +2628,13 @@
|
|
|
2616
2628
|
"description": "Path to PHPUnit configuration file (relative to project root)",
|
|
2617
2629
|
"type": "string"
|
|
2618
2630
|
},
|
|
2631
|
+
"phpunitArgs": {
|
|
2632
|
+
"description": "Additional arguments to pass to PHPUnit",
|
|
2633
|
+
"items": {
|
|
2634
|
+
"type": "string"
|
|
2635
|
+
},
|
|
2636
|
+
"type": "array"
|
|
2637
|
+
},
|
|
2619
2638
|
"phpunitPath": {
|
|
2620
2639
|
"description": "Path to PHPUnit executable (relative to project root)",
|
|
2621
2640
|
"type": "string"
|
|
@@ -2847,10 +2866,10 @@
|
|
|
2847
2866
|
},
|
|
2848
2867
|
"SharedArrayBuffer": {
|
|
2849
2868
|
"properties": {
|
|
2850
|
-
"__@species@
|
|
2869
|
+
"__@species@709": {
|
|
2851
2870
|
"$ref": "#/definitions/SharedArrayBuffer"
|
|
2852
2871
|
},
|
|
2853
|
-
"__@toStringTag@
|
|
2872
|
+
"__@toStringTag@642": {
|
|
2854
2873
|
"const": "SharedArrayBuffer",
|
|
2855
2874
|
"type": "string"
|
|
2856
2875
|
},
|
|
@@ -2859,8 +2878,8 @@
|
|
|
2859
2878
|
}
|
|
2860
2879
|
},
|
|
2861
2880
|
"required": [
|
|
2862
|
-
"__@species@
|
|
2863
|
-
"__@toStringTag@
|
|
2881
|
+
"__@species@709",
|
|
2882
|
+
"__@toStringTag@642",
|
|
2864
2883
|
"byteLength"
|
|
2865
2884
|
],
|
|
2866
2885
|
"type": "object"
|
|
@@ -2934,7 +2953,7 @@
|
|
|
2934
2953
|
"BYTES_PER_ELEMENT": {
|
|
2935
2954
|
"type": "number"
|
|
2936
2955
|
},
|
|
2937
|
-
"__@toStringTag@
|
|
2956
|
+
"__@toStringTag@642": {
|
|
2938
2957
|
"const": "Uint8Array",
|
|
2939
2958
|
"type": "string"
|
|
2940
2959
|
},
|
|
@@ -2953,7 +2972,7 @@
|
|
|
2953
2972
|
},
|
|
2954
2973
|
"required": [
|
|
2955
2974
|
"BYTES_PER_ELEMENT",
|
|
2956
|
-
"__@toStringTag@
|
|
2975
|
+
"__@toStringTag@642",
|
|
2957
2976
|
"buffer",
|
|
2958
2977
|
"byteLength",
|
|
2959
2978
|
"byteOffset",
|
|
@@ -3157,7 +3176,7 @@
|
|
|
3157
3176
|
"BYTES_PER_ELEMENT": {
|
|
3158
3177
|
"type": "number"
|
|
3159
3178
|
},
|
|
3160
|
-
"__@toStringTag@
|
|
3179
|
+
"__@toStringTag@642": {
|
|
3161
3180
|
"const": "Uint8Array",
|
|
3162
3181
|
"type": "string"
|
|
3163
3182
|
},
|
|
@@ -3176,7 +3195,7 @@
|
|
|
3176
3195
|
},
|
|
3177
3196
|
"required": [
|
|
3178
3197
|
"BYTES_PER_ELEMENT",
|
|
3179
|
-
"__@toStringTag@
|
|
3198
|
+
"__@toStringTag@642",
|
|
3180
3199
|
"buffer",
|
|
3181
3200
|
"byteLength",
|
|
3182
3201
|
"byteOffset",
|
|
@@ -3217,7 +3236,7 @@
|
|
|
3217
3236
|
"BYTES_PER_ELEMENT": {
|
|
3218
3237
|
"type": "number"
|
|
3219
3238
|
},
|
|
3220
|
-
"__@toStringTag@
|
|
3239
|
+
"__@toStringTag@642": {
|
|
3221
3240
|
"const": "Uint8Array",
|
|
3222
3241
|
"type": "string"
|
|
3223
3242
|
},
|
|
@@ -3236,7 +3255,7 @@
|
|
|
3236
3255
|
},
|
|
3237
3256
|
"required": [
|
|
3238
3257
|
"BYTES_PER_ELEMENT",
|
|
3239
|
-
"__@toStringTag@
|
|
3258
|
+
"__@toStringTag@642",
|
|
3240
3259
|
"buffer",
|
|
3241
3260
|
"byteLength",
|
|
3242
3261
|
"byteOffset",
|
|
@@ -3411,14 +3430,18 @@
|
|
|
3411
3430
|
"projectType": {
|
|
3412
3431
|
"description": "Detected WordPress project type.\nAutomatically detected during setup based on project structure.",
|
|
3413
3432
|
"enum": [
|
|
3433
|
+
"other",
|
|
3414
3434
|
"plugin",
|
|
3415
3435
|
"theme",
|
|
3416
|
-
"
|
|
3417
|
-
"wordpress-install",
|
|
3436
|
+
"wordpress",
|
|
3418
3437
|
"wp-content"
|
|
3419
3438
|
],
|
|
3420
3439
|
"type": "string"
|
|
3421
3440
|
},
|
|
3441
|
+
"projectVFSPath": {
|
|
3442
|
+
"description": "Path where your project directory will be mounted in the WordPress environment.\n\nWhen not specified, the path is automatically determined based on projectType:\n- plugin: /wordpress/wp-content/plugins/{dir-name}\n- theme: /wordpress/wp-content/themes/{dir-name}\n- wp-content: /wordpress/wp-content\n- wordpress: /wordpress\n- other: **Required** - You must specify where your project directory should be mounted",
|
|
3443
|
+
"type": "string"
|
|
3444
|
+
},
|
|
3422
3445
|
"reporters": {
|
|
3423
3446
|
"default": [
|
|
3424
3447
|
"default"
|
|
@@ -3439,5 +3462,24 @@
|
|
|
3439
3462
|
"tests"
|
|
3440
3463
|
],
|
|
3441
3464
|
"type": "object",
|
|
3442
|
-
"$id": "https://raw.githubusercontent.com/bgrgicak/wp-tester/trunk/packages/config/src/schema.json"
|
|
3465
|
+
"$id": "https://raw.githubusercontent.com/bgrgicak/wp-tester/trunk/packages/config/src/schema.json",
|
|
3466
|
+
"allOf": [
|
|
3467
|
+
{
|
|
3468
|
+
"if": {
|
|
3469
|
+
"properties": {
|
|
3470
|
+
"projectType": {
|
|
3471
|
+
"const": "other"
|
|
3472
|
+
}
|
|
3473
|
+
},
|
|
3474
|
+
"required": [
|
|
3475
|
+
"projectType"
|
|
3476
|
+
]
|
|
3477
|
+
},
|
|
3478
|
+
"then": {
|
|
3479
|
+
"required": [
|
|
3480
|
+
"projectVFSPath"
|
|
3481
|
+
]
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
]
|
|
3443
3485
|
}
|