1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-15 17:50:48 +02:00

fix: make nyc use sourcemaps for coverage

This commit is contained in:
Christopher Kolstad 2021-02-11 15:33:26 +01:00
parent 5ab81c2bcd
commit 23057a5af5
No known key found for this signature in database
GPG Key ID: 559ACB0E3DB5538A
4 changed files with 18 additions and 1 deletions

View File

@ -45,7 +45,12 @@
"all": true,
"include": [
"dist/**/*.js"
]
],
"exclude": [
"dist/bin",
"dist/migrations"
],
"exclude-after-remap": false
},
"ava": {
"files": [

View File

@ -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 <http://some-url.com/#/features/strategies/some-toggle|some-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"}]}]}'

Binary file not shown.

View File

@ -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. */