diff --git a/package.json b/package.json index 5a3ae681e..e69866e4b 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "graphql": "0.12.3", "gray-matter": "3.1.1", "ignore": "3.3.7", - "jest-docblock": "21.3.0-beta.11", + "jest-docblock": "22.2.2", "json-stable-stringify": "1.0.1", "leven": "2.1.0", "mem": "1.1.0", diff --git a/tests/insert-pragma/__snapshots__/jsfmt.spec.js.snap b/tests/insert-pragma/__snapshots__/jsfmt.spec.js.snap index 38f670e2d..0e5928b98 100644 --- a/tests/insert-pragma/__snapshots__/jsfmt.spec.js.snap +++ b/tests/insert-pragma/__snapshots__/jsfmt.spec.js.snap @@ -24,6 +24,20 @@ const fruit = "tomatoes"; `; +exports[`module-with-multiple-same-pragma.js 1`] = ` +/** + * @x 1 + * @x 2 + */ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/** + * @format + * @x 1 + * @x 2 + */ + +`; + exports[`module-with-pragma.js 1`] = ` /** * Here lie words above pragmas diff --git a/tests/insert-pragma/module-with-multiple-same-pragma.js b/tests/insert-pragma/module-with-multiple-same-pragma.js new file mode 100644 index 000000000..e41dbf6c0 --- /dev/null +++ b/tests/insert-pragma/module-with-multiple-same-pragma.js @@ -0,0 +1,4 @@ +/** + * @x 1 + * @x 2 + */ diff --git a/yarn.lock b/yarn.lock index 5b2b5b769..c8fdeea1b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2579,9 +2579,9 @@ jest-diff@^21.2.1: jest-get-type "^21.2.0" pretty-format "^21.2.1" -jest-docblock@21.3.0-beta.11: - version "21.3.0-beta.11" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-21.3.0-beta.11.tgz#feb4de87c55a2f563ac24c5f4861f61921550896" +jest-docblock@22.2.2: + version "22.2.2" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-22.2.2.tgz#617f13edb16ec64202002b3c336cd14ae36c0631" dependencies: detect-newline "^2.1.0"