Skip to content

Commit

Permalink
remove json call in remix module-resolution test (cloudflare#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz authored Dec 11, 2024
1 parent 755bb4b commit 36efad1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,11 @@ describe('module resolution', async () => {
});
});

// Note: this test is skipped during build because the remix import does not work in preview
// because there seem to be an I/O operation being performed at the top level of the
// generated remix bundled module, this is a legitimate issue and a workerd known quirk/bug
// (https://github.com/flarelabs-net/vite-plugin-cloudflare/issues/83)
test.skipIf(isBuild)('@remix-run/cloudflare', async () => {
test('@remix-run/cloudflare', async () => {
const result = await getJsonResponse('/third-party/remix');
expect(result).toEqual({
'(remix) remixRunCloudflareCookieName':
'my-remix-run-cloudflare-cookie',
'(remix) typeof cloudflare json({})': 'object',
});
});

Expand Down
3 changes: 1 addition & 2 deletions playground/module-resolution/src/third-party/remix.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { createCookie, json } from '@remix-run/cloudflare';
import { createCookie } from '@remix-run/cloudflare';

export default {
'(remix) typeof cloudflare json({})': typeof json({}),
'(remix) remixRunCloudflareCookieName': createCookie(
'my-remix-run-cloudflare-cookie',
).name,
Expand Down

0 comments on commit 36efad1

Please sign in to comment.