Skip to content

Commit

Permalink
hardfix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Aug 20, 2024
1 parent b06fc1b commit f459b98
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 221 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
# [0_chromium](../../preact_and_redux_dev.test.mjs#L43)
# [0_chromium](../../preact_and_redux_dev.test.mjs#L46)

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

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

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

# 2/2 resolve

```js
{
"spanContentAfterIncrement": "1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { chromium } from "playwright";
const run = async ({ browserLauncher }) => {
const devServer = await startDevServer({
sourceDirectoryUrl: new URL("./client/", import.meta.url),
outDirectoryUrl: new URL("./.jsenv/", import.meta.url),
keepProcessAlive: false,
port: 0,
plugins: [
Expand Down Expand Up @@ -39,6 +40,12 @@ const run = async ({ browserLauncher }) => {
});
};

await snapshotDevSideEffects(import.meta.url, ({ test }) => {
test("0_chromium", () => run({ browserLauncher: chromium }));
});
await snapshotDevSideEffects(
import.meta.url,
({ test }) => {
test("0_chromium", () => run({ browserLauncher: chromium }));
},
{
filesystemEffects: false,
},
);

0 comments on commit f459b98

Please sign in to comment.