@leanup/cli-core-test
Version:
This module contains the test feature for the @leanup/cli.
30 lines (25 loc) • 849 B
JavaScript
// Here's a JavaScript-based config file.
// If you need conditional logic, you might want to use this type of config.
// Otherwise, JSON or YAML is recommended.
const path = require('path');
module.exports = {
diff: true,
extension: ['js', 'jsx', 'ts', 'tsx'],
opts: false,
// package: './package.json',
reporter: 'spec',
require: [
path.resolve(process.cwd(), 'babel.register'), // babel.register.js statt @babel/register - https://babeljs.io/docs/en/babel-register
'jsdom-global/register',
'esm',
'mock-local-storage',
],
slow: 75,
spec: ['src/**/*.spec.*s*', 'src/**/*.test.*s*', 'tests/unit/**/*.spec.*s*', 'tests/unit/**/*.test.*s*'],
timeout: 2000,
ui: 'bdd',
'watch-files': this.spec,
// 'watch-ignore': []
};
// Source: https://github.com/mochajs/mocha/tree/master/example/config
;