Skip to content

Commit

Permalink
Merge pull request #326 from ledsun/fix_mock_url_pattern
Browse files Browse the repository at this point in the history
Modify the URL pattern to be replaced in the mock as the npm package is moved.
  • Loading branch information
kateinoigakukun authored Dec 3, 2023
2 parents 4deeaec + e6be437 commit e79a70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/npm-packages/ruby-wasm-wasi/test-e2e/support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const setupDebugLog = (context: BrowserContext) => {
};

export const setupProxy = (context: BrowserContext) => {
const cdnPattern = /cdn.jsdelivr.net\/npm\/ruby-.+-wasm-wasi@.+\/dist\/(.+)/;
const cdnPattern = /cdn.jsdelivr.net\/npm\/@ruby\/.+-wasm-wasi@.+\/dist\/(.+)/;
context.route(cdnPattern, (route) => {
const request = route.request();
console.log(">> [MOCK]", request.method(), request.url());
Expand Down

0 comments on commit e79a70c

Please sign in to comment.