jaredhanson / jaredhanson/passport
$require
- Dominant language
- JavaScript
- Stars
- 23.5k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
Hi Jared
in this file
//session.pause.test.js
what is this line doing?
`var SessionStrategy = $require('../../lib/strategies/session', {pause: pause});`
for some reason it doesn't appear to be resolving the session.js file, which is weird because another test in the same directory does resolve that file correctly, with these lines:
//session.test.js (works)
```
var chai = require('chai')
, SessionStrategy = require('../../lib/strategies/session');
```
Contributor guide
Research direction
Start with session.pause.test.js and inspect the $require call shown there, then compare it with the working require usage in session.test.js. Trace how the session module is resolved and determine what behavior the pause test should exhibit when it loads lib/strategies/session.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100