mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
chore: rename test to .test.ts (#15082)
This commit is contained in:
+1
-1
@@ -380,7 +380,7 @@ export default defineConfig([
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Mocha Tests',
|
name: 'Mocha Tests',
|
||||||
files: ['test/**/*.spec.ts'],
|
files: ['test/**/*.test.ts'],
|
||||||
|
|
||||||
rules: {
|
rules: {
|
||||||
'@typescript-eslint/no-unused-vars': [
|
'@typescript-eslint/no-unused-vars': [
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ process.env.NODE_DEBUG = 'puppeteer:*';
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
logLevel: 'debug',
|
logLevel: 'debug',
|
||||||
spec: 'test/build/**/*.spec.js',
|
spec: 'test/build/**/*.test.js',
|
||||||
require: ['source-map-support/register'],
|
require: ['source-map-support/register'],
|
||||||
exit: !!process.env.CI,
|
exit: !!process.env.CI,
|
||||||
reporter: 'spec',
|
reporter: 'spec',
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
module.exports = {
|
module.exports = {
|
||||||
logLevel: 'debug',
|
logLevel: 'debug',
|
||||||
spec: 'test/build/**/*.spec.js',
|
spec: 'test/build/**/*.test.js',
|
||||||
exit: !!process.env.CI,
|
exit: !!process.env.CI,
|
||||||
reporter: process.env.CI ? 'spec' : 'dot',
|
reporter: process.env.CI ? 'spec' : 'dot',
|
||||||
};
|
};
|
||||||
|
|||||||
+290
-290
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@
|
|||||||
* @type {import('mocha').MochaOptions}
|
* @type {import('mocha').MochaOptions}
|
||||||
*/
|
*/
|
||||||
module.exports = {
|
module.exports = {
|
||||||
spec: ['build/**/*.spec.js'],
|
spec: ['build/**/*.test.js'],
|
||||||
require: ['source-map-support/register'],
|
require: ['source-map-support/register'],
|
||||||
exit: !!process.env.CI,
|
exit: !!process.env.CI,
|
||||||
timeout: 240_000,
|
timeout: 240_000,
|
||||||
|
|||||||
@@ -992,7 +992,7 @@ describe('Page', function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
expect(message).toBe('WOOF WOOF');
|
expect(message).toBe('WOOF WOOF');
|
||||||
expect(stack).toContain('page.spec.ts');
|
expect(stack).toContain('page.test.ts');
|
||||||
});
|
});
|
||||||
it('should support throwing "null"', async () => {
|
it('should support throwing "null"', async () => {
|
||||||
const {page} = await getTestState();
|
const {page} = await getTestState();
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user