Skip to content

Commit

Permalink
test: use recordsPath option in webpack tests
Browse files Browse the repository at this point in the history
It should help stabilize the ordering of files which is still causing some transient build server errors.
  • Loading branch information
tivac committed Feb 21, 2018
1 parent 6e05684 commit 2a16d07
Show file tree
Hide file tree
Showing 13 changed files with 292 additions and 42 deletions.
21 changes: 21 additions & 0 deletions packages/webpack/test/__snapshots__/change.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"modules": {
"byIdentifier": {
"packages/webpack/test/specimens/change.js": 0,
"packages/webpack/loader.js!packages/webpack/test/output/changed.css": 1
},
"usedIds": {
"0": 0,
"1": 1
}
},
"chunks": {
"byName": {
"main": 0
},
"byBlocks": {},
"usedIds": {
"0": 0
}
}
}
21 changes: 21 additions & 0 deletions packages/webpack/test/__snapshots__/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"modules": {
"byIdentifier": {
"packages/webpack/test/specimens/es2015-default.js": 0,
"packages/webpack/loader.js!packages/webpack/test/specimens/es2015.css": 1
},
"usedIds": {
"0": 0,
"1": 1
}
},
"chunks": {
"byName": {
"main": 0
},
"byBlocks": {},
"usedIds": {
"0": 0
}
}
}
21 changes: 21 additions & 0 deletions packages/webpack/test/__snapshots__/es2015-default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"modules": {
"byIdentifier": {
"packages/webpack/test/specimens/es2015-default.js": 0,
"packages/webpack/loader.js!packages/webpack/test/specimens/es2015.css": 1
},
"usedIds": {
"0": 0,
"1": 1
}
},
"chunks": {
"byName": {
"main": 0
},
"byBlocks": {},
"usedIds": {
"0": 0
}
}
}
21 changes: 21 additions & 0 deletions packages/webpack/test/__snapshots__/es2015-named.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"modules": {
"byIdentifier": {
"packages/webpack/test/specimens/es2015-named.js": 0,
"packages/webpack/loader.js!packages/webpack/test/specimens/es2015.css": 1
},
"usedIds": {
"0": 0,
"1": 1
}
},
"chunks": {
"byName": {
"main": 0
},
"byBlocks": {},
"usedIds": {
"0": 0
}
}
}
21 changes: 21 additions & 0 deletions packages/webpack/test/__snapshots__/invalid-name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"modules": {
"byIdentifier": {
"packages/webpack/test/specimens/invalid-name.js": 0,
"packages/webpack/loader.js!packages/webpack/test/specimens/invalid-name.css": 1
},
"usedIds": {
"0": 0,
"1": 1
}
},
"chunks": {
"byName": {
"main": 0
},
"byBlocks": {},
"usedIds": {
"0": 0
}
}
}
21 changes: 21 additions & 0 deletions packages/webpack/test/__snapshots__/invalid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"modules": {
"byIdentifier": {
"packages/webpack/test/specimens/invalid.js": 0,
"packages/webpack/loader.js!packages/webpack/test/specimens/invalid.css": 1
},
"usedIds": {
"0": 0,
"1": 1
}
},
"chunks": {
"byName": {
"main": 0
},
"byBlocks": {},
"usedIds": {
"0": 0
}
}
}
21 changes: 21 additions & 0 deletions packages/webpack/test/__snapshots__/name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"modules": {
"byIdentifier": {
"packages/webpack/test/specimens/invalid-name.js": 0,
"packages/webpack/loader.js!packages/webpack/test/specimens/invalid-name.css": 1
},
"usedIds": {
"0": 0,
"1": 1
}
},
"chunks": {
"byName": {
"main": 0
},
"byBlocks": {},
"usedIds": {
"0": 0
}
}
}
21 changes: 21 additions & 0 deletions packages/webpack/test/__snapshots__/named.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"modules": {
"byIdentifier": {
"packages/webpack/test/specimens/es2015-named.js": 0,
"packages/webpack/loader.js!packages/webpack/test/specimens/es2015.css": 1
},
"usedIds": {
"0": 0,
"1": 1
}
},
"chunks": {
"byName": {
"main": 0
},
"byBlocks": {},
"usedIds": {
"0": 0
}
}
}
23 changes: 23 additions & 0 deletions packages/webpack/test/__snapshots__/simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"modules": {
"byIdentifier": {
"packages/webpack/test/specimens/simple.js": 0,
"packages/webpack/loader.js!packages/webpack/test/specimens/simple.css": 1,
"packages/webpack/loader.js??ref--0!packages/webpack/test/specimens/simple.css": 2
},
"usedIds": {
"0": 0,
"1": 1,
"2": 2
}
},
"chunks": {
"byName": {
"main": 0
},
"byBlocks": {},
"usedIds": {
"0": 0
}
}
}
21 changes: 21 additions & 0 deletions packages/webpack/test/__snapshots__/start.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"modules": {
"byIdentifier": {
"packages/webpack/test/specimens/start.js": 0,
"packages/webpack/loader.js!packages/webpack/test/specimens/start.css": 1
},
"usedIds": {
"0": 0,
"1": 1
}
},
"chunks": {
"byName": {
"main": 0
},
"byBlocks": {},
"usedIds": {
"0": 0
}
}
}
21 changes: 21 additions & 0 deletions packages/webpack/test/__snapshots__/watch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"modules": {
"byIdentifier": {
"packages/webpack/test/specimens/watch.js": 0,
"packages/webpack/loader.js!packages/webpack/test/output/watched.css": 1
},
"usedIds": {
"0": 0,
"1": 1
}
},
"chunks": {
"byName": {
"main": 0
},
"byBlocks": {},
"usedIds": {
"0": 0
}
}
}
10 changes: 6 additions & 4 deletions packages/webpack/test/__snapshots__/webpack.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1111,11 +1111,12 @@ exports[`/webpack.js should support disabling namedExports when the option is se
/* 0 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(1);
__webpack_require__(2);
/***/ }),
/* 1 */
/* 1 */,
/* 2 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
\\"use strict\\";
Expand Down Expand Up @@ -1198,11 +1199,12 @@ exports[`/webpack.js should warn about using the cjs option & disable namedExpor
/* 0 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(1);
__webpack_require__(2);
/***/ }),
/* 1 */
/* 1 */,
/* 2 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
\\"use strict\\";
Expand Down
Loading

0 comments on commit 2a16d07

Please sign in to comment.