Skip to content

Commit 7c33fcc

Browse files
NiloCKclaude
andcommitted
Fix Cypress config for ES modules in standalone-ui
- Convert Cypress config from CommonJS to ES modules - Change require() to import statement - Change module.exports to export default This fixes the error "require is not defined in ES module scope" since standalone-ui package.json has "type": "module". 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5c23030 commit 7c33fcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/standalone-ui/cypress.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const { defineConfig } = require('cypress');
1+
import { defineConfig } from 'cypress';
22

3-
module.exports = defineConfig({
3+
export default defineConfig({
44
e2e: {
55
baseUrl: 'http://localhost:6173', // package/standalone-ui vite dev server port
66
supportFile: 'cypress/support/e2e.js',

0 commit comments

Comments
 (0)