Skip to content

Commit

Permalink
fix: nextConfig withPWA warning/error
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldanielecki committed Aug 19, 2024
1 parent f48f182 commit 314987a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ const withPWA = require("next-pwa")({
dest: "public",
});

module.exports = withPWA({
nextConfig,
});
module.exports = withPWA(nextConfig);
4 changes: 2 additions & 2 deletions playwright/practice.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { test, expect } from "@playwright/test";

test("Application should have correct initial state", async ({ page }) => {
await page.goto("");
expect(await page.getByRole("main").getByRole("link").all()).toHaveLength(22);
expect(await page.getByRole("main").getByRole("link").all()).toHaveLength(34);
await expect(page.getByRole("main").getByRole("heading").first()).toHaveText(
/Welcome/,
);

await expect(page.locator(".text-lg").first()).toHaveText(
await expect(page.locator(".text-xl").first()).toHaveText(
"🧪 Practice Exams Platform",
);
await expect(page.locator(".text-lg").last()).toHaveText(
Expand Down
2 changes: 1 addition & 1 deletion public/sw.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 314987a

Please sign in to comment.