Files
test-repo/tests_config/require_prettier.js
T
Simon Lydell 43cb08c45c Make production tests always run against dist/ (attempt 2) (#2942)
* Make production tests always run against dist/

* Try to mock process.stdin instead of get-stream

* fix: mock `get-stream` from `index.js`

* refactor: remove unnecessary variable

* Try `transform: {}` in jest.config.js

* Add comment explaining the unusual get-stream mocking
2017-10-02 17:58:55 +02:00

7 lines
164 B
JavaScript

"use strict";
const isProduction = process.env.NODE_ENV === "production";
const prettier = require(isProduction ? "../dist/" : "../");
module.exports = prettier;