Skip to content

serverless-offline exec is broken #154

Closed

Description

@jgilbert01

This is a Bug Report

Description

Serverless-offline has a nifty feature called scoped execution that can be used for automated integration testing.

This exec feature is currently not working with serverless-webpack because the tests get executed before webpack watch has a chance to compile the source.

Proposed Solution

The proposed solution is to execute compile after validate and before watch. This will force a compile when serverless-offline is started but before the tests are executed and still support watch for non automated scenarios that do not have the race condition.

Additional Data

  • Serverless-Webpack Version 2.0.0:
  • Webpack version 3.0.0:
  • Serverless Framework Version 1.17.0:
  • Serverless-Offline Version 3.15.0:

Activity

  1. added this to the 2.1.0 milestone on Jul 17, 2017
  2. jgilbert-hobsons commented on Jul 27, 2017

    @jgilbert-hobsons

    thx for accepting this merge request. is there any plan to publish a new version to npm?

  3. HyperBrain commented on Jul 27, 2017

    @HyperBrain
    Member

    Most likely today ;-)

  4. jgilbert-hobsons commented on Jul 27, 2017

    @jgilbert-hobsons

    Excellent!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions