From 6cf449c50fc4883d62f8c187ef236445c6780b68 Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Tue, 13 Jun 2023 20:57:42 +0300 Subject: [PATCH] test: update --- .../ConfigTestCases.basictest.js.snap | 154 +++++++++--------- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/test/__snapshots__/ConfigTestCases.basictest.js.snap b/test/__snapshots__/ConfigTestCases.basictest.js.snap index ebfcdea06..8e03c8ae1 100644 --- a/test/__snapshots__/ConfigTestCases.basictest.js.snap +++ b/test/__snapshots__/ConfigTestCases.basictest.js.snap @@ -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 + ] + } +}" +`;