@@ -2221,6 +2221,84 @@ describe("snapshots", () => {
22212221 + /^(.+?[\\\\/]node_modules[\\\\/])/,
22222222 ` )
22232223 ) ;
2224+
2225+ test (
2226+ "experiments.futureDefaults w/ experiments.css disabled" ,
2227+ {
2228+ experiments : {
2229+ css : false ,
2230+ futureDefaults : true
2231+ }
2232+ } ,
2233+ e =>
2234+ e . toMatchInlineSnapshot ( `
2235+ - Expected
2236+ + Received
2237+
2238+ @@ ... @@
2239+ - "asyncWebAssembly": false,
2240+ - "backCompat": true,
2241+ + "asyncWebAssembly": true,
2242+ + "backCompat": false,
2243+ @@ ... @@
2244+ - "cacheUnaffected": false,
2245+ - "css": undefined,
2246+ - "futureDefaults": false,
2247+ + "cacheUnaffected": true,
2248+ + "css": false,
2249+ + "futureDefaults": true,
2250+ @@ ... @@
2251+ - "topLevelAwait": false,
2252+ + "topLevelAwait": true,
2253+ @@ ... @@
2254+ + },
2255+ + Object {
2256+ + "rules": Array [
2257+ + Object {
2258+ + "descriptionData": Object {
2259+ + "type": "module",
2260+ + },
2261+ + "resolve": Object {
2262+ + "fullySpecified": true,
2263+ + },
2264+ + },
2265+ + ],
2266+ + "test": /\\.wasm$/i,
2267+ + "type": "webassembly/async",
2268+ @@ ... @@
2269+ + "mimetype": "application/wasm",
2270+ + "rules": Array [
2271+ + Object {
2272+ + "descriptionData": Object {
2273+ + "type": "module",
2274+ + },
2275+ + "resolve": Object {
2276+ + "fullySpecified": true,
2277+ + },
2278+ + },
2279+ + ],
2280+ + "type": "webassembly/async",
2281+ + },
2282+ + Object {
2283+ @@ ... @@
2284+ + "exportsPresence": "error",
2285+ @@ ... @@
2286+ - "__dirname": "mock",
2287+ - "__filename": "mock",
2288+ - "global": true,
2289+ + "__dirname": "warn-mock",
2290+ + "__filename": "warn-mock",
2291+ + "global": "warn",
2292+ @@ ... @@
2293+ - "hashDigestLength": 20,
2294+ - "hashFunction": "md4",
2295+ + "hashDigestLength": 16,
2296+ + "hashFunction": "xxhash64",
2297+ @@ ... @@
2298+ - "<cwd>/node_modules/",
2299+ + /^(.+?[\\\\/]node_modules[\\\\/])/,
2300+ ` )
2301+ ) ;
22242302} ) ;
22252303
22262304it ( "should result in the same target options for same target" , ( ) => {
0 commit comments