-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests passing without entering data #9
Comments
If you use yarn test, instead of npm, the tests run as expected. |
does this mean I'd have to do yarn install (instead of npm install)? And use yarn throughout the project? Or only use yarn to run the tests? |
I'm just getting my feet wet with yarn and did npm install (mostly out of habit). I would assume that yarn would still install the same packages and package dependencies. So for this I'm just using yarn to run the tests. |
I met similar problems running tests for exercise. Some tests passed even before I write a code with an error message "server instance pool was destroyed". I modified afterEach(async done => {
await mongoose.disconnect()
return done()
} |
NPM is for sure conflicting with something to avoid unexpected behaviour use YARN |
Thanks @kimdho, your solution worked for me using NPM |
You forgot the 'e' :P
…On Thu, Apr 16, 2020, 4:10 PM agilmore ***@***.***> wrote:
Thanks @kimdho <https://github.com/kimdho>, your solution worked for me
using NPM
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJOZADJP6WG3RHGXU2QRLXLRM5Q2PANCNFSM4H3LZ4PA>
.
|
hey there! I'm having issues with getting tests to pass with the models exercises.
Steps taken
click to see my steps
git clone url
npm install
npm test exercises/models/__test__/
on the connect.js file I entered this
The text was updated successfully, but these errors were encountered: