mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: enforce file extensions on imports (#6202)
* chore: enforce file extensions on imports To make our output agnostic it should include file extensions in the output, as per the ESM spec. It's a bit odd for Node packages but makes it easier to publish a browser build.
This commit is contained in:
@@ -18,9 +18,9 @@ const base = require('./base');
|
||||
|
||||
module.exports = {
|
||||
...base,
|
||||
require: ['ts-node/register', './test/mocha-utils.ts'],
|
||||
require: ['./test/mocha-ts-require', './test/mocha-utils.ts'],
|
||||
spec: 'test/*.spec.ts',
|
||||
extension: ['ts'],
|
||||
extension: ['js', 'ts'],
|
||||
parallel: process.env.CI && !process.env.COVERAGE,
|
||||
// retry twice more, so we run each test up to 3 times if needed.
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
|
||||
Reference in New Issue
Block a user