Skip to content

Commit

Permalink
Fixing Miniflare setup for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulomarg committed Jan 24, 2024
1 parent 727f1e5 commit 1867b5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
// Dummy script just so we can create a Miniflare instance for the KV namespace
const dummyWorker = {
async fetch(_request, _env, _ctx) {
return new Response('Hello World!');
},
};

export default dummyWorker;
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ describe('KVSessionStorage', () => {
scriptPath:
'packages/shopify-app-session-storage-kv/src/__tests__/kv-namespace-dummy-worker.ts',
kvNamespaces: ['KV_TEST_NAMESPACE'],
modules: true,
});

storage = new KVSessionStorage(
Expand Down

0 comments on commit 1867b5b

Please sign in to comment.