{"__v":3,"_id":"5702bc09747d6d0e0076ffc9","category":{"__v":1,"_id":"56cf5c8d336aa60b0086a40d","pages":["56cf5ea2287eb20b009f9f2e"],"project":"559b65bd8b04e90d00702d54","version":"559b65bd8b04e90d00702d57","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-25T19:57:01.905Z","from_sync":false,"order":2,"slug":"advanced","title":"Advanced"},"parentDoc":null,"project":"559b65bd8b04e90d00702d54","user":"55a4738a68c7e20d0036d4de","version":{"__v":6,"_id":"559b65bd8b04e90d00702d57","project":"559b65bd8b04e90d00702d54","createdAt":"2015-07-07T05:38:05.890Z","releaseDate":"2015-07-07T05:38:05.890Z","categories":["559b65be8b04e90d00702d58","55a46e7468c7e20d0036d4d1","55a4971be6c2470d002a6483","55a4a690e10ba50d00b40bba","55a4bcf31a5f991700a94066","56cf5c8d336aa60b0086a40d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-04T19:10:01.097Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"Chimp supports the latest version of Jasmine. Currently this is version 2.4.x.\n\nYou can enable Jasmine support by starting Chimp with with `--jasmine` flag or setting `jasmine: true` in your Chimp config file.\n\nAdditionally the Chimp config file supports the [following Jasmine options](https://github.com/xolvio/chimp/blob/1a145ec/src/bin/default.js#L76-L92). The values in this file are the defaults. You can read more about those options in the [Jasmine documentation](http://jasmine.github.io/2.4/node.html).\n\nAdditionally by default:\n* Spec file names need to end with \"_spec.js\", \"-spec.js\" or \"Spec.js\".\n* Files in the support/ folder will run before the tests.\n* You can use ES2015 out of the box.\n\nIf you miss any information or something is unclear please [open an issue](https://github.com/xolvio/chimp/issues/new).\n\n### Custom spec filter\n\nAdd a helper file with something like for example:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"const smokeTestRegExp = /:::at:::smoke/;\\njasmine.addSpecFilter(function (spec) {\\n  return smokeTestRegExp.test(spec.getFullName());\\n});\\n\",\n      \"language\": \"javascript\",\n      \"name\": \"support/smoke_test_filter.js\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"jasmine-support","type":"basic","title":"Jasmine support"}
Chimp supports the latest version of Jasmine. Currently this is version 2.4.x. You can enable Jasmine support by starting Chimp with with `--jasmine` flag or setting `jasmine: true` in your Chimp config file. Additionally the Chimp config file supports the [following Jasmine options](https://github.com/xolvio/chimp/blob/1a145ec/src/bin/default.js#L76-L92). The values in this file are the defaults. You can read more about those options in the [Jasmine documentation](http://jasmine.github.io/2.4/node.html). Additionally by default: * Spec file names need to end with "_spec.js", "-spec.js" or "Spec.js". * Files in the support/ folder will run before the tests. * You can use ES2015 out of the box. If you miss any information or something is unclear please [open an issue](https://github.com/xolvio/chimp/issues/new). ### Custom spec filter Add a helper file with something like for example: [block:code] { "codes": [ { "code": "const smokeTestRegExp = /@smoke/;\njasmine.addSpecFilter(function (spec) {\n return smokeTestRegExp.test(spec.getFullName());\n});\n", "language": "javascript", "name": "support/smoke_test_filter.js" } ] } [/block]