dirv / concise-test Goto Github PK
View Code? Open in Web Editor NEWA concise test framework for Node and ES6 modules
License: MIT License
A concise test framework for Node and ES6 modules
License: MIT License
It'd be nice to just have a single not
matcher that runs the chained matcher and fails if that matcher does not throw an error.
For example:
expect(actual).not.toEqual("foo");
Should run toEqual(actual, "foo")
and catch any ExpectationError
. If one isn't thrown then it should also throw.
The challenge will be what's the right message to display here. If it could just say something like "Expected not to equal ".
However, getting a 100% correct exception message is less important than having a concise not
implementation.
Do not filter test runs if CI is being used. Possible solutions: add a command-line argument for "CI mode" or use a CI
environment variable?
This should use a single console line to report test being run together with number of tests in each summary group. Then once the test is over, report each failure as the default reporter does.
This would also include the ability to use a command line option --reporter
to specify which reporter to use.
This can't be done until Node supports unloading ES6 modules.
Perhaps with expect.extend(matcher)
Necessary for React, Vue, Svelte etc.
But currently depends on a highly experimental Node API.
Right now concise-test
just picks up files that match tests/*.tests.js
, but this should be tests/**/*.tests.js
.
It'd also be nice to support a configurable glob of how to find test files.
Currently each test within a shared example gets passed the result of calling the parametersFn
of it.behavesLike
. It may be better to do that as a beforeEach
rather than on each test.
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.