summaryrefslogtreecommitdiffstats
path: root/remote/test/puppeteer/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'remote/test/puppeteer/src/templates')
-rw-r--r--remote/test/puppeteer/src/templates/README.md3
-rw-r--r--remote/test/puppeteer/src/templates/injected.ts.tmpl10
-rw-r--r--remote/test/puppeteer/src/templates/version.ts.tmpl4
3 files changed, 17 insertions, 0 deletions
diff --git a/remote/test/puppeteer/src/templates/README.md b/remote/test/puppeteer/src/templates/README.md
new file mode 100644
index 0000000000..548987eafc
--- /dev/null
+++ b/remote/test/puppeteer/src/templates/README.md
@@ -0,0 +1,3 @@
+# Templated Artifacts
+
+These files are generated as TypeScript files in the `src/generated` folder.
diff --git a/remote/test/puppeteer/src/templates/injected.ts.tmpl b/remote/test/puppeteer/src/templates/injected.ts.tmpl
new file mode 100644
index 0000000000..74146a4115
--- /dev/null
+++ b/remote/test/puppeteer/src/templates/injected.ts.tmpl
@@ -0,0 +1,10 @@
+import {createDeferredPromise} from '../util/DeferredPromise.js';
+
+declare global {
+ const InjectedUtil: {
+ createDeferredPromise: typeof createDeferredPromise;
+ };
+}
+
+/** @internal */
+export const source = SOURCE_CODE;
diff --git a/remote/test/puppeteer/src/templates/version.ts.tmpl b/remote/test/puppeteer/src/templates/version.ts.tmpl
new file mode 100644
index 0000000000..73b984d2ff
--- /dev/null
+++ b/remote/test/puppeteer/src/templates/version.ts.tmpl
@@ -0,0 +1,4 @@
+/**
+ * @internal
+ */
+export const packageVersion = 'PACKAGE_VERSION';