@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/component-cli-lib",
3
- "version": "1.22.1-alpha.12",
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.12",
17
- "@squiz/component-web-api-lib": "1.22.1-alpha.12",
18
- "@squiz/dx-common-lib": "1.22.1-alpha.12",
19
- "@squiz/dx-json-schema-lib": "1.22.1-alpha.12",
20
- "@squiz/dx-logger-lib": "1.22.1-alpha.12",
21
- "@squiz/virus-scanner-lib": "1.22.1-alpha.12",
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.12",
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": "aece4288604047718d98ed47a8b7ca3ddcd32ba0"
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.0?_componentSet=set&something=hello`,
26
+ `/r/unit-test-components/test-component/1.0.10?_componentSet=set&something=hello`,
27
27
  );
28
- expect(response.text).toEqual('<div>hello - {"_componentSet":"set","something":"hello"}</div>');
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.0?_componentSet=set&something=hello`,
86
+ `/r/unit-test-components/test-component/1.0.10?_componentSet=set&something=hello`,
87
87
  );
88
- expect(response.text).toEqual('<div>hello - {"_componentSet":"set","something":"hello"}</div>');
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.0?_componentSet=local-development-only',
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.0?_componentSet=local-development-only',
59
+ '/r/unit-test-components/test-component/1.0.10?_componentSet=local-development-only',
60
60
  );
61
61
 
62
- expect(renderResponse.statusCode).not.toEqual(200);
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
  });
@@ -19,7 +19,7 @@
19
19
  "format": "multi-line"
20
20
  }
21
21
  },
22
- "required": ["text"]
22
+ "required": []
23
23
  },
24
24
  "output": { "responseType": "html" }
25
25
  }
@@ -18,7 +18,7 @@
18
18
  "type": "string"
19
19
  }
20
20
  },
21
- "required": ["something"]
21
+ "required": []
22
22
  },
23
23
  "output": {
24
24
  "responseType": "html",
@@ -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: hello</div>',
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(''),