-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
33 lines (30 loc) · 877 Bytes
/
karma.conf.js
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
//FORMA DE ESTABELECER A LIGAÇÃO COM WEBPACK;
var webpackConfig = require('./webpack.config.js');
module.exports = function(config)
{
config.set({
browsers: ['Chrome'],
singleRun: true,
frameworks: ['mocha'], //test framework
files: [
'node_modules/jquery/dist/jquery.min.js', //Lec. 83
'node_modules/foundation-sites/dist/foundation.min.js', //Lec. 83
'app/tests/**/*.tests.jsx'
], //which test file
preprocessors: {
'app/tests/**/*.tests.jsx': ['webpack', 'sourcemap']
},
reporters: ['mocha'], //'Tells which tests passed and which fails'
//Forma de estabelecer um limite, caso o teste não execute;
//Como num website, se não loada ao fim de 20 sec. provavel/ já não loada;
client: {
mocha: {
timeout: '5000' //milisec.
}
},
webpack: webpackConfig,
webpackServer: {
noInfo: true
}
});
}