text: 'use strict';
  const {test} = require('tap');
  const execa = require('execa');
  
  test('Throws error when required from the REPL', t => {
  	return execa('node', ['-r', 'ava'], {reject: false}).then(result => {
  		t.match(result.stderr, 'The ’ava’ module can only be imported in test files');
  	});
  });
  