chore: migrate remaining tests to Mocha (#5616)

This commit updates all the non-Puppeteer unit tests to run using Mocha and then deletes the custom test runner framework from this repository. The documentation has also been updated.
This commit is contained in:
Jack Franklin
2020-04-09 19:12:32 +01:00
committed by GitHub
parent 17cd8703f9
commit 0bcc5a7ad8
28 changed files with 411 additions and 2312 deletions

3
mocha-config/base.js Normal file
View File

@@ -0,0 +1,3 @@
module.exports = {
reporter: 'dot',
};

View File

@@ -0,0 +1,6 @@
const base = require('./base');
module.exports = {
...base,
spec: 'utils/browser/*.spec.js',
};

View File

@@ -0,0 +1,6 @@
const base = require('./base');
module.exports = {
...base,
spec: 'utils/doclint/**/*.spec.js',
};

View File

@@ -0,0 +1,8 @@
const base = require('./base');
module.exports = {
...base,
file: ['./test/mocha-utils.js'],
spec: 'test/*.spec.js',
timeout: process.env.PUPPETEER_PRODUCT === 'firefox' ? 15 * 1000 : 10 * 1000,
};