text: // Ava requires configuration file to be a the repository's top-level
  import { fileURLToPath } from 'url'
  
  const SRC = 'src'
  const BUILD_TEST = 'build/test'
  
  const LOG_PROCESS_ERRORS = fileURLToPath(
    new URL('build/src/tasks/unit/log_process_errors.js', import.meta.url),
  )
  
  export default {
    // Worker threads make it harder to test `cwd` options since `process.chdir()`
    // is not available
    workerThreads: false,
    // We watch only for `*.js` files, otherwise `*.js.map` gets watched and it
    // creates issues.
    files: [`${BUILD_TEST}/**/*.js`, `!${BUILD_TEST}/helpers`],
    // Otherwise, if build watch is run as well, modifying source files trigger
    // tests twice
    ignoredByWatcher: [SRC],
    // Use `log-process-errors`
    require: [LOG_PROCESS_ERRORS],
    timeout: `3600s`,
  }
  