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

Dynalite Limitations #27

Open
jimjeffers opened this issue Jan 2, 2021 · 3 comments
Open

Dynalite Limitations #27

jimjeffers opened this issue Jan 2, 2021 · 3 comments
Labels
dependencies Pull requests that update a dependency file

Comments

@jimjeffers
Copy link

Happy New Year! This library looks great as I've been having headaches disabling parallelism in jest. I was configuring my project to use your preset and after trial and error realized that Dynalite doesn't support transactions! A huge portion of my codebase utilizes TransacteWrite. Do you have a work around for code that utilizes transactions or would you simply not use this lib in my case?

@freshollie freshollie added the dependencies Pull requests that update a dependency file label Jan 2, 2021
@freshollie
Copy link
Owner

Hey! Looks like there is already a PR open for dynalite which needs some work architect/dynalite#129. It's not something I have a specific work around for.

@jimjeffers
Copy link
Author

@freshollie thanks. I will give this another try whenever dynalite releases transactions. In the mean time switching back to jest-dynamodb will work albeit not as good. For anyone stuck you can get turn off parallelism via jest --runInBand but the tests will be slower AND you will have to manually clear your tables after each test suite. Fortunately it's pretty painless to switch between these two libraries.

@revmischa
Copy link
Contributor

Try this in your package.json

  "resolutions": {
    "dynalite": "github:c-py/dynalite"
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

3 participants