diff --git a/test/fixtures/local/my-addon/.snyk b/test/fixtures/local/my-addon/.snyk new file mode 100644 index 000000000..ddb0e1b92 --- /dev/null +++ b/test/fixtures/local/my-addon/.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: + - ember-cli-babel > broccoli-babel-transpiler > broccoli-persistent-filter > async-promise-queue > async > lodash: + patched: '2020-05-01T07:19:21.010Z' diff --git a/test/fixtures/local/my-addon/package.json b/test/fixtures/local/my-addon/package.json index 27aba5239..301540670 100644 --- a/test/fixtures/local/my-addon/package.json +++ b/test/fixtures/local/my-addon/package.json @@ -15,10 +15,13 @@ "scripts": { "build": "ember build", "start": "ember server", - "test": "ember try:each" + "test": "ember try:each", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { - "ember-cli-babel": "^5.1.7" + "ember-cli-babel": "^5.1.7", + "snyk": "^1.316.1" }, "devDependencies": { "broccoli-asset-rev": "^2.4.5", @@ -51,5 +54,6 @@ }, "ember-addon": { "configPath": "tests/dummy/config" - } + }, + "snyk": true }