Test Remix component ? #26843
Unanswered
neviaumi
asked this question in
Component Testing
Replies: 1 comment
-
For the record Turn out i solved my problem by below config 👍 import { defineConfig } from "cypress";
import { defineConfig as defindViteConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { nodePolyfills } from 'vite-plugin-node-polyfills'
export default defineConfig({
component: {
devServer: {
framework: "react",
bundler: "vite",
viteConfig: defindViteConfig({
plugins: [react(), nodePolyfills({
exclude: ['fs']
})],
})
},
},
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on making Cypress component test working on Remix project.
Here is my simple component for testing.
My test content
My Cypress config
The test it working, but I got a question about how I can keep
import {json} from "@remix-run/node"
instead ofimport * as remixNode from "@remix-run/node";
?Beta Was this translation helpful? Give feedback.
All reactions