Skip to content

Instantly share code, notes, and snippets.

@igordeoliveirasa
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igordeoliveirasa/6ff4a86b93fd4c57ba00 to your computer and use it in GitHub Desktop.
Save igordeoliveirasa/6ff4a86b93fd4c57ba00 to your computer and use it in GitHub Desktop.
Configuring Karma & Jasmine
mkdir tests
echo "
describe(\"A suite\", function() {
it(\"contains spec with an expectation\", function() {
expect(true).toBe(true);
});
});
" > tests/test.spec.js
npm install karma --save-dev
npm install angular-mocks
karma init karma.config.js
echo "Open karma.config.js and configure the files[]"
echo "To run: karma start karma.conf.js"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment