Skip to content

Commit 28e9094

Browse files
committed
add AddSources e2e test
1 parent f3511e0 commit 28e9094

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

features/browser-upload-one.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ Feature: Browser source map upload one
312312
And the sourcemap payload field "appVersion" equals "2.0.0"
313313
And the sourcemap payload field "overwrite" is null
314314
And the sourcemap payload field "minifiedUrl" equals "http://myapp.url/static/js/main.js"
315-
And the sourcemap payload field "sourceMap" matches the expected source map for "single-source-map-webpack"
316-
And the sourcemap payload field "minifiedFile" matches the expected minified file for "single-source-map-webpack"
315+
And the sourcemap payload field "sourceMap" matches the expected source map for "webpack-nosources"
316+
And the sourcemap payload field "minifiedFile" matches the expected minified file for "webpack-nosources"
317317
And the Content-Type header is valid multipart form-data
318318
And the last run docker command exited successfully

features/expected/webpack-nosources/minified-file.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"version": 3,
3+
"sources": [
4+
"src/lib/a.js",
5+
"src/lib/b.js",
6+
"webpack://webpack-nosources/webpack/bootstrap",
7+
"src/index.js"
8+
],
9+
"names": [
10+
"console",
11+
"log",
12+
"__webpack_module_cache__",
13+
"__webpack_require__",
14+
"moduleId",
15+
"exports",
16+
"module",
17+
"__webpack_modules__"
18+
],
19+
"mappings": "sBAAAA,QAAQC,IAAI,c,SCAZD,QAAQC,IAAI,eCCRC,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,GAAGF,EAAyBE,GAC3B,OAAOF,EAAyBE,GAAUC,QAG3C,IAAIC,EAASJ,EAAyBE,GAAY,CAGjDC,QAAS,IAOV,OAHAE,EAAoBH,GAAUE,EAAQA,EAAOD,QAASF,GAG/CG,EAAOD,QCpBfL,QAAQC,IAAI,MAEZ,EAAQ,KACR,EAAQ,M",
20+
"file": "main.js",
21+
"sourcesContent": [
22+
"console.log('hi from a')\n",
23+
"console.log('hi from b')\n",
24+
"// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tif(__webpack_module_cache__[moduleId]) {\n\t\treturn __webpack_module_cache__[moduleId].exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n",
25+
"console.log('hi')\n\nrequire('./lib/a')\nrequire('./lib/b')\n"
26+
]
27+
}

0 commit comments

Comments
 (0)