v4 cleanUp() problems
See original GitHub issueHello.
I’m using factory-girl 4.0.0-beta.7 with sequelize and mocha. I’ve noticed a few problems:
-
the README.md still says
cleanup
as does the test, but the method was renamed tocleanUp
. -
I’m getting this error when I run
cleanUp()
:(node:30699) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 149): TypeError: model.destroy is not a function
That seems to be originating from the DefaultAdapter: https://github.com/aexmachina/factory-girl/blob/7e4335330a4e85d4c6c2ecf9a881df8ff9b77965/src/adapters/DefaultAdapter.js#L10
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:9 (1 by maintainers)
Top Results From Across the Web
AOC22022 - Problem 4: Camp cleanup solution using ... - Reddit
I am learning functional programming and I wanted to share my solution to problem 4 as I find function composition super elegant :)....
Read more >Day 4: Camp Cleanup · Issue #5 - GitHub
It took me a bit to understand why changing the function signature (adding -> Result<(), std::io::Error> ) would fix the compile error. Then...
Read more >What should I do when 'svn cleanup' fails? - Stack Overflow
I have a lot of changes in a working folder, and something screwed up trying to do an update. Now when I issue...
Read more >SharePoint: The complete guide to user profile cleanup – Part 4
Usually it's an LDAP filter or OU selection issue. Document your connection filter and selected OUs / containers and check your target profiles ......
Read more >Download Microsoft .NET Framework Repair Tool from Official ...
This tool troubleshoots common issues with the setup of Microsoft .NET Framework or with updates to Microsoft .NET Framework setup installation.
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
@aexmachina would be cool to get a beta release with all the latest fixes.
I thought this issue was already resolved. Sounds like you’re having a problem with running tests in parallel, which is a different issue.
cleanUp
assumes serial operation. In order to support parallel you’ll need to have a differentFactoryGirl
instance for each parallel process.