suitest-js-api 3.21.0 → 3.21.2

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/lib/texts.js CHANGED
@@ -142,8 +142,8 @@ ${leaves}`,
142
142
 
143
143
  // error messages
144
144
  'errorType.syntaxError.modifierMissing': template`${0} chain missing modifier.`,
145
- 'errorType.suitestCommand': template`provided for 'suitest ${0}' command. It`,
146
- 'errorType.suitestTestCommand': `Seems you forgot to provide a test command${EOL}check https://suite.st/docs/suitest-api/test-launcher/#usage for more info`,
145
+ 'errorType.suitestCommand': () => 'provided for suitest-js-api running options. It',
146
+ 'errorType.suitestTestCommand': () => `Seems you forgot to provide a test command${EOL}check https://suite.st/docs/suitest-api/test-launcher/#usage for more info`,
147
147
  'errorType.testCannotBeFetched': (testId, mainTest) => `Test cannot be fetched test id: ${mainTest ? mainTest + ' > ... > ' + testId : testId}`,
148
148
  'errorType.noDevices': () => 'There are no devices associated with current configuration',
149
149
  'errorType.specifyRunningDevices': () => 'Please specify Configuration id and device id, or presets',
@@ -60,8 +60,8 @@ function handleChildResult(finishedWithErrors) {
60
60
  function validateInput(type, args) {
61
61
  try {
62
62
  const msg = type === TEST_COMMAND
63
- ? texts['errorType.suitestTestCommand']
64
- : texts['errorType.suitestCommand'](type.toLowerCase());
63
+ ? texts['errorType.suitestTestCommand']()
64
+ : texts['errorType.suitestCommand']();
65
65
 
66
66
  validation.validate(
67
67
  validation.validators[`TEST_LAUNCHER_${type}`],
@@ -378,6 +378,7 @@ schemas[validationKeys.TEST_LAUNCHER_TOKEN] = {
378
378
  'type': 'object',
379
379
  'additionalProperties': {
380
380
  'type': 'object',
381
+ 'required': ['device', 'config'],
381
382
  'properties': {
382
383
  'device': {
383
384
  'oneOf': [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suitest-js-api",
3
- "version": "3.21.0",
3
+ "version": "3.21.2",
4
4
  "main": "index.js",
5
5
  "repository": "git@github.com:SuitestAutomation/suitest-js-api.git",
6
6
  "author": "Suitest <hello@suite.st>",
@@ -94,7 +94,7 @@
94
94
  },
95
95
  "dependencies": {
96
96
  "@suitest/smst-to-text": "^4.13.0",
97
- "@suitest/translate": "^4.24.0",
97
+ "@suitest/translate": "^4.25.0",
98
98
  "@types/node": "^14.0.10",
99
99
  "ajv": "^6.12.2",
100
100
  "ansi-regex": "^5.0.0",