Issues running cookie test code
See original GitHub issueI can’t seem to run the cookie test code.
Here’s my package.json
"name": "realtimechat",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"dropzone": "^5.9.2",
"jest": "^27.0.3",
"server": "^1.0.33"
},
"devDependencies": {
"css-loader": "^5.2.6",
"style-loader": "^2.0.0",
"webpack-cli": "^4.7.0"
},
"scripts": {
"start": "node index.js",
"test": "jest --coverage --forceExit"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dpaschal7/RealTimeChat.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/dpaschal7/RealTimeChat/issues"
},
"homepage": "https://github.com/dpaschal7/RealTimeChat#readme"
}
I keep getting a ReferenceError for run
what other dependencies are missing
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Website Cookie Testing & Test Cases for Testing Web ...
This article will explain to you all about HTTP or Internet cookie testing in detail. with test cases for Web Application Cookie Testing....
Read more >Cookie Testing: How to Test Cookies in Website with Example
1. Disable all cookies and attempt to use the site’s major functions 2. Manually edit the cookie in notepad and change the parameters...
Read more >Cookie Testing: Example Test Cases for Website - Tutorialspoint
A test that is specific Check if the same Cookies are allowed in all environments for multi-environment sites. The usage of wildcards in...
Read more >Cookie Testing: The Critical Part of Website Tests - TestOrigen
It is one of the simplest methods for executing the website cookie testing. This technique assesses the working of major functional regions of ......
Read more >Persisting session cookies is not working · Issue #336 - GitHub
I am having an issue persisting the correct cookies when trying to test an endpoint that ... The second test runs as expected...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for opening an issue, certainly testing is well under-documented so I’ll try to explain the basics in this issue. I would not recommend using
run
at all for your own tests; it’s here for internal tests and definitely nowhere near stable. Instead, use some 3rd party testing library likesupertest
:Your test file (need to
npm install supertest jest --save-dev
first):Things become more difficult if you want to
require()
it from different files because then it’s launched multiple times with the same port (so it’ll fail). I recommend a single entry point like the above for testing for the API itself.This seems to be fixed, or at least it’s been answered. Please feel free to reopen if you still have an issue here or to create a new issue asking more questions. Cheers!