Skip to content

Commit

Permalink
Filter our deprecation logs from e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Oct 29, 2024
1 parent 0e8e55e commit 29ebf0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions integration/action-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ test.describe("actions", () => {

test.beforeEach(({ page }) => {
page.on("console", (msg) => {
logs.push(msg.text());
if (!msg.text().includes("React Router Future Flag Warning")) {
logs.push(msg.text());
}
});
});

Expand Down Expand Up @@ -333,7 +335,9 @@ test.describe("single fetch", () => {

test.beforeEach(({ page }) => {
page.on("console", (msg) => {
logs.push(msg.text());
if (!msg.text().includes("React Router Future Flag Warning")) {
logs.push(msg.text());
}
});
});

Expand Down
4 changes: 3 additions & 1 deletion integration/defer-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2620,7 +2620,9 @@ async function ensureInteractivity(page: Page, id: string, expect: number = 1) {
function monitorConsole(page: Page) {
let messages: ConsoleMessage[] = [];
page.on("console", (message) => {
messages.push(message);
if (!message.text().includes("React Router Future Flag Warning")) {
messages.push(message);
}
});

return async () => {
Expand Down

0 comments on commit 29ebf0e

Please sign in to comment.