Skip to content

Commit 1dbd197

Browse files
kinda working
Signed-off-by: Leah <[email protected]>
1 parent 8024b56 commit 1dbd197

File tree

3 files changed

+272
-301
lines changed

3 files changed

+272
-301
lines changed

packages/cli/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@
125125
"native-url": "0.3.4",
126126
"optimize-css-assets-webpack-plugin": "^5.0.1",
127127
"ora": "^5.4.0",
128-
"postcss": "^8.2.10",
129128
"pnp-webpack-plugin": "^1.6.4",
129+
"postcss": "^8.2.10",
130130
"postcss-load-config": "^3.0.1",
131131
"postcss-loader": "^4.0.4",
132132
"progress-bar-webpack-plugin": "^2.1.0",
@@ -152,11 +152,11 @@
152152
"webpack-merge": "^5.3.0",
153153
"webpack-plugin-replace": "^1.2.0",
154154
"which": "^2.0.2",
155-
"workbox-cacheable-response": "^5.1.3",
156-
"workbox-core": "^5.1.3",
157-
"workbox-precaching": "^5.1.3",
158-
"workbox-routing": "^5.1.3",
159-
"workbox-strategies": "^5.1.3",
160-
"workbox-webpack-plugin": "^5.1.3"
155+
"workbox-cacheable-response": "^6.1.5",
156+
"workbox-core": "^6.1.5",
157+
"workbox-precaching": "^6.1.5",
158+
"workbox-routing": "^6.1.5",
159+
"workbox-strategies": "^6.1.5",
160+
"workbox-webpack-plugin": "^6.1.5"
161161
}
162162
}

packages/cli/tests/service-worker.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ describe('preact service worker tests', () => {
9090
res.text()
9191
);
9292
// eslint-disable-next-line no-useless-escape
93-
expect(swText).toContain('caches.match(j("/200.html")||j("/index.html")');
93+
expect(swText).toMatch(
94+
/caches.match\(\w\("\/200.html"\)\|\|\w\("\/index.html"\)/
95+
);
9496
const page = await browser.newPage();
9597
await page.setCacheEnabled(false);
9698
await page.goto('http://localhost:3000', {

0 commit comments

Comments
 (0)