server-json/node_modules/tfjs-image-recognition-base/karma.conf.js
2024-11-01 08:00:42 +00:00

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
}
}
})
}