mirror of
https://github.com/GeorgeSG/lovelace-time-picker-card.git
synced 2026-09-06 02:18:44 +00:00
46 lines
966 B
JavaScript
46 lines
966 B
JavaScript
module.exports = function (config) {
|
|
return config.set({
|
|
basePath: './',
|
|
frameworks: ['mocha', 'chai'],
|
|
files: ['**/*.test.ts'],
|
|
preprocessors: {
|
|
'**/*.test.ts': ['rollup'],
|
|
},
|
|
|
|
rollupPreprocessor: {
|
|
plugins: [
|
|
require('@rollup/plugin-node-resolve')(),
|
|
require('@rollup/plugin-json')(),
|
|
require('@rollup/plugin-typescript')(),
|
|
require('@rollup/plugin-commonjs')({
|
|
namedExports: {
|
|
chai: ['expect'],
|
|
},
|
|
}),
|
|
],
|
|
output: {
|
|
format: 'umd',
|
|
sourcemap: 'inline',
|
|
},
|
|
onwarn: function (message) {
|
|
if (/Circular dependency/.test(message)) return;
|
|
console.warn(message);
|
|
},
|
|
},
|
|
|
|
reporters: ['dots'],
|
|
|
|
port: 9876,
|
|
colors: true,
|
|
autoWatch: false,
|
|
singleRun: true,
|
|
|
|
concurrency: Infinity,
|
|
browsers: ['ChromeHeadless'],
|
|
|
|
client: {
|
|
captureConsole: false,
|
|
},
|
|
});
|
|
};
|