jest.js 393 B

1234567891011121314151617
  1. #!/usr/bin/env node
  2. /**
  3. * Copyright (c) Meta Platforms, Inc. and affiliates.
  4. *
  5. * This source code is licensed under the MIT license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. */
  8. const importLocal = require('import-local');
  9. if (!importLocal(__filename)) {
  10. if (process.env.NODE_ENV == null) {
  11. process.env.NODE_ENV = 'test';
  12. }
  13. require('..').run();
  14. }