Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'turbo/main' into frame-history-update
- Loading branch information
Showing
60 changed files
with
6,370 additions
and
5,881 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { type PlaywrightTestConfig, devices } from "@playwright/test" | ||
|
||
const config: PlaywrightTestConfig = { | ||
projects: [ | ||
{ | ||
name: "chrome", | ||
use: { ...devices["Desktop Chrome"] }, | ||
}, | ||
{ | ||
name: "firefox", | ||
use: { ...devices["Desktop Firefox"] }, | ||
}, | ||
], | ||
testDir: "./src/tests/functional", | ||
testMatch: /.*_tests\.ts/, | ||
webServer: { | ||
command: "yarn start", | ||
url: "http://localhost:9000/src/tests/fixtures/test.js", | ||
timeout: 120 * 1000, | ||
reuseExistingServer: !process.env.CI, | ||
}, | ||
use: { | ||
baseURL: "http://localhost:9000/", | ||
}, | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Session } from "./session" | ||
import { setMetaContent } from "../util" | ||
|
||
export class Cache { | ||
readonly session: Session | ||
|
||
constructor(session: Session) { | ||
this.session = session | ||
} | ||
|
||
clear() { | ||
this.session.clearCache() | ||
} | ||
|
||
resetCacheControl() { | ||
this.setCacheControl("") | ||
} | ||
|
||
exemptPageFromCache() { | ||
this.setCacheControl("no-cache") | ||
} | ||
|
||
exemptPageFromPreview() { | ||
this.setCacheControl("no-preview") | ||
} | ||
|
||
private setCacheControl(value: string) { | ||
setMetaContent("turbo-cache-control", value) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.