Skip to content

Commit

Permalink
Ported test suite: plugin-precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiospampinato committed Sep 14, 2024
1 parent d2cfe19 commit 10652d7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/__tests__/plugin-precedence.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { runCli } from "../utils";

describe("json-stringify takes precedence over json for package.json", () => {
runCli("/", [
"--stdin-filepath=package.json",
], {
input:
'{ "a": "longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong" }',
}).test({
stdout:
'{\n "a": "longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong"\n}',
stderr: "",
status: 0,
write: [],
});
});

0 comments on commit 10652d7

Please sign in to comment.