Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | 1x 1x 1x 1x 1x 1x 1x | // How to use Jasmine with es6 // https://www.classandobjects.com/test_using_jasmine_react_es6_webpack/ // Jasmine tutorial: // https://www.freecodecamp.org/news/jasmine-unit-testing-tutorial-4e757c2cbf42/ // Setup Istanbul with Jasmine: // https://bryce.fisher-fleig.org/setting-up-istanbul-with-jasmine/ import Jasmine from 'jasmine' try { require('./test-env.js') } catch (ex) { // Silence is gold! } var ORSKEY = process.env.ORSKEY Iif (ORSKEY && ORSKEY !== 'put-an-ors-key-here' && ORSKEY != '') { let jasmine = new Jasmine() // Modify this line to point to your jasmine.json jasmine.loadConfigFile('./spec/jasmine.json') // Some tests take longer than the default 5000ms of Jasmine jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000 jasmine.execute() } else { // eslint-disable-next-line no-console console.log( '\x1b[33m%s\x1b[0m', 'A valid ORSKEY was not set via spec/test-env.js file nor via environment variable. The tests were aborted.' ) process.exit(1) } |