mirror of https://github.com/webpack/webpack.git
test: update
This commit is contained in:
parent
e1de2dceb4
commit
6cf449c50f
|
|
@ -1,82 +1,5 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`ConfigCacheTestCases custom-modules json-custom exported tests should transform toml to json 1`] = `
|
||||
Object {
|
||||
"owner": Object {
|
||||
"bio": "GitHub Cofounder & CEO
|
||||
Likes tater tots and beer.",
|
||||
"dob": "1979-05-27T07:32:00.000Z",
|
||||
"name": "Tom Preston-Werner",
|
||||
"organization": "GitHub",
|
||||
},
|
||||
"title": "TOML Example",
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`ConfigCacheTestCases records issue-2991 exported tests should write relative paths to records 1`] = `
|
||||
"{
|
||||
\\"chunks\\": {
|
||||
\\"byName\\": {
|
||||
\\"main\\": 179
|
||||
},
|
||||
\\"bySource\\": {
|
||||
\\"0 main\\": 179
|
||||
},
|
||||
\\"usedIds\\": [
|
||||
179
|
||||
]
|
||||
},
|
||||
\\"modules\\": {
|
||||
\\"byIdentifier\\": {
|
||||
\\"./test.js\\": 393,
|
||||
\\"external node-commonjs \\\\\\"fs\\\\\\"\\": 147,
|
||||
\\"external node-commonjs \\\\\\"path\\\\\\"\\": 17,
|
||||
\\"ignored|./.|pkgs/somepackage/foo\\": 802
|
||||
},
|
||||
\\"usedIds\\": [
|
||||
17,
|
||||
147,
|
||||
393,
|
||||
802
|
||||
]
|
||||
}
|
||||
}"
|
||||
`;
|
||||
|
||||
exports[`ConfigCacheTestCases records issue-7339 exported tests should write relative dynamic-require paths to records 1`] = `
|
||||
"{
|
||||
\\"chunks\\": {
|
||||
\\"byName\\": {
|
||||
\\"main\\": 179
|
||||
},
|
||||
\\"bySource\\": {
|
||||
\\"0 main\\": 179
|
||||
},
|
||||
\\"usedIds\\": [
|
||||
179
|
||||
]
|
||||
},
|
||||
\\"modules\\": {
|
||||
\\"byIdentifier\\": {
|
||||
\\"./dependencies/bar.js\\": 379,
|
||||
\\"./dependencies/foo.js\\": 117,
|
||||
\\"./dependencies|sync|/^\\\\\\\\.\\\\\\\\/.*$/\\": 412,
|
||||
\\"./test.js\\": 393,
|
||||
\\"external node-commonjs \\\\\\"fs\\\\\\"\\": 147,
|
||||
\\"external node-commonjs \\\\\\"path\\\\\\"\\": 17
|
||||
},
|
||||
\\"usedIds\\": [
|
||||
17,
|
||||
117,
|
||||
147,
|
||||
379,
|
||||
393,
|
||||
412
|
||||
]
|
||||
}
|
||||
}"
|
||||
`;
|
||||
|
||||
exports[`ConfigTestCases css css-import exported tests should compile 1`] = `
|
||||
Array [
|
||||
"body {
|
||||
|
|
@ -2254,3 +2177,80 @@ Object {
|
|||
"n": " green url(img.09a1a1112c577c279435.png) xyz",
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`ConfigTestCases custom-modules json-custom exported tests should transform toml to json 1`] = `
|
||||
Object {
|
||||
"owner": Object {
|
||||
"bio": "GitHub Cofounder & CEO
|
||||
Likes tater tots and beer.",
|
||||
"dob": "1979-05-27T07:32:00.000Z",
|
||||
"name": "Tom Preston-Werner",
|
||||
"organization": "GitHub",
|
||||
},
|
||||
"title": "TOML Example",
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`ConfigTestCases records issue-2991 exported tests should write relative paths to records 1`] = `
|
||||
"{
|
||||
\\"chunks\\": {
|
||||
\\"byName\\": {
|
||||
\\"main\\": 179
|
||||
},
|
||||
\\"bySource\\": {
|
||||
\\"0 main\\": 179
|
||||
},
|
||||
\\"usedIds\\": [
|
||||
179
|
||||
]
|
||||
},
|
||||
\\"modules\\": {
|
||||
\\"byIdentifier\\": {
|
||||
\\"./test.js\\": 393,
|
||||
\\"external node-commonjs \\\\\\"fs\\\\\\"\\": 147,
|
||||
\\"external node-commonjs \\\\\\"path\\\\\\"\\": 17,
|
||||
\\"ignored|./.|pkgs/somepackage/foo\\": 802
|
||||
},
|
||||
\\"usedIds\\": [
|
||||
17,
|
||||
147,
|
||||
393,
|
||||
802
|
||||
]
|
||||
}
|
||||
}"
|
||||
`;
|
||||
|
||||
exports[`ConfigTestCases records issue-7339 exported tests should write relative dynamic-require paths to records 1`] = `
|
||||
"{
|
||||
\\"chunks\\": {
|
||||
\\"byName\\": {
|
||||
\\"main\\": 179
|
||||
},
|
||||
\\"bySource\\": {
|
||||
\\"0 main\\": 179
|
||||
},
|
||||
\\"usedIds\\": [
|
||||
179
|
||||
]
|
||||
},
|
||||
\\"modules\\": {
|
||||
\\"byIdentifier\\": {
|
||||
\\"./dependencies/bar.js\\": 379,
|
||||
\\"./dependencies/foo.js\\": 117,
|
||||
\\"./dependencies|sync|/^\\\\\\\\.\\\\\\\\/.*$/\\": 412,
|
||||
\\"./test.js\\": 393,
|
||||
\\"external node-commonjs \\\\\\"fs\\\\\\"\\": 147,
|
||||
\\"external node-commonjs \\\\\\"path\\\\\\"\\": 17
|
||||
},
|
||||
\\"usedIds\\": [
|
||||
17,
|
||||
117,
|
||||
147,
|
||||
379,
|
||||
393,
|
||||
412
|
||||
]
|
||||
}
|
||||
}"
|
||||
`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue