mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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:
3
mocha-config/base.js
Normal file
3
mocha-config/base.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
reporter: 'dot',
|
||||
};
|
||||
6
mocha-config/browser-bundle-tests.js
Normal file
6
mocha-config/browser-bundle-tests.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const base = require('./base');
|
||||
|
||||
module.exports = {
|
||||
...base,
|
||||
spec: 'utils/browser/*.spec.js',
|
||||
};
|
||||
6
mocha-config/doclint-tests.js
Normal file
6
mocha-config/doclint-tests.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const base = require('./base');
|
||||
|
||||
module.exports = {
|
||||
...base,
|
||||
spec: 'utils/doclint/**/*.spec.js',
|
||||
};
|
||||
8
mocha-config/puppeteer-unit-tests.js
Normal file
8
mocha-config/puppeteer-unit-tests.js
Normal 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,
|
||||
};
|
||||
Reference in New Issue
Block a user