ioBroker / testing

Shared testing utilities for ioBroker
MIT License
8 stars 12 forks source link

test-and-release fails for wwwOnly adapters #577

Closed mcm1957 closed 8 months ago

mcm1957 commented 1 year ago

If an adapter declares '"onlyWWW": true,' then the tests should not fail with error if no 'main' attribute exists within package.json.

Adapter checker seems to handle this correctly.

Example: https://github.com/iobroker-community-adapters/ioBroker.icons-smarthome

  1) Validate the package files
       Check contents of package.json
         The property "main" exists:
     AssertionError: expected undefined not to be undefined
      at Context.<anonymous> (node_modules/@iobroker/testing/build/tests/packageFiles/index.js:61:57)
      at process.processImmediate (node:internal/timers:476:21)

Workarounds:

Both options are suboptimal. The satndard test environment should be able to handle this.

mcm1957 commented 1 year ago

@AlCalzone Do you have any spare time to add this exception to standard tests? Or would this be more effort than I guess.

mcm1957 commented 8 months ago

should be solved by PR https://github.com/ioBroker/testing/pull/594