36 lines
742 B
JavaScript
36 lines
742 B
JavaScript
const dataFiles = [
|
|
'test/*.png',
|
|
'test/*.json',
|
|
'test/*.weights'
|
|
].map(pattern => ({
|
|
pattern,
|
|
watched: false,
|
|
included: false,
|
|
served: true,
|
|
nocache: false
|
|
}))
|
|
|
|
module.exports = function(config) {
|
|
config.set({
|
|
frameworks: ['jasmine', 'karma-typescript'],
|
|
files: [
|
|
'src/**/*.ts',
|
|
'test/**/*.ts'
|
|
].concat(dataFiles),
|
|
exclude: ['test/env.node.ts'],
|
|
preprocessors: {
|
|
'**/*.ts': ['karma-typescript']
|
|
},
|
|
karmaTypescriptConfig: {
|
|
tsconfig: 'tsconfig.test.json'
|
|
},
|
|
browsers: ['Chrome'],
|
|
browserNoActivityTimeout: 120000,
|
|
captureTimeout: 60000,
|
|
client: {
|
|
jasmine: {
|
|
timeoutInterval: 60000
|
|
}
|
|
}
|
|
})
|
|
}
|