Skip to content

Commit 314987a

Browse files
fix: nextConfig withPWA warning/error
1 parent f48f182 commit 314987a

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

next.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,4 @@ const withPWA = require("next-pwa")({
1818
dest: "public",
1919
});
2020

21-
module.exports = withPWA({
22-
nextConfig,
23-
});
21+
module.exports = withPWA(nextConfig);

playwright/practice.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { test, expect } from "@playwright/test";
22

33
test("Application should have correct initial state", async ({ page }) => {
44
await page.goto("");
5-
expect(await page.getByRole("main").getByRole("link").all()).toHaveLength(22);
5+
expect(await page.getByRole("main").getByRole("link").all()).toHaveLength(34);
66
await expect(page.getByRole("main").getByRole("heading").first()).toHaveText(
77
/Welcome/,
88
);
99

10-
await expect(page.locator(".text-lg").first()).toHaveText(
10+
await expect(page.locator(".text-xl").first()).toHaveText(
1111
"🧪 Practice Exams Platform",
1212
);
1313
await expect(page.locator(".text-lg").last()).toHaveText(

public/sw.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)