Skip to content

Commit 49bc2dc

Browse files
committed
chore: update snapshot tests
1 parent c665884 commit 49bc2dc

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

test/config/__snapshots__/nuxt.spec.js.snap

+57
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,29 @@ Object {
282282
"sourceDir": "../.tmp/advanced",
283283
},
284284
"workbox": Object {
285+
"_runtimeCaching": Array [
286+
Object {
287+
"handler": "cacheFirst",
288+
"method": "GET",
289+
"urlPattern": "/static/(?!content).*$",
290+
},
291+
],
285292
"cacheId": "title",
286293
"globDirectory": "../.tmp/advanced/.statusfy/dist/client",
287294
"offlinePage": "/offline",
288295
"publicPath": "/static/",
296+
"runtimeCaching": Array [
297+
Object {
298+
"strategyOptions": Object {
299+
"cacheExpiration": Object {
300+
"maxAgeSeconds": 300,
301+
"maxEntries": 10,
302+
},
303+
"cacheName": "title_title_title_api",
304+
},
305+
"urlPattern": "(/static/content)?/api/v1/.*",
306+
},
307+
],
289308
},
290309
}
291310
`;
@@ -495,10 +514,29 @@ Object {
495514
"sourceDir": "../.tmp/cli",
496515
},
497516
"workbox": Object {
517+
"_runtimeCaching": Array [
518+
Object {
519+
"handler": "cacheFirst",
520+
"method": "GET",
521+
"urlPattern": "/static/(?!content).*$",
522+
},
523+
],
498524
"cacheId": "title",
499525
"globDirectory": "../.tmp/cli/.statusfy/dist/client",
500526
"offlinePage": "/offline",
501527
"publicPath": "/static/",
528+
"runtimeCaching": Array [
529+
Object {
530+
"strategyOptions": Object {
531+
"cacheExpiration": Object {
532+
"maxAgeSeconds": 300,
533+
"maxEntries": 10,
534+
},
535+
"cacheName": "title_title_api",
536+
},
537+
"urlPattern": "(/static/content)?/api/v1/.*",
538+
},
539+
],
502540
},
503541
}
504542
`;
@@ -695,10 +733,29 @@ Object {
695733
"sourceDir": "../.tmp/simple",
696734
},
697735
"workbox": Object {
736+
"_runtimeCaching": Array [
737+
Object {
738+
"handler": "cacheFirst",
739+
"method": "GET",
740+
"urlPattern": "/static/(?!content).*$",
741+
},
742+
],
698743
"cacheId": "title",
699744
"globDirectory": "../.tmp/simple/.statusfy/dist/client",
700745
"offlinePage": "/offline",
701746
"publicPath": "/static/",
747+
"runtimeCaching": Array [
748+
Object {
749+
"strategyOptions": Object {
750+
"cacheExpiration": Object {
751+
"maxAgeSeconds": 300,
752+
"maxEntries": 10,
753+
},
754+
"cacheName": "title_api",
755+
},
756+
"urlPattern": "(/static/content)?/api/v1/.*",
757+
},
758+
],
702759
},
703760
}
704761
`;

0 commit comments

Comments
 (0)