react-client-captcha icon indicating copy to clipboard operation
react-client-captcha copied to clipboard

Using react-client-captcha causes tests to fail

Open shubham-cpp opened this issue 3 years ago • 0 comments

Hello @majid-amiri , I used your library and it work fine, no issues. But when I test the Register.jsx(that's where I've used the package) with react-testing-library I get errors like fillStyle not found . Then I removed react-client-captcha and all test passed successfully

npx envinfo:

 System:
    OS: Windows 10 10.0.18363
    CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
    Memory: 18.27 GB / 31.77 GB
  Binaries:
    Node: 16.6.2 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.15 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.20.3 - C:\Program Files\nodejs\npm.CMD
  Managers:
    pip3: 21.3 - ~\AppData\Local\Programs\Python\Python39\Scripts\pip3.EXE     
  Utilities:
    CMake: 3.21.3
    Git: 2.33.0.
    Ninja: 1.10.2
  IDEs:
    VSCode: 1.62.2 - C:\Users\shubham_pawar1\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
  Languages:
    Java: 1.8.0_92
    Python: 3.9.5
  Databases:
    MongoDB: 4.4.2 - C:\Program Files\MongoDB\Server\4.4\bin\mongo.EXE
  Browsers:
    Edge: Spartan (44.18362.1593.0)
    Internet Explorer: 11.0.18362.1766

package.json deps:

  "dependencies": {
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "react": "^17.0.2",
    "react-client-captcha": "^1.0.3",
    "react-dom": "^17.0.2",
    "react-router-dom": "^5.3.0",
    "react-scripts": "4.0.3",
    "web-vitals": "^1.0.1"
}

shubham-cpp avatar Nov 18 '21 15:11 shubham-cpp