Skip to content

SecurityError: localStorage is not available for opaque origins #20

@rparcus

Description

@rparcus

I encountered this error when running yarn test in https://serverless-stack.com/chapters/unit-tests-in-serverless.html

Solved it by changing the script in package.json to

"scripts": {
    "test": "jest --env=node"
  },

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