daniel-yonkov / jest-mysql Goto Github PK
View Code? Open in Web Editor NEWPreset for jest testing via MySQL storage
License: MIT License
Preset for jest testing via MySQL storage
License: MIT License
Describe the bug
If truncateDatabase
configuration is set to false
and dbSchema
is provided with a valid MySQL database dump, it will recreate and omit previous data. This should not be the case.
This may introduce bugs where unique index checks are skipped due to the recreation of the database and removing records of test runs from previous generations.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should fail with database exception where unique index is triggered (created a duplicate record with same value)
I'm using mysql2 to connect to the database but this library requires mysql. I think it'll be fine to use mysql2 or mysql not just mysql
Line 38 in 89c9d4c
Has 'packange.json' instead of package.json
Describe the bug
When I run to add jest-mysql to my project it is throwing the above issue.
To Reproduce
Steps to reproduce the behavior:
This is a question.
Do I need mysql db installed on my local machine to run the tests? I get above error even after I install mysql and jest packages.
My database is on aws, can aws aurora mysql be used as a test Database?
I am using mysql2, can this package be used with mysql2 simultaneously?
Describe the bug
unable to publish new version to npm repository
Expected behavior
Releasing automatically a new version to npmjs.com repository
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.