From e6ad21d2f153940a8c47588a1ba609e671b7ab0a Mon Sep 17 00:00:00 2001 From: Arjun Gadhia Date: Tue, 4 Sep 2018 10:12:46 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20Jest=20security=20error=20coming=20from?= =?UTF-8?q?=20jsdom=20=20=F0=9F=90=BF=20v2.10.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- secret-squirrel.js | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 secret-squirrel.js diff --git a/Makefile b/Makefile index c9a0b55..0f2eaa5 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,6 @@ node_modules/@financial-times/n-gage/index.mk: unit-test: export TEST_SESSIONS_URL=https://fuhn0pye67.execute-api.eu-west-1.amazonaws.com/prod; \ export TEST_SESSIONS_API_KEY=mock-api-key; \ - jest test/tasks/*.js --forceExit $(if $(CI), --ci --runInBand --testResultsProcessor="jest-junit", ) + jest test/tasks/*.js --testURL="http://localhost/" --forceExit $(if $(CI), --ci --runInBand --testResultsProcessor="jest-junit", ) test: verify unit-test diff --git a/secret-squirrel.js b/secret-squirrel.js new file mode 100644 index 0000000..1082ead --- /dev/null +++ b/secret-squirrel.js @@ -0,0 +1,12 @@ +module.exports = { + files: { + allow: [], + allowOverrides: [] + }, + strings: { + deny: [], + denyOverrides: [ + 'nextpremium@ftqa\\.org' // README.md:302 + ] + } +};