From 23057a5af5b16ca6d55b18c5ea3e7ecfd6e67083 Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Thu, 11 Feb 2021 15:33:26 +0100 Subject: [PATCH] fix: make nyc use sourcemaps for coverage --- package.json | 7 ++++++- snapshots/src/lib/addons/slack.test.js.md | 11 +++++++++++ snapshots/src/lib/addons/slack.test.js.snap | Bin 0 -> 372 bytes tsconfig.json | 1 + 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 snapshots/src/lib/addons/slack.test.js.md create mode 100644 snapshots/src/lib/addons/slack.test.js.snap diff --git a/package.json b/package.json index 53060d8b6f..b2fea3c8a6 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,12 @@ "all": true, "include": [ "dist/**/*.js" - ] + ], + "exclude": [ + "dist/bin", + "dist/migrations" + ], + "exclude-after-remap": false }, "ava": { "files": [ diff --git a/snapshots/src/lib/addons/slack.test.js.md b/snapshots/src/lib/addons/slack.test.js.md new file mode 100644 index 0000000000..f1e237a0b7 --- /dev/null +++ b/snapshots/src/lib/addons/slack.test.js.md @@ -0,0 +1,11 @@ +# Snapshot report for `src/lib/addons/slack.test.js` + +The actual snapshot is saved in `slack.test.js.snap`. + +Generated by [AVA](https://avajs.dev). + +## Should call slack webhook + +> Snapshot 1 + + '{"username":"Unleash","icon_emoji":":unleash:","text":"some@user.com created feature toggle \\n*Enabled*: no | *Type*: undefined | *Project*: undefined\\n*Activation strategies*: ```- name: default\\n```","channel":"#undefined","attachments":[{"actions":[{"name":"featureToggle","text":"Open in Unleash","type":"button","value":"featureToggle","style":"primary","url":"http://some-url.com/#/features/strategies/some-toggle"}]}]}' diff --git a/snapshots/src/lib/addons/slack.test.js.snap b/snapshots/src/lib/addons/slack.test.js.snap new file mode 100644 index 0000000000000000000000000000000000000000..0b80da9cf33d19c8ecbf81cebbda378fc5210c75 GIT binary patch literal 372 zcmV-)0gL`YRzV zkg-k!F${+9K)}QRGe}X`D$4CAgkb0lLzyVhH0SnG<(yN_si<0BfH&eHcm~*5cmo!k zwxS)FNQT&7emn6mk|ar!U01xles&)A)0dCq!}p^!iR+t>?PPBer#s2P)>k@{p#hJo z0-4KOw4j<&o=T$~K0@WjhH)O2Jm(97Ct}pN3NB;inRb=X9uz?#hI|AMg4}3iL7bOF zb)IEW+z#GGZFZ8aR87{9=dzKBVU#S(<{R-v4_h5n0}Dkf7wE)Xw7Sz8I0;z5&>+9c z?8dt>XxhYFd8Nrr6d8wN{S<5Z{eD}-k#oUf6)g3T8BeE6g$R}hJo#~*R)EyV z{B9G%DUB1-Nm=pK3&&G@mY9p_`sg$2GVFx+? Sm#6aip7#&aU0y^R0ssL13aknM literal 0 HcmV?d00001 diff --git a/tsconfig.json b/tsconfig.json index 52ce541dcb..c06fa40edb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -56,6 +56,7 @@ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ + "sourceMap": true, /* Experimental Options */ // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */