UNPKG

849 BJavaScriptView Raw
1'use strict';
2
3// Here's a JavaScript-based config file.
4// If you need conditional logic, you might want to use this type of config.
5// Otherwise, JSON or YAML is recommended.
6
7const path = require('path');
8
9module.exports = {
10 diff: true,
11 extension: ['js', 'jsx', 'ts', 'tsx'],
12 opts: false,
13 // package: './package.json',
14 reporter: 'spec',
15 require: [
16 path.resolve(process.cwd(), 'babel.register'), // babel.register.js statt @babel/register - https://babeljs.io/docs/en/babel-register
17 'jsdom-global/register',
18 'esm',
19 'mock-local-storage',
20 ],
21 slow: 75,
22 spec: ['src/**/*.spec.*s*', 'src/**/*.test.*s*', 'tests/unit/**/*.spec.*s*', 'tests/unit/**/*.test.*s*'],
23 timeout: 2000,
24 ui: 'bdd',
25 'watch-files': this.spec,
26 // 'watch-ignore': []
27};
28
29// Source: https://github.com/mochajs/mocha/tree/master/example/config