This is a proof-of-concept project to build a concept for testing angular.js with jest.
Before you start make sure that you run yarn
to install all required dependencies.
-
yarn start
Starts a webpack-dev-server for developing the application.
-
yarn test
Runs the tests with jest.
Since this is a proof-of-concept for an much bigger application, there are some constraints which are transferred from the bigger app to this example:
angular
has to be available as global variablemoment
has to be available as global variable- Templates are external
.html
-modules which are imported by webpack - Requests should use
$httpBackend
mock
Felix Haus Website โข Twitter |
---|
MIT - see LICENSE for details.