diff --git a/tests/cases/user/formik/.snyk b/tests/cases/user/formik/.snyk new file mode 100644 index 0000000000000..dab69b0cf9fa4 --- /dev/null +++ b/tests/cases/user/formik/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - formik > lodash: + patched: '2020-05-01T02:13:37.395Z' diff --git a/tests/cases/user/formik/package.json b/tests/cases/user/formik/package.json index 9641ca9aea668..5a37bb898a503 100644 --- a/tests/cases/user/formik/package.json +++ b/tests/cases/user/formik/package.json @@ -4,13 +4,17 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "", "license": "Apache-2.0", "dependencies": { "formik": "latest", "@types/react": "latest", - "@types/prop-types": "latest" - } + "@types/prop-types": "latest", + "snyk": "^1.316.1" + }, + "snyk": true }