postcss / postcss-cli

CLI for postcss
Other
840 stars 93 forks source link

Shallow copy options object #218

Closed malstoun closed 6 years ago

malstoun commented 6 years ago

If we run cli with a glob pattern, then in some cases we change options.to before we actually write an output file.

RyanZim commented 6 years ago

Can you add a test case that ensures the old behavior doesn't happen?

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 75.0% when pulling 43d3ddf3b9d30944131ccc3d2153f48ae3631c6e on malstoun:fix/options into d71fda944c8d9468994564914b2102b8604b0fd7 on postcss:master.

malstoun commented 6 years ago

I hope this test will help to prevent old behaviour. Mainly it just tests glob patterns but also ensures that for each file we have output. It's not true when problem happens.