Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ilanuk opened this issue Oct 24, 2022 · 0 comments

Comments

@ilanuk
Copy link

ilanuk commented Oct 24, 2022

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:

  • mochaPlugin for "function", "path", "handler", "httpEvent", "reporter", "reporter-options", "grep", "live", "root", "compilers", "timeout", "exit"

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant