* Extract glob helpers that are needed in a CJS environment * Ensure ava/plugin works in a CJS environment Refactor and deploy some tricks so that ava/plugin is usable in a CJS environment, even if the rest of AVA's internals become ESM. * Ensure 'ava' can be imported in a CJS environment * Convert to ESM * Load yargs as CJS due to strange compatibility issues * Keep line number parsing code as CJS because it attempts to lazy-load dependencies * Shared workers are always loaded through a dynamic import * Shared worker filenames must now be file:// URLs, but you can provide a URL instance * Test file paths within shared workers are now file:// URLs * Error serialization and code excerpts now support ESM * Title prefixes in the reporters now correctly skip all test file extensions, not just `js` * CI: Increase delay on timeout test, mostly for Windows
5 lines
88 B
JavaScript
5 lines
88 B
JavaScript
const test = require('../../entrypoints/main.cjs');
|
|
|
|
test('test', t => {
|
|
t.pass();
|
|
});
|