Skip to content

Commit

Permalink
chore: replace lightning-fs with memfs
Browse files Browse the repository at this point in the history
memfs has FS sync methods, and we don't need actual persistence, at least for now
  • Loading branch information
ruifigueira committed Nov 10, 2023
1 parent 6175bc8 commit 8583c7b
Show file tree
Hide file tree
Showing 7 changed files with 259 additions and 62 deletions.
152 changes: 118 additions & 34 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"./package.json": "./package.json"
},
"dependencies": {
"@isomorphic-git/lightning-fs": "^4.6.0",
"assert": "^2.1.0",
"babel-bundle": "file:./playwright/packages/playwright/bundles/babel",
"browserify-zlib": "^0.2.0",
Expand All @@ -65,6 +64,7 @@
"expect-bundle": "file:./playwright/packages/playwright/bundles/expect",
"https-browserify": "^1.0.0",
"inspector": "^0.5.0",
"memfs": "^4.6.0",
"os-browserify": "^0.3.0",
"path": "^0.12.7",
"process": "^0.11.10",
Expand Down
6 changes: 3 additions & 3 deletions src/server/crx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export class Crx extends SdkObject {
protocolLogger: helper.debugProtocolLogger(),
browserLogsCollector,
originalLaunchOptions: {},
artifactsDir: '.',
downloadsPath: '.',
tracesDir: '.',
artifactsDir: '/crx/artifacts',
downloadsPath: '/crx/downloads',
tracesDir: '/crx/traces',
...options
};
const browser = await CRBrowser.connect(this.attribution.playwright, transport, browserOptions);
Expand Down
Loading

0 comments on commit 8583c7b

Please sign in to comment.