jest.js
1 #!/usr/bin/env node 2 /** 3 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. 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 9 const importLocal = require('import-local'); 10 11 if (!importLocal(__filename)) { 12 if (process.env.NODE_ENV == null) { 13 process.env.NODE_ENV = 'test'; 14 } 15 16 require('../build/cli').run(); 17 }