Skip to content
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

feat(paralell): enable parallel tests generating an unique database name per test file, fix #206 #209

Merged
merged 2 commits into from
Jul 9, 2020

Conversation

sibelius
Copy link
Contributor

@sibelius sibelius commented Jun 8, 2020

path.join(cwd) is more stable then __dirname when running inside a monorepo

environment.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@sibelius
Copy link
Contributor Author

sibelius commented Jun 9, 2020

I've fixed to handle both same dbName as random one

feel free to merge and improve from here

@vladholubiev vladholubiev changed the title feat(paralell): enable parallel tests generating an unique database n… feat(paralell): enable parallel tests generating an unique database name per test file, fix #206 Jun 9, 2020
@randomhash
Copy link
Member

@sibelius great job! thank you ;)

@@ -56,7 +55,8 @@
"prettier": "2.0.5"
},
"peerDependencies": {
"mongodb": "3.x.x"
"mongodb": "3.x.x",
"mongodb-memory-server": "*"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the reason of moving this out to peerDependencies? I'm ok with that as long as there is a reason and this is documented in READMe.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so we can use any version of mongodb-memory-server

@farhantahir
Copy link

@vladgolubev when is the plan to merge this PR?

@vladholubiev
Copy link
Member

Today)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants