@squiz/component-cli-lib 1.22.1-alpha.12 → 1.22.1-alpha.13
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/.npm/_logs/{2023-04-11T22_25_43_064Z-debug-0.log → 2023-04-11T23_54_49_852Z-debug-0.log} +13 -13
- package/lib/index.js +2 -2
- package/lib/index.js.map +2 -2
- package/package.json +9 -9
- package/src/component-dev-folder-structures.integration.spec.ts +4 -4
- package/src/component-dev.integration.spec.ts +3 -9
- package/src/integration-tests/__components__/cmp-no-api-key/manifest.json +1 -1
- package/src/integration-tests/__components__/cmp-static-file-test/manifest.json +1 -1
- package/src/integration-tests/upload-and-render-component.integration.spec.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squiz/component-cli-lib",
|
|
3
|
-
"version": "1.22.1-alpha.
|
|
3
|
+
"version": "1.22.1-alpha.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@squiz/component-lib": "1.22.1-alpha.
|
|
17
|
-
"@squiz/component-web-api-lib": "1.22.1-alpha.
|
|
18
|
-
"@squiz/dx-common-lib": "1.22.1-alpha.
|
|
19
|
-
"@squiz/dx-json-schema-lib": "1.22.1-alpha.
|
|
20
|
-
"@squiz/dx-logger-lib": "1.22.1-alpha.
|
|
21
|
-
"@squiz/virus-scanner-lib": "1.22.1-alpha.
|
|
16
|
+
"@squiz/component-lib": "1.22.1-alpha.13",
|
|
17
|
+
"@squiz/component-web-api-lib": "1.22.1-alpha.13",
|
|
18
|
+
"@squiz/dx-common-lib": "1.22.1-alpha.13",
|
|
19
|
+
"@squiz/dx-json-schema-lib": "1.22.1-alpha.13",
|
|
20
|
+
"@squiz/dx-logger-lib": "1.22.1-alpha.13",
|
|
21
|
+
"@squiz/virus-scanner-lib": "1.22.1-alpha.13",
|
|
22
22
|
"@types/cli-color": "2.0.2",
|
|
23
23
|
"@types/express": "4.17.17",
|
|
24
24
|
"@types/jest": "28.1.8",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"typescript": "4.9.4"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@squiz/render-runtime-lib": "1.22.1-alpha.
|
|
35
|
+
"@squiz/render-runtime-lib": "1.22.1-alpha.13",
|
|
36
36
|
"archiver": "5.3.1",
|
|
37
37
|
"axios": "1.3.2",
|
|
38
38
|
"cli-color": "^2.0.2",
|
|
39
39
|
"open": "^8.4.0",
|
|
40
40
|
"supertest": "^6.2.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "4f7d1416b021d01416cd1f5a1acf4b5f1b4c0e58"
|
|
43
43
|
}
|
|
@@ -23,9 +23,9 @@ describe('component-dev', () => {
|
|
|
23
23
|
|
|
24
24
|
it('should find the component', async () => {
|
|
25
25
|
const response = await request.get(
|
|
26
|
-
`/r/unit-test-components/test-component/1.0.
|
|
26
|
+
`/r/unit-test-components/test-component/1.0.10?_componentSet=set&something=hello`,
|
|
27
27
|
);
|
|
28
|
-
expect(response.text).toEqual('<div>hello - {
|
|
28
|
+
expect(response.text).toEqual('<div>hello - {}</div>');
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
|
|
@@ -83,9 +83,9 @@ describe('component-dev', () => {
|
|
|
83
83
|
});
|
|
84
84
|
it('should find the component', async () => {
|
|
85
85
|
const response = await request.get(
|
|
86
|
-
`/r/unit-test-components/test-component/1.0.
|
|
86
|
+
`/r/unit-test-components/test-component/1.0.10?_componentSet=set&something=hello`,
|
|
87
87
|
);
|
|
88
|
-
expect(response.text).toEqual('<div>hello - {
|
|
88
|
+
expect(response.text).toEqual('<div>hello - {}</div>');
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
});
|
|
@@ -52,20 +52,14 @@ describe('component-dev', () => {
|
|
|
52
52
|
const listingResponse = await request.get('/');
|
|
53
53
|
// Component with no preview
|
|
54
54
|
expect(listingResponse.text).toContain(
|
|
55
|
-
'/r/unit-test-components/test-component/1.0.
|
|
55
|
+
'/r/unit-test-components/test-component/1.0.10?_componentSet=local-development-only',
|
|
56
56
|
);
|
|
57
57
|
|
|
58
58
|
const renderResponse = await request.get(
|
|
59
|
-
'/r/unit-test-components/test-component/1.0.
|
|
59
|
+
'/r/unit-test-components/test-component/1.0.10?_componentSet=local-development-only',
|
|
60
60
|
);
|
|
61
61
|
|
|
62
|
-
expect(renderResponse.statusCode).
|
|
63
|
-
|
|
64
|
-
const withInputResponse = await request.get(
|
|
65
|
-
'/r/unit-test-components/test-component/1.0.0?_componentSet=local-development-only&something=my-value',
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
expect(withInputResponse.statusCode).toEqual(200);
|
|
62
|
+
expect(renderResponse.statusCode).toEqual(200);
|
|
69
63
|
});
|
|
70
64
|
});
|
|
71
65
|
});
|
|
@@ -268,7 +268,7 @@ describe('uploading a component', () => {
|
|
|
268
268
|
expect(response.status).toEqual(200);
|
|
269
269
|
expect(response.data).toEqual(
|
|
270
270
|
[
|
|
271
|
-
'<div>Input:
|
|
271
|
+
'<div>Input: undefined</div>',
|
|
272
272
|
'<div>smoke-test-components/cmp-static-file-test 1.0.0 ',
|
|
273
273
|
`${configObj.renderServiceUrl}/s/smoke-test-components/cmp-static-file-test/1.0.0/birthday-cake.png?_componentSet=${webPath}</div>`,
|
|
274
274
|
].join(''),
|