lakitna / mocha-bundle-ui Goto Github PK
View Code? Open in Web Editor NEWBundle Mocha tests across files in existing UI's
License: MIT License
Bundle Mocha tests across files in existing UI's
License: MIT License
Is your feature request related to a problem? Please describe.
README.md has become a big file making it difficult to find certain stuff. The level of detail is also not great.
Describe the solution you'd like
Split up the documentation into manageable chunks, improve the level of detail.
Files:
While working on this a file structure overhaul might be a good idea.
Is your feature request related to a problem? Please describe.
Right now bundle.beforeEach
requires done
. It would be nice if this would also the Mocha sync way.
Describe the solution you'd like
Allow both situations below to work
bundle('foo', function(done) {
// ...
done();
});
bundle('foo', function() {
// ...
});
then
block | Issue: #12 PR: #17done()
optional for bundle.beforeEach
and before.afterEach
. | Issue: #18 PR: #21Is your feature request related to a problem? Please describe.
It would be nice if you could use default values when bundling. This could simplify some implementations greatly.
Describe the solution you'd like
Add support for the following
bundle.defaultParameters = {
foo: 'bar',
};
or possibly
bundle.defaultParameters({
foo: 'bar',
});
Additional context
Due to the order of operations setting the default parameters might happen after some bundles have been created. This will make things very annoying and might require the parameters to be set somewhere before mocha starts gathering files.
Is your feature request related to a problem? Please describe.
The way a bundle description is structured doesn't work for every project.
Describe the solution you'd like
I want to be able to change the bundle description in bundle.beforeEach
Is your feature request related to a problem? Please describe.
By default a describe block inside a then block works, but bundle does not at the moment. It would be nice to be able to do this to more flexibly create programmatic tests.
Describe the solution you'd like
asyncFoo()
.then((val) => {
bundle({foo: 'bar'}, function() {
it(`does a thing with ${val}`);
});
});
Describe alternatives you've considered
None at the moment
Is your feature request related to a problem? Please describe.
In simple situations, it would be nice if instead of an object a short string could be provided.
Describe the solution you'd like
Instead of requiring bundle parameters to be an object, also allow a string.
Describe alternatives you've considered
A default
parameters key, but that's not a very clean solution.
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.