A testing bed to improve an existing test and make it work as it should.
This is an enhanced version of a previously developed test.
It's now been enhanced with:
- BrowserSync
- ES6 syntax (checked with
eslint
) - Promises for asynchronous calls.
- Rollup for treeshaking and concatenation
- Babel transpilation (as Rollup plugin)
- A very-simple Flickr API interface
- Unit tests using Jest
- Acceptance tests using CodeceptJs and NightmareJs
- Susy as basic SASS framework
Be my guest:
git clone
the whole thingnpm install
all the depsgulp serve
to build and serve it
Running the tests is similarly simple:
npm run test
for the unit testsnpm run codeceptjs run
to run the acceptance tests (be sure to rungulp serve
in another console)
NOTE
Jest currently doesn't play well with Rollup and Babel, so you have to temporarly remove modules
line from the .babelrc
file in order to run the unit tests successfully.