123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- var common = require('./webpack.common.js')
- module.exports = function (config) {
- 'use strict'
- config.set({
-
- basePath: '',
-
-
- frameworks: ['mocha', 'chai'],
-
- exclude: [],
- files: [
- {
- pattern: 'test/Util/*.ts',
- included: false
- },
- {
- pattern: 'test/**/*.ts',
- included: true
- }, {
- pattern: 'test/data/*.xml',
- included: true
- }, {
- pattern: 'test/data/*.musicxml',
- included: true
- }, {
- pattern: 'test/data/*.mxl.base64',
- included: true
- }, {
- pattern: 'test/data/*.mxl',
- included: false,
- watched: false,
- served: true
- }
- ],
-
-
- preprocessors: {
- 'test/data/*.xml': ['xml2js'],
- 'test/data/*.musicxml': ['xml2js'],
- 'test/data/*.mxl.base64': ['base64-to-js'],
-
- 'test/**/*.ts': ['webpack']
- },
- webpack: {
-
-
-
-
- devtool: process.env.CI ? false : 'inline-source-map',
- mode: process.env.CI ? 'production' : 'development',
- module: {
- rules: common.module.rules
- },
- resolve: common.resolve
- },
-
-
- mime: {
- 'text/x-typescript': ['ts']
- },
-
-
-
- reporters: ['mocha'],
-
- port: 9876,
-
- browserNoActivityTimeout: 100000,
- browserDisconnectTimeout: 10000,
- browserDisconnectTolerance: 1,
- captureTimeout: 60000,
-
- colors: true,
-
-
- logLevel: config.LOG_INFO,
- client: {
- captureConsole: true,
- mocha: {
- timeout: process.env.timeout || 20000
- }
- },
-
- autoWatch: false,
-
- browsers: ['ChromeHeadlessNoSandbox'],
-
-
- customLaunchers: {
- ChromeHeadlessNoSandbox: {
- base: 'ChromeHeadless',
- flags: ['--no-sandbox',
- '--disable-web-security']
- },
- ChromeNoSecurity: {
- base: 'Chrome',
- flags: ['--disable-web-security']
- }
- },
-
-
- singleRun: true,
-
-
- concurrency: Infinity
- })
- }
|