Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Nov 4, 2024
1 parent bc637ec commit 0a90e90
Show file tree
Hide file tree
Showing 14 changed files with 140 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ base/client/main.html:15:40
14 | <script type="module">
15 | const directoryUrl = new URL("./src/", import.meta.url).href;
^
at redirectReference (@jsenv/core/src/plugins/directory_reference_effect/jsenv_plugin_directory_reference_effect.js:56:23)
at redirectReference (@jsenv/core/src/plugins/directory_reference_effect/jsenv_plugin_directory_reference_effect.js:57:23)
at callHook (@jsenv/core/src/plugins/plugin_controller.js:183:25)
at Object.callHooks (@jsenv/core/src/plugins/plugin_controller.js:224:29)
at Object.resolveReference (@jsenv/core/src/kitchen/kitchen.js:211:26)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ run({
})
```
# 1/2 write file "./build/0_root/main.js"
# 1/2 write file "./build/main.js"
see [./build/0_root/main.js](./build/0_root/main.js)
see [./build/main.js](./build/main.js)
# 2/2 resolve
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const srcDirectoryUrl = new URL("../src/", import.meta.url);
export const rootDirectoryUrl = new URL("../", import.meta.url);
export const outsideDirectoryUrl = new URL("../fixtures/", import.meta.url);
export const outsideDirectoryUrl = new URL("../../", import.meta.url);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(function (root) {
root.__answer__ = 42;
})(this);
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(function (root) {
root.__answer__ = 42;
})(window);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJyb290IiwiX19hbnN3ZXJfXyIsIndpbmRvdyJdLCJzb3VyY2VzIjpbImZpbGU6Ly8vVXNlcnMvZGFtL0RvY3VtZW50cy9kZXYvY29yZS90ZXN0cy9kZXZfYW5kX2J1aWxkL2FzX2pzX21vZHVsZS9jbGllbnQvZmlsZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyIoZnVuY3Rpb24gKHJvb3QpIHtcbiAgcm9vdC5fX2Fuc3dlcl9fID0gNDI7XG59KSh0aGlzKTtcbiJdLCJtYXBwaW5ncyI6IkFBQUEsQ0FBQyxVQUFVQSxJQUFJLEVBQUU7RUFDZkEsSUFBSSxDQUFDQyxVQUFVLEdBQUcsRUFBRTtBQUN0QixDQUFDLEVBQUFDLE1BQU0sQ0FBQyIsImlnbm9yZUxpc3QiOltdfQ==
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": 3,
"names": [
"root",
"__answer__",
"window"
],
"sources": [
"base/client/file.js"
],
"sourcesContent": [
"(function (root) {\n root.__answer__ = 42;\n})(this);\n"
],
"mappings": "AAAA,CAAC,UAAUA,IAAI,EAAE;EACfA,IAAI,CAACC,UAAU,GAAG,EAAE;AACtB,CAAC,EAAAC,MAAM,CAAC",
"ignoreList": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta charset="utf-8">
</head>
<body>
<jsenv-scripts>
<script src="/@fs@jsenv/core/src/plugins/server_events/client/server_events_client.js" jsenv-injected-by="jsenv:server_events_client_injection"></script>
<script jsenv-injected-by="jsenv:server_events_client_injection" content-indented="" jsenv-cooked-by="jsenv:html_inline_content_analysis">
window.__server_events__.setup({
"logs": true
});
</script>
<script src="/@fs@jsenv/core/packages/internal/plugin-supervisor/src/client/supervisor.js" jsenv-injected-by="jsenv:supervisor"></script>
<script jsenv-injected-by="jsenv:supervisor" content-indented="">
window.__supervisor__.setup({
"logs": false,
"measurePerf": false,
"errorOverlay": true,
"openInEditor": true,
"serverIsJsenvDevServer": true,
"rootDirectoryUrl": "base/client/",
"scriptInfos": [
{
"type": "js_classic",
"src": "/[email protected]"
},
{
"type": "js_module",
"src": "/main.js"
}
]
});
</script>
<script type="module" jsenv-injected-by="jsenv:autoreload_client" content-indented="">
import { initAutoreload } from "/@fs@jsenv/core/src/plugins/autoreload/client/autoreload.js";

initAutoreload({
"mainFilePath": "/index.html"
});
</script>
<script type="module" jsenv-injected-by="jsenv:ribbon" content-indented="">
import { injectRibbon } from "/@fs@jsenv/core/src/plugins/ribbon/client/ribbon.js";

injectRibbon({
"text": "DEV"
});
</script>
</jsenv-scripts>



<script jsenv-cooked-by="jsenv:supervisor" content-indented="" inlined-from-src="/[email protected]">
window.__supervisor__.superviseScript("/[email protected]");
</script>
<script type="module" content-indented="" jsenv-cooked-by="jsenv:supervisor" inlined-from-src="/main.js">
window.__supervisor__.superviseScriptTypeModule("/main.js", (url) => import(url));
</script>
</body>
</html>

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

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# [1_firefox](../../as_js_module_dev.test.mjs#L23)

```js
run({ browserLauncher: firefox })
```

# 1/2 write 6 files into "./.jsenv/[email protected]/"

see [./.jsenv/[email protected]/](./.jsenv/[email protected]/)

# 2/2 resolve

```js
42
```

---

<sub>
Generated by <a href="https://github.com/jsenv/core/tree/main/packages/independent/snapshot">@jsenv/snapshot</a>
</sub>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [as_js_module_dev.test.mjs](../as_js_module_dev.test.mjs)


- [0_chromium](0_chromium/0_chromium.md)
- [1_firefox](1_firefox/1_firefox.md)

---

<sub>
Generated by <a href="https://github.com/jsenv/core/tree/main/packages/independent/snapshot">@jsenv/snapshot</a>
</sub>
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
<script type="module" content-indented="" src="http://127.0.0.1/main.js"></script>
<jsenv-ribbon></jsenv-ribbon>
<jsenv-toolbar>
<iframe tabindex="-1" allowtransparency="true" src="http://127.0.0.1/@fs@jsenv/core/packages/related/plugin-toolbar/src/client/toolbar.html?logLevel=debug&amp;theme=dark&amp;autoreload=&amp;animationsEnabled=&amp;notificationsEnabled=" name="jsenv toolbar" style="position: fixed; z-index: 1000; bottom: 0px; left: 0px; width: 100%; height: 0px; visibility: hidden; transition-property: height, visibility; border: none;"></iframe>
<jsenv-toolbar-trigger></jsenv-toolbar-trigger>
<iframe allowtransparency="true" src="http://127.0.0.1/@fs@jsenv/core/packages/related/plugin-toolbar/src/client/toolbar.html?logLevel=debug&amp;theme=dark&amp;autoreload=&amp;animationsEnabled=&amp;notificationsEnabled=" name="jsenv toolbar" style="position: fixed; z-index: 1000; bottom: 0px; left: 0px; width: 100%; height: 0px; visibility: hidden; transition-property: height, visibility; border: none; transition-duration: 300ms;"></iframe>
<jsenv-toolbar-trigger style="display: block;"></jsenv-toolbar-trigger>
</jsenv-toolbar>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { assert } from "@jsenv/assert";
import { chromium, firefox, webkit } from "playwright";

import { startDevServer } from "@jsenv/core";
import { launchBrowserPage } from "@jsenv/core/tests/launch_browser_page.js";
import { chromium, firefox, webkit } from "playwright";

const devServer = await startDevServer({
logLevel: "warn",
Expand All @@ -26,7 +25,7 @@ const test = async ({ browserLauncher }) => {
const actual = moduleExecutionResult.timings.end;
assert({
actual,
expect: assert.between(3_000, 8_000),
expect: assert.between(3_000, 10_000),
details: {
browser: `${browserLauncher.name()}`,
},
Expand Down

0 comments on commit 0a90e90

Please sign in to comment.