Skip to content

TypeError: Cannot create property 'ejs' on boolean 'true' #29

@JeremyCraigMartinez

Description

@JeremyCraigMartinez
    TypeError: Cannot create property 'ejs' on boolean 'true'

      1 | const mod = require('../../dist/lambdas/query-item');
      2 | 
    > 3 | const jestPlugin = require('serverless-jest-plugin');
        |                    ^
      4 | 

Getting an error with sls invoke test...

Here is what my serverless.yml looks like

plugins:
  - serverless-offline
  - serverless-jest-plugin

...

custom:
  jest:
    collectCoverage: true
    collectCoverageFrom: "src/**/*.js"
    testURL: "http://localhost:3000"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions