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 0000000000..0b80da9cf3 Binary files /dev/null and b/snapshots/src/lib/addons/slack.test.js.snap differ 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. */