-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathkarma.conf.e2e.js
38 lines (38 loc) · 968 Bytes
/
karma.conf.e2e.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
34
35
36
37
38
// const [umd] = require('./rollup.config.mjs');
import { umd } from './rollup.config.mjs';
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'chai'],
reporters: ['karmaHTML', 'progress'],
client: {
karmaHTML: {
auto: true,
source: [{ src: '/e2e/client.html', tag: 'client' }],
width: '100vw',
height: '100vh'
}
},
files: [
{ pattern: 'e2e/**/*.spec.js', watched: false },
{ pattern: 'e2e/*.html', served: true },
{
pattern: 'e2e/**/!(*.spec).js',
watched: true,
served: true,
included: false
}
],
preprocessors: {
'e2e/**/*.spec.js': ['rollup']
},
rollupPreprocessor: umd,
port: 9876, // karma web server port
colors: true,
logLevel: config.LOG_INFO,
browsers: ['ChromeHeadless', 'FirefoxHeadless'],
proxies: {
'/js/': '/base/e2e/',
'html/': '/base/e2e/'
}
});
};