@swell/cli 2.9.19 → 2.9.20
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.
|
@@ -74,7 +74,7 @@ export function createMockRequest(options: MockRequestOptions = {}): SwellReques
|
|
|
74
74
|
const req: Partial<SwellRequest> & { appId: string; storeId: string } = {
|
|
75
75
|
originalRequest,
|
|
76
76
|
context,
|
|
77
|
-
url,
|
|
77
|
+
url: new URL(url),
|
|
78
78
|
method,
|
|
79
79
|
headers: requestHeaders,
|
|
80
80
|
referrer: originalRequest.referrer,
|
package/dist/lib/create/tests.js
CHANGED
|
@@ -3,7 +3,8 @@ import * as path from 'node:path';
|
|
|
3
3
|
import { filePathExistsAsync, writeFile } from '../apps/index.js';
|
|
4
4
|
import { envDtsTemplate, integrationTestTemplate, mockRequestTemplate, setupGlobalsTemplate, swellClientTemplate, tsconfigTemplate, unitTestTemplate, vitestConfigTemplate, } from './tests/templates/index.js';
|
|
5
5
|
const TEST_DEV_DEPENDENCIES = {
|
|
6
|
-
|
|
6
|
+
// 0.13+ requires vitest 4 and drops the /config entry the vitest template imports
|
|
7
|
+
'@cloudflare/vitest-pool-workers': '0.12.x',
|
|
7
8
|
vitest: '3.2.x',
|
|
8
9
|
'@swell/app-types': 'latest',
|
|
9
10
|
};
|
package/oclif.manifest.json
CHANGED