Skip to content

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

@ilanuk

Description

@ilanuk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions