* 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
7 lines
164 B
JavaScript
7 lines
164 B
JavaScript
"use strict";
|
|
|
|
const isProduction = process.env.NODE_ENV === "production";
|
|
const prettier = require(isProduction ? "../dist/" : "../");
|
|
|
|
module.exports = prettier;
|