nordcloud / serverless-mocha-plugin

Plugin for Serverless Framework which adds support for test-driven development using Mocha
MIT License
159 stars 50 forks source link

serverless-mocha-plugin plugin does not set types (yet) which will be required in serverless v4.0.0 #163

Open ilanuk opened 1 year ago

ilanuk commented 1 year ago

I am getting deprecation warning when checking with 'serverless doctor' Version of serverless mocha plugin : "^1.12.0",:

`CLI options definitions were upgraded with "type" property (which could be one of "string", "boolean", "multiple"). Below listed plugins do not predefine type for introduced options:

As per https://www.serverless.com/framework/docs/deprecations/#CLI_OPTIONS_SCHEMA_V3, following is noted. CLI Options extensions, type requirement Deprecation code: CLI_OPTIONS_SCHEMA_V3

Internal handling of CLI arguments was improved with type awareness for options. Now each option definition is expected have type defined in its settings.

Possible values are string, boolean and multiple. Check Defining options documentation for more info.

If you rely on a plugin which does not set types (yet) please report the issue at its issue tracker.

Starting with v4.0.0 any option extensions which does not have type defined will be communicated with a thrown error