Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/puppeteer.ts
3544 views
1
/*
2
* ojs-runs.ts
3
*
4
* puppeteer testing utils
5
*
6
* Copyright (C) 2021-2022 Posit Software, PBC
7
*
8
*/
9
10
import { join } from "../src/deno_ral/path.ts";
11
12
export function localFileURL(path: string) {
13
const match = path.match(/^(.+)\.[^.]+$/)!;
14
const base = match[1];
15
return `file://${join(Deno.cwd(), base)}.html`;
16
}
17
18