Skip to content

Error: Invalid Chai property: calledTwice #155

Open
@naissa12

Description

@naissa12
Error: Invalid Chai property: calledTwice
    at Object.e [as get] (.tmp/karma_webpack/commons.js:149088:1519)
    at Context.<anonymous> (.tmp/karma_webpack/commons.js:3840:101)
    at Test.Runnable.run (/home/asruser/project/common/temp/node_modules/.pnpm/karma-mocha-snapshot@0.2.1/node_modules/karma-mocha-snapshot/lib/adapter.js:14:17)

I'm seeing the error above when running unit tests. Can someone please help? I have sinon-chai installed. See my package.json:

      "@types/chai": "4.2.14",
       "@types/chai-as-promised": "7.1.3",
       "@types/query-selector-shadow-dom": "1.0.0",
       "@types/node": "14.14.36",
       "@types/sinon": "9.0.8",
       "@types/sinon-chai": "3.2.5",

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